Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 168.7 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9688/0.9688, allocations: 177.1 MB / 206 MB, free: 4.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1617/0.1617, allocations: 32.8 MB / 295.4 MB, free: 15.36 MB / 282.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 0 / 377.2 MB, free: 25.61 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.608e-05/2.802e-05, allocations: 2.312 kB / 377.2 MB, free: 25.61 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal): time 0.01349/0.01352, allocations: 12.63 MB / 389.9 MB, free: 12.92 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01021/0.02373, allocations: 4.701 MB / 394.6 MB, free: 8.203 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003159/0.02689, allocations: 115.4 kB / 394.7 MB, free: 8.09 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004993/0.03188, allocations: 3.948 MB / 398.6 MB, free: 4.129 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005734/0.03761, allocations: 2.301 MB / 400.9 MB, free: 1.816 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00221/0.03982, allocations: 1.193 MB / 402.1 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009089/0.04891, allocations: 7.726 MB / 409.9 MB, free: 8.875 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00612/0.05503, allocations: 4.439 MB / 414.3 MB, free: 4.367 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008528/0.06356, allocations: 4.234 MB / 418.5 MB, free: 128 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005576/0.06914, allocations: 3.129 MB / 421.7 MB, free: 12.98 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001831/0.07097, allocations: 436 kB / 422.1 MB, free: 12.56 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003138/0.07411, allocations: 1.396 MB / 423.5 MB, free: 11.16 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003201/0.07731, allocations: 2.657 MB / 426.1 MB, free: 8.5 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003829/0.08114, allocations: 1.647 MB / 427.8 MB, free: 6.848 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009691/0.09083, allocations: 5.761 MB / 433.5 MB, free: 1.066 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.09083, allocations: 0 / 433.5 MB, free: 1.066 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.09084, allocations: 0 / 433.5 MB, free: 1.066 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003436/0.09118, allocations: 4 kB / 433.6 MB, free: 1.062 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.01249/0.1037, allocations: 6.44 MB / 440 MB, free: 10.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.1037, allocations: 11.98 kB / 440 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00777/0.1115, allocations: 2.104 MB / 442.1 MB, free: 8.426 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00622/0.1177, allocations: 2.909 MB / 445 MB, free: 5.469 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002352/0.1179, allocations: 287.7 kB / 445.3 MB, free: 5.188 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00096/0.1189, allocations: 392.1 kB / 445.7 MB, free: 4.805 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01309/0.132, allocations: 6.49 MB / 452.2 MB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001867/0.1322, allocations: 51.58 kB / 452.2 MB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006497/0.1328, allocations: 183.8 kB / 452.4 MB, free: 13 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002338/0.1352, allocations: 1.929 MB / 454.3 MB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009617/0.1448, allocations: 2.926 MB / 457.3 MB, free: 8.117 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2287/0.3735, allocations: 49.86 MB / 0.4952 GB, free: 74.69 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006223/0.3797, allocations: 2.273 MB / 0.4975 GB, free: 74.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008855/0.3806, allocations: 0.5296 MB / 0.498 GB, free: 74.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007606/0.3882, allocations: 4.844 MB / 0.5027 GB, free: 73.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.073e-05/0.3882, allocations: 54.78 kB / 0.5028 GB, free: 73.51 MB / 410.7 MB Notification: Performance of pre-optimization done (n=160): time 4.499e-06/0.3882, allocations: 0 / 0.5028 GB, free: 73.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=192): time 0.04693/0.4351, allocations: 12.4 MB / 0.5149 GB, free: 68.63 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.4352, allocations: 197.2 kB / 0.5151 GB, free: 68.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004701/0.4399, allocations: 4.273 MB / 0.5192 GB, free: 65.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003644/0.4403, allocations: 56.77 kB / 0.5193 GB, free: 65.36 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003233/0.4435, allocations: 4.078 MB / 0.5233 GB, free: 62.12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001355/0.4449, allocations: 0.8143 MB / 0.5241 GB, free: 61.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002005/0.4469, allocations: 1.522 MB / 0.5255 GB, free: 59.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.491e-05/0.4469, allocations: 480.2 kB / 0.526 GB, free: 59.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001756/0.4487, allocations: 0.6733 MB / 0.5267 GB, free: 58.62 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004615/0.4533, allocations: 6.989 MB / 0.5335 GB, free: 48.83 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00762/0.4609, allocations: 8.319 MB / 0.5416 GB, free: 38.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000205/0.4611, allocations: 44 kB / 0.5417 GB, free: 38.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=905) (initialization): time 0.009761/0.4709, allocations: 5.935 MB / 0.5474 GB, free: 32.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.894e-05/0.4709, allocations: 71.94 kB / 0.5475 GB, free: 32.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001091/0.471, allocations: 148 kB / 0.5477 GB, free: 32.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002239/0.4733, allocations: 1.009 MB / 0.5486 GB, free: 31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002783/0.4761, allocations: 1.537 MB / 0.5501 GB, free: 29.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005706/0.4818, allocations: 9.197 MB / 0.5591 GB, free: 19.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004846/0.4866, allocations: 303.6 kB / 0.5594 GB, free: 19.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006398/0.4873, allocations: 360 kB / 0.5598 GB, free: 19.17 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 676 * Number of states: 0 () * Number of discrete variables: 42 (Universal1.cylinderColor[3],Universal1.cylinderColor[2],Universal1.cylinderColor[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[1],b3.color[3],b3.color[2],b3.color[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 (851): * Single equations (assignments): 844 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,17,60.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.001517/0.4888, allocations: 0.7273 MB / 0.5605 GB, free: 18.43 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007649/0.4895, allocations: 461.3 kB / 0.5609 GB, free: 17.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002395/0.4919, allocations: 1.651 MB / 0.5625 GB, free: 16.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.398e-05/0.492, allocations: 26.98 kB / 0.5625 GB, free: 16.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.492, allocations: 4 kB / 0.5626 GB, free: 16.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/0.492, allocations: 11.97 kB / 0.5626 GB, free: 16.26 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/0.502, allocations: 6.795 MB / 0.5692 GB, free: 9.254 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.775e-05/0.502, allocations: 16.03 kB / 0.5692 GB, free: 9.238 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006237/0.5027, allocations: 247.6 kB / 0.5695 GB, free: 8.996 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001799/0.5045, allocations: 0.7701 MB / 0.5702 GB, free: 8.211 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001211/0.5046, allocations: 36 kB / 0.5702 GB, free: 8.176 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004866/0.5094, allocations: 8.386 MB / 0.5784 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/0.5095, allocations: 15.94 kB / 0.5784 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004381/0.5138, allocations: 2.921 MB / 0.5813 GB, free: 12.23 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/0.5151, allocations: 409 kB / 0.5817 GB, free: 11.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003717/0.5154, allocations: 39.98 kB / 0.5817 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008392/0.5163, allocations: 40 kB / 0.5818 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003003/0.5166, allocations: 148.6 kB / 0.5819 GB, free: 11.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.276e-05/0.5167, allocations: 48 kB / 0.5819 GB, free: 11.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002079/0.5187, allocations: 1.759 MB / 0.5837 GB, free: 9.793 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5187, allocations: 4.031 kB / 0.5837 GB, free: 9.789 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005325/0.5241, allocations: 1.266 MB / 0.5849 GB, free: 8.523 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 (144): * Single equations (assignments): 137 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,15,60.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004532/0.5245, allocations: 198.8 kB / 0.5851 GB, free: 8.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005909/0.5304, allocations: 3.87 MB / 0.5889 GB, free: 4.406 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/0.5304, allocations: 0 / 0.5889 GB, free: 4.406 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00168/0.5321, allocations: 1.439 MB / 0.5903 GB, free: 2.898 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002554/0.5347, allocations: 0.5286 MB / 0.5908 GB, free: 2.387 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01363/0.5483, allocations: 9.098 MB / 0.5997 GB, free: 9.078 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001973/0.5503, allocations: 1.5 MB / 0.6011 GB, free: 7.551 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001694/0.552, allocations: 0.5719 MB / 0.6017 GB, free: 6.977 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009394/0.5529, allocations: 0.6855 MB / 0.6024 GB, free: 6.289 MB / 442.7 MB Notification: Performance of SimCode: time 1.583e-06/0.5529, allocations: 0 / 0.6024 GB, free: 6.289 MB / 442.7 MB Notification: Performance of Templates: time 0.06844/0.6213, allocations: 44.14 MB / 0.6455 GB, free: 10.68 MB / 490.7 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalAndUniversal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalAndUniversal/SphericalAndUniversal.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.050142364576459]