Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 113.8 kB / 17.08 MB, free: 5.816 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.001026/0.001026, allocations: 194.4 kB / 18.01 MB, free: 4.965 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.364/1.364, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.2141/0.2141, allocations: 43.53 MB / 314.8 MB, free: 464 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.001427/0.001427, allocations: 63.91 kB / 442.5 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1073, allocations: 57.79 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01226/0.1196, allocations: 12.1 MB / 0.5003 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00882/0.1285, allocations: 4.311 MB / 0.5046 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002065/0.1306, allocations: 75.75 kB / 0.5046 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005062/0.1357, allocations: 2.729 MB / 0.5073 GB, free: 8.512 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005313/0.141, allocations: 2.023 MB / 0.5093 GB, free: 6.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00215/0.1432, allocations: 0.9164 MB / 0.5102 GB, free: 5.562 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007211/0.1504, allocations: 5.244 MB / 0.5153 GB, free: 312 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005973/0.1564, allocations: 3.374 MB / 0.5186 GB, free: 12.88 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004523/0.161, allocations: 1.733 MB / 0.5203 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00588/0.1669, allocations: 2.532 MB / 0.5227 GB, free: 8.602 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001615/0.1686, allocations: 392 kB / 0.5231 GB, free: 8.219 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003642/0.1722, allocations: 1.408 MB / 0.5245 GB, free: 6.809 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003369/0.1756, allocations: 2.221 MB / 0.5267 GB, free: 4.582 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004949/0.1806, allocations: 2.447 MB / 0.5291 GB, free: 2.121 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2958/0.4764, allocations: 7.907 MB / 0.5368 GB, free: 16.02 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.4764, allocations: 2.188 kB / 0.5368 GB, free: 16.02 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4764, allocations: 1.922 kB / 0.5368 GB, free: 16.02 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003076/0.4767, allocations: 0 / 0.5368 GB, free: 16.02 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.02072/0.4975, allocations: 5.53 MB / 0.5422 GB, free: 13.94 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.4975, allocations: 12.83 kB / 0.5422 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01266/0.5102, allocations: 2.472 MB / 0.5446 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009621/0.5199, allocations: 3.526 MB / 0.548 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002681/0.5202, allocations: 243.5 kB / 0.5483 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002068/0.5222, allocations: 333.7 kB / 0.5486 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02575/0.548, allocations: 10.88 MB / 0.5592 GB, free: 9.582 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001897/0.5482, allocations: 52.5 kB / 0.5593 GB, free: 9.574 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005453/0.5488, allocations: 150.5 kB / 0.5594 GB, free: 9.508 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003283/0.5521, allocations: 2.004 MB / 0.5614 GB, free: 9.062 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01877/0.5709, allocations: 9.447 MB / 0.5706 GB, free: 4.832 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0577/0.6286, allocations: 41.06 MB / 0.6107 GB, free: 11.84 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01131/0.6399, allocations: 4.262 MB / 0.6149 GB, free: 7.453 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002762/0.6427, allocations: 1.924 MB / 0.6167 GB, free: 5.523 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01202/0.6548, allocations: 7.617 MB / 0.6242 GB, free: 13.59 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.2e-05/0.6549, allocations: 55.41 kB / 0.6242 GB, free: 13.54 MB / 478.1 MB Notification: Performance of pre-optimization done (n=180): time 5.24e-06/0.6549, allocations: 0 / 0.6242 GB, free: 13.54 MB / 478.1 MB Notification: Performance of matching and sorting (n=236): time 0.1763/0.8312, allocations: 40.98 MB / 0.6643 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/0.8314, allocations: 213 kB / 0.6645 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009188/0.8406, allocations: 4.334 MB / 0.6687 GB, free: 48 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0008215/0.8414, allocations: 61.8 kB / 0.6687 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002661/0.8441, allocations: 3.165 MB / 0.6718 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001364/0.8455, allocations: 0.8872 MB / 0.6727 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002446/0.8479, allocations: 1.352 MB / 0.674 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.848, allocations: 305.1 kB / 0.6743 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005502/0.8535, allocations: 3.624 MB / 0.6779 GB, free: 6.668 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007936/0.8615, allocations: 7.3 MB / 0.685 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01545/0.877, allocations: 11.62 MB / 0.6963 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001146/0.8771, allocations: 36 kB / 0.6964 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04306/0.9202, allocations: 16.21 MB / 0.7122 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001117/0.9204, allocations: 61 kB / 0.7123 GB, free: 0.7383 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001703/0.9205, allocations: 124 kB / 0.7124 GB, free: 0.6172 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02506/0.9456, allocations: 6.221 MB / 0.7185 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007323/0.953, allocations: 1.498 MB / 0.7199 GB, free: 8.883 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04397/0.997, allocations: 27.62 MB / 0.7469 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01016/1.007, allocations: 422.2 kB / 0.7473 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002027/1.009, allocations: 384 kB / 0.7477 GB, free: 12.2 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (779): * Single equations (assignments): 774 * Array equations: 3 * 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 {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007225/1.017, allocations: 2.224 MB / 0.7498 GB, free: 9.961 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001659/1.018, allocations: 394.9 kB / 0.7502 GB, free: 9.57 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4044/1.423, allocations: 11.29 MB / 0.7612 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.632e-05/1.423, allocations: 25.34 kB / 0.7613 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.356e-05/1.423, allocations: 10.25 kB / 0.7613 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.4e-05/1.423, allocations: 10.92 kB / 0.7613 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04693/1.47, allocations: 20.65 MB / 0.7814 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.995e-05/1.47, allocations: 7.812 kB / 0.7815 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002143/1.472, allocations: 390.4 kB / 0.7818 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0203/1.492, allocations: 5.306 MB / 0.787 GB, free: 201.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006642/1.493, allocations: 47.08 kB / 0.7871 GB, free: 201.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02573/1.519, allocations: 22.71 MB / 0.8092 GB, free: 185.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.286e-06/1.519, allocations: 10.75 kB / 0.8092 GB, free: 185.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03084/1.55, allocations: 14.6 MB / 0.8235 GB, free: 171.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00304/1.553, allocations: 0.9858 MB / 0.8245 GB, free: 170.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001423/1.554, allocations: 38.19 kB / 0.8245 GB, free: 170.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003281/1.557, allocations: 183.7 kB / 0.8247 GB, free: 170.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008344/1.558, allocations: 158.5 kB / 0.8248 GB, free: 170.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002403/1.559, allocations: 60 kB / 0.8249 GB, free: 170.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004945/1.563, allocations: 2.723 MB / 0.8275 GB, free: 167.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.81e-07/1.563, allocations: 4 kB / 0.8275 GB, free: 167.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007512/1.571, allocations: 1.372 MB / 0.8289 GB, free: 166.1 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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007631/1.572, allocations: 183.8 kB / 0.8291 GB, free: 166 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01132/1.583, allocations: 8.345 MB / 0.8372 GB, free: 157.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/1.583, allocations: 0 / 0.8372 GB, free: 157.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004216/1.587, allocations: 3.222 MB / 0.8404 GB, free: 154.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004066/1.591, allocations: 0.5141 MB / 0.8409 GB, free: 154 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01931/1.611, allocations: 12.26 MB / 0.8528 GB, free: 141.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00328/1.614, allocations: 3.486 MB / 0.8562 GB, free: 138.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001569/1.616, allocations: 311.3 kB / 0.8565 GB, free: 137.9 MB / 0.5919 GB Notification: Performance of SimCode: time 1.132e-06/1.616, allocations: 0 / 0.8565 GB, free: 137.9 MB / 0.5919 GB Notification: Performance of Templates: time 0.1296/1.745, allocations: 110.4 MB / 0.9644 GB, free: 27.33 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches