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.00109/0.00109, allocations: 103.3 kB / 16.93 MB, free: 5.793 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.001406/0.001406, allocations: 191.3 kB / 17.86 MB, free: 5.152 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.352/1.352, allocations: 205.1 MB / 223.7 MB, free: 12.27 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.2248/0.2248, allocations: 43.52 MB / 314.6 MB, free: 0.5234 MB / 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.001717/0.001717, allocations: 70.34 kB / 383.4 MB, free: 56.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0999/0.1016, allocations: 57.79 MB / 441.2 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01196/0.1136, allocations: 12.1 MB / 453.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00997/0.1237, allocations: 4.307 MB / 457.6 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002657/0.1264, allocations: 75.75 kB / 457.7 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005885/0.1323, allocations: 2.745 MB / 460.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006307/0.1387, allocations: 2.011 MB / 462.4 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002594/0.1413, allocations: 0.9086 MB / 463.3 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007935/0.1493, allocations: 5.252 MB / 468.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005557/0.1549, allocations: 3.374 MB / 472 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003928/0.1588, allocations: 1.729 MB / 473.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004519/0.1634, allocations: 2.531 MB / 476.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001755/0.1652, allocations: 388 kB / 476.6 MB, free: 3.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003925/0.1691, allocations: 1.4 MB / 478 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00363/0.1728, allocations: 2.19 MB / 480.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00505/0.1779, allocations: 2.455 MB / 482.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01066/0.1886, allocations: 7.664 MB / 490.3 MB, free: 5.574 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.1886, allocations: 3.938 kB / 490.3 MB, free: 5.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1886, allocations: 0 / 490.3 MB, free: 5.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003161/0.1889, allocations: 4 kB / 490.3 MB, free: 5.566 MB / 366.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.01607/0.205, allocations: 5.525 MB / 495.8 MB, free: 15.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.2051, allocations: 11.89 kB / 495.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01232/0.2174, allocations: 2.483 MB / 498.3 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009767/0.2273, allocations: 3.458 MB / 0.49 GB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003068/0.2276, allocations: 238.5 kB / 0.4903 GB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001918/0.2295, allocations: 339.6 kB / 0.4906 GB, free: 9.379 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02574/0.2553, allocations: 10.87 MB / 0.5012 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002704/0.2556, allocations: 51.44 kB / 0.5012 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001612/0.2573, allocations: 159.8 kB / 0.5014 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003758/0.261, allocations: 1.998 MB / 0.5033 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02202/0.2831, allocations: 9.444 MB / 0.5126 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2787/0.5619, allocations: 41.23 MB / 0.5528 GB, free: 59.19 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01094/0.5728, allocations: 4.267 MB / 0.557 GB, free: 58.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002964/0.5759, allocations: 1.919 MB / 0.5589 GB, free: 57.29 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01107/0.5869, allocations: 7.632 MB / 0.5663 GB, free: 52.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.587, allocations: 53.62 kB / 0.5664 GB, free: 52.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=180): time 4.388e-06/0.587, allocations: 0 / 0.5664 GB, free: 52.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=236): time 0.1588/0.7458, allocations: 40.96 MB / 0.6064 GB, free: 17.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.343e-05/0.746, allocations: 205.9 kB / 0.6066 GB, free: 17.67 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005112/0.7511, allocations: 4.332 MB / 0.6108 GB, free: 13.31 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005444/0.7517, allocations: 61.38 kB / 0.6109 GB, free: 13.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001333/0.753, allocations: 3.175 MB / 0.614 GB, free: 10.08 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008628/0.7539, allocations: 0.8798 MB / 0.6148 GB, free: 9.203 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001639/0.7555, allocations: 1.354 MB / 0.6161 GB, free: 7.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.99e-05/0.7556, allocations: 301.1 kB / 0.6164 GB, free: 7.543 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004063/0.7596, allocations: 3.632 MB / 0.62 GB, free: 3.906 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006913/0.7666, allocations: 7.294 MB / 0.6271 GB, free: 10.86 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01486/0.7815, allocations: 11.62 MB / 0.6385 GB, free: 13.45 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001357/0.7816, allocations: 36 kB / 0.6385 GB, free: 13.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04195/0.8236, allocations: 16.22 MB / 0.6543 GB, free: 13.18 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.78e-05/0.8237, allocations: 60 kB / 0.6544 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001615/0.8239, allocations: 128 kB / 0.6545 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0249/0.8488, allocations: 6.229 MB / 0.6606 GB, free: 6.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005418/0.8543, allocations: 1.486 MB / 0.662 GB, free: 5.262 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03888/0.8932, allocations: 27.64 MB / 0.689 GB, free: 9.336 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006543/0.8998, allocations: 410.8 kB / 0.6894 GB, free: 8.938 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001046/0.9009, allocations: 388 kB / 0.6898 GB, free: 8.559 MB / 494.1 MB 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.004059/0.9049, allocations: 2.228 MB / 0.692 GB, free: 6.316 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009222/0.9059, allocations: 398.8 kB / 0.6924 GB, free: 5.922 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03119/0.9371, allocations: 11.3 MB / 0.7034 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-05/0.9372, allocations: 25.41 kB / 0.7034 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.206e-05/0.9372, allocations: 8 kB / 0.7034 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.194e-05/0.9373, allocations: 19.89 kB / 0.7034 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04809/0.9854, allocations: 20.7 MB / 0.7237 GB, free: 5.355 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.157e-05/0.9854, allocations: 4 kB / 0.7237 GB, free: 5.352 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002215/0.9877, allocations: 391.4 kB / 0.724 GB, free: 4.969 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2203/1.208, allocations: 5.306 MB / 0.7292 GB, free: 181.1 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006297/1.209, allocations: 43.69 kB / 0.7293 GB, free: 181.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02984/1.238, allocations: 22.7 MB / 0.7514 GB, free: 172.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/1.239, allocations: 7.781 kB / 0.7514 GB, free: 172.7 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03138/1.27, allocations: 14.59 MB / 0.7657 GB, free: 167.7 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002656/1.273, allocations: 0.9896 MB / 0.7666 GB, free: 167.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009645/1.274, allocations: 39.84 kB / 0.7667 GB, free: 167.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00276/1.276, allocations: 190.2 kB / 0.7669 GB, free: 167.1 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006811/1.277, allocations: 153.3 kB / 0.767 GB, free: 167.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001984/1.277, allocations: 64.34 kB / 0.7671 GB, free: 167.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003848/1.281, allocations: 2.721 MB / 0.7697 GB, free: 165.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.1e-07/1.281, allocations: 0 / 0.7697 GB, free: 165.3 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00573/1.287, allocations: 1.38 MB / 0.7711 GB, free: 163.9 MB / 0.5137 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.0005395/1.287, allocations: 179 kB / 0.7712 GB, free: 163.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01325/1.301, allocations: 9.736 MB / 0.7808 GB, free: 154.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/1.301, allocations: 0 / 0.7808 GB, free: 154.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003969/1.305, allocations: 3.215 MB / 0.7839 GB, free: 150.9 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003374/1.308, allocations: 0.514 MB / 0.7844 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01711/1.325, allocations: 12.37 MB / 0.7965 GB, free: 138.2 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003148/1.328, allocations: 3.486 MB / 0.7999 GB, free: 134.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001344/1.33, allocations: 307.4 kB / 0.8002 GB, free: 134.4 MB / 0.5137 GB Notification: Performance of SimCode: time 7.51e-07/1.33, allocations: 0 / 0.8002 GB, free: 134.4 MB / 0.5137 GB Notification: Performance of Templates: time 0.1188/1.449, allocations: 109.8 MB / 0.9074 GB, free: 24.57 MB / 0.5137 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