Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001148/0.001148, allocations: 103.6 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001458/0.001458, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2439/0.2439, allocations: 46.11 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 77.33 kB / 417.6 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.141, allocations: 62.44 MB / 480 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01908/0.1601, allocations: 14.99 MB / 495 MB, free: 6.219 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01128/0.1714, allocations: 4.834 MB / 499.8 MB, free: 1.371 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002838/0.1743, allocations: 91.75 kB / 499.9 MB, free: 1.281 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006403/0.1808, allocations: 3.146 MB / 0.4913 GB, free: 14.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007594/0.1884, allocations: 2.514 MB / 0.4937 GB, free: 11.6 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002995/0.1914, allocations: 0.9944 MB / 0.4947 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01104/0.2025, allocations: 7.041 MB / 0.5016 GB, free: 3.551 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3125/0.515, allocations: 4.363 MB / 0.5058 GB, free: 14.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007963/0.5231, allocations: 2.213 MB / 0.508 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007394/0.5305, allocations: 3.234 MB / 0.5112 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002298/0.5328, allocations: 490.8 kB / 0.5116 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004364/0.5372, allocations: 1.48 MB / 0.5131 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004593/0.5418, allocations: 2.836 MB / 0.5159 GB, free: 13.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005898/0.5477, allocations: 3.223 MB / 0.519 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01618/0.5639, allocations: 9.996 MB / 0.5288 GB, free: 9.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.143e-05/0.564, allocations: 3.984 kB / 0.5288 GB, free: 9.336 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.564, allocations: 4.281 kB / 0.5288 GB, free: 9.336 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005265/0.5646, allocations: 1.312 kB / 0.5288 GB, free: 9.336 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02543/0.59, allocations: 7.276 MB / 0.5359 GB, free: 4.641 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.5901, allocations: 9.719 kB / 0.5359 GB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01674/0.6068, allocations: 3.924 MB / 0.5397 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01076/0.6176, allocations: 4.067 MB / 0.5437 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002804/0.6179, allocations: 322.2 kB / 0.544 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002587/0.6205, allocations: 432.3 kB / 0.5444 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04031/0.6609, allocations: 15.74 MB / 0.5598 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003835/0.6613, allocations: 57.5 kB / 0.5598 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003095/0.6644, allocations: 207.3 kB / 0.56 GB, free: 472 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006261/0.6707, allocations: 3.219 MB / 0.5632 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03575/0.7065, allocations: 14.16 MB / 0.577 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1028/0.8093, allocations: 57.77 MB / 0.6334 GB, free: 4.812 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0153/0.8247, allocations: 6.592 MB / 0.6399 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00665/0.8314, allocations: 3.757 MB / 0.6435 GB, free: 10.21 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03006/0.8615, allocations: 14.78 MB / 0.658 GB, free: 11 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.062e-05/0.8616, allocations: 63.41 kB / 0.658 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=292): time 8.286e-06/0.8616, allocations: 0 / 0.658 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=342): time 0.1642/1.026, allocations: 42.49 MB / 0.6995 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001544/1.026, allocations: 210 kB / 0.6997 GB, free: 272 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01384/1.04, allocations: 5.462 MB / 0.705 GB, free: 10.82 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001361/1.041, allocations: 72.05 kB / 0.7051 GB, free: 10.75 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005114/1.046, allocations: 4.344 MB / 0.7094 GB, free: 6.406 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002554/1.049, allocations: 1.27 MB / 0.7106 GB, free: 5.148 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008481/1.058, allocations: 1.855 MB / 0.7124 GB, free: 3.281 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002074/1.058, allocations: 305.1 kB / 0.7127 GB, free: 2.98 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3345/1.392, allocations: 4.835 MB / 0.7174 GB, free: 191.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01451/1.407, allocations: 9.823 MB / 0.727 GB, free: 183.6 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0222/1.429, allocations: 15.63 MB / 0.7423 GB, free: 172.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003122/1.429, allocations: 51 kB / 0.7423 GB, free: 172.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.05026/1.48, allocations: 19.61 MB / 0.7615 GB, free: 165.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001734/1.48, allocations: 78.59 kB / 0.7616 GB, free: 165.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003024/1.48, allocations: 176 kB / 0.7617 GB, free: 165.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02211/1.502, allocations: 5.944 MB / 0.7675 GB, free: 162.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007858/1.51, allocations: 2.123 MB / 0.7696 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0284/1.539, allocations: 26.15 MB / 0.7951 GB, free: 134.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01043/1.549, allocations: 0.5557 MB / 0.7957 GB, free: 133.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002943/1.552, allocations: 0.5134 MB / 0.7962 GB, free: 133.2 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1099): * Single equations (assignments): 1091 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008685/1.561, allocations: 3.105 MB / 0.7992 GB, free: 130.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001536/1.562, allocations: 498.6 kB / 0.7997 GB, free: 129.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02985/1.592, allocations: 13.02 MB / 0.8124 GB, free: 116.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.773e-05/1.592, allocations: 55.98 kB / 0.8125 GB, free: 116.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.197e-05/1.593, allocations: 8 kB / 0.8125 GB, free: 116.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-05/1.593, allocations: 11.95 kB / 0.8125 GB, free: 116.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04981/1.642, allocations: 24.69 MB / 0.8366 GB, free: 91.67 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.928e-05/1.643, allocations: 4 kB / 0.8366 GB, free: 91.67 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003198/1.646, allocations: 0.5811 MB / 0.8372 GB, free: 91.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0187/1.664, allocations: 4.978 MB / 0.842 GB, free: 86.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001073/1.666, allocations: 58.23 kB / 0.8421 GB, free: 86.04 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02213/1.688, allocations: 21.33 MB / 0.8629 GB, free: 64.51 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.9e-05/1.688, allocations: 8 kB / 0.8629 GB, free: 64.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03383/1.722, allocations: 17.58 MB / 0.8801 GB, free: 46.84 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002222/1.724, allocations: 0.5336 MB / 0.8806 GB, free: 46.28 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00158/1.725, allocations: 53.33 kB / 0.8807 GB, free: 46.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002972/1.728, allocations: 271.5 kB / 0.8809 GB, free: 45.97 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007811/1.729, allocations: 191 kB / 0.8811 GB, free: 45.79 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002645/1.729, allocations: 91.98 kB / 0.8812 GB, free: 45.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005479/1.735, allocations: 3.39 MB / 0.8845 GB, free: 42.32 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.31e-07/1.735, allocations: 0 / 0.8845 GB, free: 42.32 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009332/1.744, allocations: 1.74 MB / 0.8862 GB, free: 40.59 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000759/1.745, allocations: 215.5 kB / 0.8864 GB, free: 40.38 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02237/1.767, allocations: 15.92 MB / 0.9019 GB, free: 24.48 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.226e-05/1.768, allocations: 4.125 kB / 0.902 GB, free: 24.48 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005361/1.773, allocations: 4.129 MB / 0.906 GB, free: 20.34 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005725/1.779, allocations: 0.6156 MB / 0.9066 GB, free: 19.75 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2883/2.067, allocations: 16.23 MB / 0.9224 GB, free: 178.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01029/2.077, allocations: 4.621 MB / 0.927 GB, free: 177.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00965/2.087, allocations: 2.979 MB / 0.9299 GB, free: 177.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001912/2.089, allocations: 351.2 kB / 0.9302 GB, free: 177.5 MB / 0.545 GB Notification: Performance of SimCode: time 1.022e-06/2.089, allocations: 4 kB / 0.9302 GB, free: 177.5 MB / 0.545 GB Notification: Performance of Templates: time 0.1276/2.217, allocations: 81.19 MB / 1.009 GB, free: 112.6 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches