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.001058/0.001059, allocations: 103.7 kB / 17.63 MB, free: 5.344 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.0009899/0.00099, allocations: 192 kB / 18.56 MB, free: 4.434 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.355/1.355, allocations: 222.9 MB / 242.2 MB, free: 15.16 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.2074/0.2074, allocations: 44.19 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 63.38 kB / 408.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1169, allocations: 60.83 MB / 469.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01314/0.1301, allocations: 12.04 MB / 481.3 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009317/0.1395, allocations: 4.294 MB / 485.6 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00227/0.1418, allocations: 71.81 kB / 485.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004794/0.1466, allocations: 2.745 MB / 488.4 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004843/0.1515, allocations: 2.011 MB / 490.4 MB, free: 9.102 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001885/0.1534, allocations: 0.9085 MB / 491.3 MB, free: 8.191 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006564/0.16, allocations: 5.583 MB / 496.9 MB, free: 2.598 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003444/0.1635, allocations: 3.366 MB / 0.4885 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002031/0.1655, allocations: 1.717 MB / 0.4902 GB, free: 13.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002678/0.1682, allocations: 2.516 MB / 0.4927 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006221/0.1689, allocations: 388 kB / 0.493 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002091/0.171, allocations: 1.404 MB / 0.4944 GB, free: 9.152 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00167/0.1726, allocations: 2.182 MB / 0.4966 GB, free: 6.965 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002209/0.1749, allocations: 2.451 MB / 0.4989 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.233/0.4079, allocations: 7.645 MB / 0.5064 GB, free: 23.67 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.262e-05/0.408, allocations: 3.062 kB / 0.5064 GB, free: 23.67 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.252e-06/0.408, allocations: 0.7812 kB / 0.5064 GB, free: 23.67 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006022/0.4086, allocations: 1.125 kB / 0.5064 GB, free: 23.67 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.0193/0.428, allocations: 5.519 MB / 0.5118 GB, free: 21.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/0.428, allocations: 13.19 kB / 0.5118 GB, free: 21.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01232/0.4404, allocations: 2.464 MB / 0.5142 GB, free: 21.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0107/0.4511, allocations: 3.362 MB / 0.5175 GB, free: 20.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003034/0.4515, allocations: 238.2 kB / 0.5177 GB, free: 20.65 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001962/0.4534, allocations: 334.4 kB / 0.5181 GB, free: 20.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02242/0.4759, allocations: 10.88 MB / 0.5287 GB, free: 16.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001903/0.4761, allocations: 52.31 kB / 0.5287 GB, free: 16.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004922/0.4766, allocations: 155.7 kB / 0.5289 GB, free: 16.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002764/0.4794, allocations: 1.997 MB / 0.5308 GB, free: 16.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01757/0.497, allocations: 9.445 MB / 0.54 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05381/0.5508, allocations: 41.23 MB / 0.5803 GB, free: 444 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01164/0.5625, allocations: 4.27 MB / 0.5845 GB, free: 12.03 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00288/0.5654, allocations: 1.931 MB / 0.5864 GB, free: 10.09 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01348/0.5789, allocations: 7.609 MB / 0.5938 GB, free: 2.168 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.204e-05/0.579, allocations: 59.06 kB / 0.5939 GB, free: 2.105 MB / 430.1 MB Notification: Performance of pre-optimization done (n=180): time 6.071e-06/0.5791, allocations: 0 / 0.5939 GB, free: 2.105 MB / 430.1 MB Notification: Performance of matching and sorting (n=236): time 0.17/0.7491, allocations: 40.9 MB / 0.6338 GB, free: 9.289 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/0.7493, allocations: 209.4 kB / 0.634 GB, free: 9.047 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008904/0.7582, allocations: 4.318 MB / 0.6382 GB, free: 4.707 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007518/0.759, allocations: 57.7 kB / 0.6383 GB, free: 4.645 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002555/0.7615, allocations: 3.162 MB / 0.6414 GB, free: 1.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001443/0.763, allocations: 0.8824 MB / 0.6422 GB, free: 0.625 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002409/0.7654, allocations: 1.356 MB / 0.6435 GB, free: 15.26 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.632e-05/0.7655, allocations: 301.1 kB / 0.6438 GB, free: 14.96 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004815/0.7703, allocations: 3.632 MB / 0.6474 GB, free: 11.32 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007092/0.7774, allocations: 7.295 MB / 0.6545 GB, free: 2.285 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01393/0.7914, allocations: 11.62 MB / 0.6658 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001216/0.7916, allocations: 39.94 kB / 0.6659 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04231/0.8339, allocations: 16.21 MB / 0.6817 GB, free: 5.438 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.372e-05/0.834, allocations: 63.94 kB / 0.6818 GB, free: 5.375 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001155/0.8341, allocations: 125.1 kB / 0.6819 GB, free: 5.254 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0245/0.8586, allocations: 6.229 MB / 0.688 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005519/0.8642, allocations: 1.493 MB / 0.6894 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3076/1.172, allocations: 27.64 MB / 0.7164 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006798/1.179, allocations: 411.3 kB / 0.7168 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001442/1.18, allocations: 384.9 kB / 0.7172 GB, free: 179.6 MB / 0.5294 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.004708/1.185, allocations: 2.218 MB / 0.7194 GB, free: 178.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001136/1.186, allocations: 395.5 kB / 0.7197 GB, free: 178.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02765/1.214, allocations: 11.29 MB / 0.7308 GB, free: 174.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.747e-05/1.214, allocations: 26.91 kB / 0.7308 GB, free: 174.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.101e-05/1.214, allocations: 18.38 kB / 0.7308 GB, free: 174.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.619e-05/1.214, allocations: 11.95 kB / 0.7308 GB, free: 174.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04154/1.255, allocations: 20.69 MB / 0.751 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.789e-05/1.256, allocations: 6.906 kB / 0.751 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002058/1.258, allocations: 388.8 kB / 0.7514 GB, free: 158.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0193/1.277, allocations: 5.314 MB / 0.7566 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000699/1.278, allocations: 47.31 kB / 0.7566 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0242/1.302, allocations: 22.7 MB / 0.7788 GB, free: 130.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/1.302, allocations: 4.047 kB / 0.7788 GB, free: 130.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02906/1.331, allocations: 14.62 MB / 0.7931 GB, free: 116.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001471/1.332, allocations: 457.1 kB / 0.7935 GB, free: 115.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001033/1.334, allocations: 43.94 kB / 0.7936 GB, free: 115.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002471/1.336, allocations: 179.7 kB / 0.7937 GB, free: 115.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006261/1.337, allocations: 156.2 kB / 0.7939 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001953/1.337, allocations: 60 kB / 0.7939 GB, free: 115.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003517/1.34, allocations: 2.705 MB / 0.7966 GB, free: 112.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/1.34, allocations: 0 / 0.7966 GB, free: 112.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007224/1.348, allocations: 1.38 MB / 0.7979 GB, free: 111.3 MB / 0.5294 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.0005661/1.348, allocations: 175.6 kB / 0.7981 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01394/1.362, allocations: 9.722 MB / 0.8076 GB, free: 101.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/1.362, allocations: 4 kB / 0.8076 GB, free: 101.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004193/1.366, allocations: 3.215 MB / 0.8107 GB, free: 98.24 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003565/1.37, allocations: 0.5131 MB / 0.8112 GB, free: 97.75 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01727/1.387, allocations: 11.93 MB / 0.8229 GB, free: 85.73 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003413/1.391, allocations: 3.507 MB / 0.8263 GB, free: 82.19 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005361/1.396, allocations: 1.956 MB / 0.8282 GB, free: 80.23 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001106/1.397, allocations: 263.4 kB / 0.8285 GB, free: 79.97 MB / 0.5294 GB Notification: Performance of SimCode: time 3.026e-06/1.397, allocations: 0 / 0.8285 GB, free: 79.97 MB / 0.5294 GB Notification: Performance of Templates: time 0.3541/1.751, allocations: 70.11 MB / 0.8969 GB, free: 181.8 MB / 0.5294 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