Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Spring.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.001752/0.001752, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 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.002392/0.002392, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 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 1.513/1.513, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2909/0.2909, allocations: 46.92 MB / 357.1 MB, free: 10.32 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002085/0.002085, allocations: 59.91 kB / 0.4909 GB, free: 7.969 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1248, allocations: 66 MB / 0.5554 GB, free: 5.84 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01426/0.139, allocations: 11.42 MB / 0.5665 GB, free: 10.37 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008699/0.1477, allocations: 4.085 MB / 0.5705 GB, free: 6.266 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001755/0.1495, allocations: 75.62 kB / 0.5706 GB, free: 6.191 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005131/0.1546, allocations: 2.527 MB / 0.5731 GB, free: 3.656 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00495/0.1596, allocations: 1.875 MB / 0.5749 GB, free: 1.773 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001898/0.1615, allocations: 0.7761 MB / 0.5757 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006699/0.1682, allocations: 4.515 MB / 0.5801 GB, free: 12.47 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004744/0.1729, allocations: 2.87 MB / 0.5829 GB, free: 9.555 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003373/0.1763, allocations: 1.585 MB / 0.5844 GB, free: 7.965 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003991/0.1803, allocations: 2.395 MB / 0.5867 GB, free: 5.562 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001191/0.1815, allocations: 336 kB / 0.5871 GB, free: 5.234 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002476/0.1839, allocations: 0.9831 MB / 0.588 GB, free: 4.25 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002713/0.1866, allocations: 1.971 MB / 0.59 GB, free: 2.273 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003738/0.1904, allocations: 2.233 MB / 0.5921 GB, free: 28 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2753/0.4657, allocations: 6.846 MB / 0.5988 GB, free: 11.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.4657, allocations: 0.625 kB / 0.5988 GB, free: 11.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4657, allocations: 0 / 0.5988 GB, free: 11.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002797/0.466, allocations: 2.109 kB / 0.5988 GB, free: 11.43 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.01542/0.4814, allocations: 4.936 MB / 0.6036 GB, free: 9.371 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.852e-05/0.4815, allocations: 9.812 kB / 0.6037 GB, free: 9.371 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002371/0.4839, allocations: 0.7318 MB / 0.6044 GB, free: 9.297 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008696/0.4926, allocations: 1.994 MB / 0.6063 GB, free: 8.988 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00758/0.5001, allocations: 2.791 MB / 0.609 GB, free: 8.383 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002483/0.5004, allocations: 256.2 kB / 0.6093 GB, free: 8.375 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00166/0.502, allocations: 334.2 kB / 0.6096 GB, free: 8.367 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02017/0.5222, allocations: 10.23 MB / 0.6196 GB, free: 4.789 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001337/0.5224, allocations: 52.42 kB / 0.6196 GB, free: 4.781 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005142/0.5229, allocations: 160.9 kB / 0.6198 GB, free: 4.707 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002749/0.5256, allocations: 1.905 MB / 0.6217 GB, free: 4.387 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01712/0.5427, allocations: 8.171 MB / 0.6296 GB, free: 1.152 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05614/0.5989, allocations: 39.32 MB / 0.668 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009328/0.6082, allocations: 3.169 MB / 0.6711 GB, free: 7.91 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002006/0.6102, allocations: 0.9526 MB / 0.6721 GB, free: 6.941 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01054/0.6208, allocations: 6 MB / 0.6779 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.376e-05/0.6208, allocations: 51.91 kB / 0.678 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of pre-optimization done (n=148): time 5.761e-06/0.6208, allocations: 0 / 0.678 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of matching and sorting (n=160): time 0.02777/0.6486, allocations: 9.755 MB / 0.6875 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.6487, allocations: 200.4 kB / 0.6877 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008043/0.6568, allocations: 4.06 MB / 0.6917 GB, free: 2.422 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003321/0.6571, allocations: 59.72 kB / 0.6917 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003004/0.6601, allocations: 3.311 MB / 0.6949 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009146/0.661, allocations: 0.6612 MB / 0.6956 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002711/0.6637, allocations: 1.215 MB / 0.6968 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001344/0.6639, allocations: 305.1 kB / 0.6971 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003524/0.6674, allocations: 1.644 MB / 0.6987 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007536/0.6749, allocations: 5.518 MB / 0.7041 GB, free: 3.848 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01068/0.6856, allocations: 7.777 MB / 0.7117 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001632/0.6858, allocations: 40 kB / 0.7117 GB, free: 10.67 MB / 0.5294 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01583/0.7016, allocations: 6.899 MB / 0.7184 GB, free: 3.891 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001881/0.7018, allocations: 64 kB / 0.7185 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002609/0.702, allocations: 136 kB / 0.7186 GB, free: 3.695 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002763/0.7023, allocations: 184 kB / 0.7188 GB, free: 3.516 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005154/0.7075, allocations: 1.428 MB / 0.7202 GB, free: 2.082 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003052/0.7078, allocations: 267 kB / 0.7204 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00549/0.7133, allocations: 295.7 kB / 0.7207 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001364/0.7146, allocations: 380.1 kB / 0.7211 GB, free: 1.16 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (767): * Single equations (assignments): 764 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005881/0.7205, allocations: 2.039 MB / 0.7231 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001188/0.7217, allocations: 369.5 kB / 0.7234 GB, free: 14.75 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001634/0.7233, allocations: 414.7 kB / 0.7238 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.542e-05/0.7234, allocations: 19.36 kB / 0.7238 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.878e-05/0.7234, allocations: 4 kB / 0.7238 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-05/0.7234, allocations: 7.969 kB / 0.7239 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01546/0.7389, allocations: 5.839 MB / 0.7296 GB, free: 8.184 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.891e-05/0.7389, allocations: 24.25 kB / 0.7296 GB, free: 8.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00118/0.7401, allocations: 283.5 kB / 0.7299 GB, free: 7.883 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-05/0.7402, allocations: 24 kB / 0.7299 GB, free: 7.859 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001464/0.7403, allocations: 51.19 kB / 0.7299 GB, free: 7.812 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.472e-05/0.7403, allocations: 35.86 kB / 0.73 GB, free: 7.777 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.49e-05/0.7404, allocations: 27.88 kB / 0.73 GB, free: 7.75 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004981/0.7453, allocations: 3.322 MB / 0.7332 GB, free: 4.184 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/0.7466, allocations: 438.5 kB / 0.7336 GB, free: 3.734 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008245/0.7474, allocations: 51.98 kB / 0.7337 GB, free: 3.684 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001714/0.7491, allocations: 67.95 kB / 0.7338 GB, free: 3.617 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002219/0.7493, allocations: 147.4 kB / 0.7339 GB, free: 3.473 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000127/0.7495, allocations: 68.73 kB / 0.734 GB, free: 3.406 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005708/0.7552, allocations: 2.512 MB / 0.7364 GB, free: 0.8828 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7552, allocations: 0 / 0.7364 GB, free: 0.8828 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006147/0.7613, allocations: 0.8867 MB / 0.7373 GB, free: 0 / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * 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 (145): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005983/0.7673, allocations: 3.992 MB / 0.7412 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007636/0.7749, allocations: 3.68 MB / 0.7448 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.597e-05/0.775, allocations: 0 / 0.7448 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001319/0.7763, allocations: 0.7167 MB / 0.7455 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004205/0.7805, allocations: 477.7 kB / 0.7459 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08365/0.8641, allocations: 41.76 MB / 0.7867 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006038/0.8702, allocations: 3.17 MB / 0.7898 GB, free: 3.551 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.00501/0.8752, allocations: 1.808 MB / 0.7916 GB, free: 1.734 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003653/0.8788, allocations: 1.87 MB / 0.7934 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of SimCode: time 1.783e-06/0.8788, allocations: 0 / 0.7934 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3856/1.264, allocations: 59.17 MB / 0.8512 GB, free: 235.8 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.79/20.06, allocations: 2.594 kB / 0.8512 GB, free: 235.8 MB / 0.6544 GB " [Timeout remaining time 640] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.727925289887935]