Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_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.001305/0.001305, allocations: 110.4 kB / 17.78 MB, free: 5.27 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.001405/0.001405, allocations: 183.8 kB / 18.71 MB, free: 4.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 222.9 MB / 242.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2185/0.2185, allocations: 44.19 MB / 336.7 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 59.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4008/0.402, allocations: 60.82 MB / 0.5189 GB, free: 3.582 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01396/0.416, allocations: 12.05 MB / 0.5307 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01126/0.4273, allocations: 4.299 MB / 0.5349 GB, free: 7.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003289/0.4306, allocations: 76.12 kB / 0.5349 GB, free: 7.645 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005677/0.4363, allocations: 2.735 MB / 0.5376 GB, free: 5.797 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007585/0.4441, allocations: 2.01 MB / 0.5396 GB, free: 4.363 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002636/0.4468, allocations: 0.908 MB / 0.5405 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01092/0.4577, allocations: 5.581 MB / 0.5459 GB, free: 344 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004979/0.4627, allocations: 3.366 MB / 0.5492 GB, free: 12.92 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003989/0.4668, allocations: 1.713 MB / 0.5509 GB, free: 11.2 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004223/0.471, allocations: 2.528 MB / 0.5533 GB, free: 8.664 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001036/0.4721, allocations: 384 kB / 0.5537 GB, free: 8.289 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003167/0.4753, allocations: 1.412 MB / 0.5551 GB, free: 6.875 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00217/0.4774, allocations: 2.217 MB / 0.5572 GB, free: 4.652 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003089/0.4805, allocations: 2.447 MB / 0.5596 GB, free: 2.191 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009969/0.4905, allocations: 7.905 MB / 0.5674 GB, free: 10.26 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.4906, allocations: 0 / 0.5674 GB, free: 10.26 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4906, allocations: 0 / 0.5674 GB, free: 10.26 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002602/0.4909, allocations: 0 / 0.5674 GB, free: 10.26 MB / 430.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.01464/0.5055, allocations: 5.517 MB / 0.5727 GB, free: 4.668 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.5056, allocations: 8.031 kB / 0.5727 GB, free: 4.66 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0104/0.516, allocations: 2.475 MB / 0.5752 GB, free: 2.176 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00814/0.5242, allocations: 3.418 MB / 0.5785 GB, free: 14.7 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002335/0.5244, allocations: 246.4 kB / 0.5787 GB, free: 14.46 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001729/0.5262, allocations: 335.6 kB / 0.5791 GB, free: 14.13 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02427/0.5504, allocations: 10.87 MB / 0.5897 GB, free: 2.516 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002706/0.5508, allocations: 51.59 kB / 0.5897 GB, free: 2.465 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001537/0.5523, allocations: 159.8 kB / 0.5899 GB, free: 2.309 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003654/0.556, allocations: 1.994 MB / 0.5918 GB, free: 320 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02338/0.5794, allocations: 9.448 MB / 0.601 GB, free: 6.844 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05805/0.6375, allocations: 41.06 MB / 0.6411 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01151/0.6491, allocations: 4.258 MB / 0.6453 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003005/0.6521, allocations: 1.931 MB / 0.6472 GB, free: 6.207 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01296/0.6651, allocations: 7.606 MB / 0.6546 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.039e-05/0.6652, allocations: 55.5 kB / 0.6547 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 4.077e-06/0.6652, allocations: 4 kB / 0.6547 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.1587/0.824, allocations: 40.91 MB / 0.6946 GB, free: 5.145 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.8241, allocations: 213.9 kB / 0.6948 GB, free: 4.895 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006534/0.8307, allocations: 4.309 MB / 0.699 GB, free: 0.5586 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008271/0.8315, allocations: 57.7 kB / 0.6991 GB, free: 0.4961 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002386/0.8339, allocations: 3.172 MB / 0.7022 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001131/0.8351, allocations: 0.8752 MB / 0.703 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001934/0.837, allocations: 1.352 MB / 0.7044 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.8371, allocations: 305.1 kB / 0.7047 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004915/0.842, allocations: 3.628 MB / 0.7082 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3135/1.156, allocations: 7.296 MB / 0.7153 GB, free: 165 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01592/1.172, allocations: 11.63 MB / 0.7267 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002177/1.172, allocations: 36.78 kB / 0.7267 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03921/1.211, allocations: 16.21 MB / 0.7425 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/1.211, allocations: 58.94 kB / 0.7426 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001523/1.211, allocations: 125.2 kB / 0.7427 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02136/1.233, allocations: 6.232 MB / 0.7488 GB, free: 149 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005072/1.238, allocations: 1.486 MB / 0.7503 GB, free: 148.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03128/1.269, allocations: 27.63 MB / 0.7772 GB, free: 121.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006767/1.276, allocations: 415.2 kB / 0.7776 GB, free: 121.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001535/1.277, allocations: 384 kB / 0.778 GB, free: 120.8 MB / 0.5606 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.005668/1.283, allocations: 2.219 MB / 0.7802 GB, free: 118.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001202/1.284, allocations: 398.9 kB / 0.7805 GB, free: 118.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02575/1.31, allocations: 11.29 MB / 0.7916 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.893e-05/1.31, allocations: 24 kB / 0.7916 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.856e-05/1.31, allocations: 15.75 kB / 0.7916 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.506e-05/1.31, allocations: 7.969 kB / 0.7916 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03739/1.348, allocations: 20.65 MB / 0.8118 GB, free: 86.06 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.775e-05/1.348, allocations: 8 kB / 0.8118 GB, free: 86.05 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00198/1.35, allocations: 387.4 kB / 0.8122 GB, free: 85.67 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01785/1.368, allocations: 5.308 MB / 0.8173 GB, free: 80.36 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006359/1.368, allocations: 44 kB / 0.8174 GB, free: 80.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02366/1.392, allocations: 22.7 MB / 0.8396 GB, free: 57.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/1.392, allocations: 7.938 kB / 0.8396 GB, free: 57.41 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02751/1.42, allocations: 14.6 MB / 0.8538 GB, free: 42.71 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001575/1.421, allocations: 447.9 kB / 0.8542 GB, free: 42.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009472/1.422, allocations: 47.98 kB / 0.8543 GB, free: 42.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002232/1.424, allocations: 181.4 kB / 0.8545 GB, free: 42.03 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006886/1.425, allocations: 153.1 kB / 0.8546 GB, free: 41.88 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002001/1.425, allocations: 67.98 kB / 0.8547 GB, free: 41.82 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003532/1.429, allocations: 2.701 MB / 0.8573 GB, free: 39.11 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.5e-07/1.429, allocations: 4 kB / 0.8573 GB, free: 39.11 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007104/1.436, allocations: 1.376 MB / 0.8587 GB, free: 37.73 MB / 0.5606 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.0006933/1.437, allocations: 187.6 kB / 0.8588 GB, free: 37.55 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01139/1.448, allocations: 8.345 MB / 0.867 GB, free: 29.22 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/1.448, allocations: 8 kB / 0.867 GB, free: 29.21 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004253/1.452, allocations: 3.212 MB / 0.8701 GB, free: 25.99 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003661/1.456, allocations: 0.5051 MB / 0.8706 GB, free: 25.49 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0169/1.473, allocations: 11.81 MB / 0.8822 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00321/1.476, allocations: 3.51 MB / 0.8856 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004181/1.48, allocations: 1.96 MB / 0.8875 GB, free: 8.094 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008712/1.481, allocations: 263.4 kB / 0.8878 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of SimCode: time 1.643e-06/1.481, allocations: 0 / 0.8878 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of Templates: time 0.4266/1.908, allocations: 67.51 MB / 0.9537 GB, free: 200.9 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches