Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 115.8 kB / 17.08 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 196.1 kB / 18.01 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.39/1.39, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2188/0.2188, allocations: 43.52 MB / 314.8 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 67.89 kB / 442.5 MB, free: 5.691 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1196, allocations: 57.78 MB / 0.4885 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01621/0.1359, allocations: 15.1 MB / 0.5033 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01036/0.1463, allocations: 4.827 MB / 0.508 GB, free: 7.816 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002959/0.1492, allocations: 91.75 kB / 0.5081 GB, free: 7.727 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006366/0.1556, allocations: 3.165 MB / 0.5112 GB, free: 4.551 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00749/0.1632, allocations: 2.63 MB / 0.5137 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002439/0.1657, allocations: 0.9905 MB / 0.5147 GB, free: 0.918 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009491/0.1752, allocations: 6.655 MB / 0.5212 GB, free: 10.25 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007054/0.1823, allocations: 4.373 MB / 0.5255 GB, free: 5.805 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00451/0.1868, allocations: 2.246 MB / 0.5277 GB, free: 3.551 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005252/0.1921, allocations: 3.26 MB / 0.5308 GB, free: 288 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.2745/0.4666, allocations: 486.9 kB / 0.5313 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006073/0.4727, allocations: 1.494 MB / 0.5328 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005061/0.4778, allocations: 2.904 MB / 0.5356 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006503/0.4843, allocations: 3.257 MB / 0.5388 GB, free: 10.5 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01681/0.5012, allocations: 10.46 MB / 0.549 GB, free: 8.961 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.5012, allocations: 0 / 0.549 GB, free: 8.961 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.5012, allocations: 1.281 kB / 0.549 GB, free: 8.961 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004582/0.5017, allocations: 0 / 0.549 GB, free: 8.961 MB / 414.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.02777/0.5295, allocations: 7.326 MB / 0.5562 GB, free: 6.262 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.5295, allocations: 13.55 kB / 0.5562 GB, free: 6.258 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01809/0.5476, allocations: 3.928 MB / 0.56 GB, free: 5.762 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01279/0.5605, allocations: 4.286 MB / 0.5642 GB, free: 3.496 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004446/0.561, allocations: 314.3 kB / 0.5645 GB, free: 3.402 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003504/0.5645, allocations: 432.4 kB / 0.5649 GB, free: 3.305 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03425/0.5987, allocations: 15.74 MB / 0.5803 GB, free: 9.641 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002601/0.5991, allocations: 51.16 kB / 0.5803 GB, free: 9.613 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001181/0.6003, allocations: 203.7 kB / 0.5805 GB, free: 9.473 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005308/0.6056, allocations: 3.226 MB / 0.5837 GB, free: 6.289 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03218/0.6378, allocations: 14.17 MB / 0.5975 GB, free: 8.348 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09675/0.7345, allocations: 57.51 MB / 0.6537 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01613/0.7507, allocations: 6.594 MB / 0.6601 GB, free: 7.262 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006077/0.7569, allocations: 3.76 MB / 0.6638 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02939/0.7863, allocations: 14.77 MB / 0.6782 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.873e-05/0.7864, allocations: 74.73 kB / 0.6783 GB, free: 4.203 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=292): time 8.275e-06/0.7864, allocations: 0 / 0.6783 GB, free: 4.203 MB / 0.5137 GB Notification: Performance of matching and sorting (n=342): time 0.166/0.9525, allocations: 42.55 MB / 0.7198 GB, free: 9.719 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001364/0.9526, allocations: 212.8 kB / 0.72 GB, free: 9.469 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01426/0.9669, allocations: 5.494 MB / 0.7254 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001445/0.9684, allocations: 69.7 kB / 0.7255 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.005022/0.9734, allocations: 4.348 MB / 0.7297 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002746/0.9762, allocations: 1.266 MB / 0.731 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008305/0.9845, allocations: 1.854 MB / 0.7328 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.9847, allocations: 313 kB / 0.7331 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009599/0.9943, allocations: 4.835 MB / 0.7378 GB, free: 7.297 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01464/1.009, allocations: 9.826 MB / 0.7474 GB, free: 11.12 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4045/1.414, allocations: 15.63 MB / 0.7626 GB, free: 197.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002204/1.414, allocations: 49.44 kB / 0.7627 GB, free: 197.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.05291/1.467, allocations: 19.61 MB / 0.7818 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002237/1.467, allocations: 80.91 kB / 0.7819 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003328/1.467, allocations: 172.5 kB / 0.7821 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02324/1.491, allocations: 5.938 MB / 0.7879 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008506/1.499, allocations: 2.126 MB / 0.7899 GB, free: 192.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03204/1.531, allocations: 26.15 MB / 0.8155 GB, free: 171.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009851/1.541, allocations: 0.5592 MB / 0.816 GB, free: 170.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002372/1.544, allocations: 0.5117 MB / 0.8165 GB, free: 170.4 MB / 0.5919 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.008772/1.552, allocations: 3.103 MB / 0.8196 GB, free: 167.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001997/1.554, allocations: 0.4897 MB / 0.82 GB, free: 167.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03418/1.589, allocations: 13.01 MB / 0.8327 GB, free: 154.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.672e-05/1.589, allocations: 59.98 kB / 0.8328 GB, free: 154 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.055e-05/1.589, allocations: 8 kB / 0.8328 GB, free: 154 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.909e-05/1.589, allocations: 11.95 kB / 0.8328 GB, free: 154 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0532/1.642, allocations: 24.63 MB / 0.8569 GB, free: 129 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.869e-05/1.642, allocations: 8 kB / 0.8569 GB, free: 129 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003446/1.646, allocations: 0.585 MB / 0.8574 GB, free: 128.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02037/1.666, allocations: 4.962 MB / 0.8623 GB, free: 123.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00111/1.667, allocations: 57.02 kB / 0.8623 GB, free: 123.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02367/1.691, allocations: 21.37 MB / 0.8832 GB, free: 101.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/1.691, allocations: 7.938 kB / 0.8832 GB, free: 101.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03526/1.726, allocations: 17.58 MB / 0.9004 GB, free: 84.11 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004072/1.73, allocations: 1.259 MB / 0.9016 GB, free: 82.83 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001455/1.732, allocations: 57.95 kB / 0.9017 GB, free: 82.78 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00363/1.735, allocations: 267.5 kB / 0.9019 GB, free: 82.52 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008076/1.736, allocations: 193.6 kB / 0.9021 GB, free: 82.32 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002944/1.736, allocations: 89.94 kB / 0.9022 GB, free: 82.24 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005978/1.742, allocations: 3.418 MB / 0.9055 GB, free: 78.84 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.61e-07/1.743, allocations: 0 / 0.9055 GB, free: 78.84 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01101/1.754, allocations: 1.766 MB / 0.9073 GB, free: 77.08 MB / 0.5919 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.000966/1.755, allocations: 204.8 kB / 0.9075 GB, free: 76.88 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01707/1.772, allocations: 11.04 MB / 0.9182 GB, free: 65.84 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/1.772, allocations: 1.875 kB / 0.9182 GB, free: 65.84 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006558/1.778, allocations: 4.13 MB / 0.9223 GB, free: 61.69 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005561/1.784, allocations: 0.6194 MB / 0.9229 GB, free: 61.09 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03127/1.815, allocations: 16.7 MB / 0.9392 GB, free: 44.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005221/1.82, allocations: 4.614 MB / 0.9437 GB, free: 39.66 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002489/1.823, allocations: 419.4 kB / 0.9441 GB, free: 39.25 MB / 0.5919 GB Notification: Performance of SimCode: time 1.022e-06/1.823, allocations: 0 / 0.9441 GB, free: 39.25 MB / 0.5919 GB Notification: Performance of Templates: time 0.5304/2.353, allocations: 151 MB / 1.092 GB, free: 104.4 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches