Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001593/0.001593, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001467/0.001467, allocations: 214.7 kB / 23.74 MB, free: 4.656 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.6/1.6, allocations: 230.6 MB / 257.5 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] 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.2164/0.2164, allocations: 44.91 MB / 358.8 MB, free: 6.312 MB / 286.1 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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002051/0.002051, allocations: 67.89 kB / 0.4931 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3395, allocations: 65.47 MB / 0.557 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01341/0.3529, allocations: 11.44 MB / 0.5682 GB, free: 12.31 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008676/0.3616, allocations: 4.106 MB / 0.5722 GB, free: 8.195 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00184/0.3635, allocations: 79.62 kB / 0.5723 GB, free: 8.117 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004968/0.3684, allocations: 2.534 MB / 0.5748 GB, free: 5.574 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005043/0.3735, allocations: 1.891 MB / 0.5766 GB, free: 3.676 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001888/0.3754, allocations: 0.7799 MB / 0.5774 GB, free: 2.895 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006834/0.3822, allocations: 4.515 MB / 0.5818 GB, free: 14.37 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004488/0.3867, allocations: 2.783 MB / 0.5845 GB, free: 11.54 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00304/0.3897, allocations: 1.585 MB / 0.586 GB, free: 9.945 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003955/0.3937, allocations: 2.399 MB / 0.5884 GB, free: 7.539 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001158/0.3948, allocations: 332 kB / 0.5887 GB, free: 7.215 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002514/0.3973, allocations: 0.9832 MB / 0.5897 GB, free: 6.23 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002894/0.4002, allocations: 1.975 MB / 0.5916 GB, free: 4.25 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004445/0.4047, allocations: 2.237 MB / 0.5938 GB, free: 2 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009937/0.4146, allocations: 6.851 MB / 0.6005 GB, free: 11.12 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.4146, allocations: 0 / 0.6005 GB, free: 11.12 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.4146, allocations: 0 / 0.6005 GB, free: 11.12 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002245/0.4149, allocations: 0 / 0.6005 GB, free: 11.12 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.01136/0.4262, allocations: 4.872 MB / 0.6052 GB, free: 6.188 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.4263, allocations: 8.031 kB / 0.6052 GB, free: 6.18 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001635/0.4279, allocations: 0.728 MB / 0.6059 GB, free: 5.441 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007303/0.4352, allocations: 1.995 MB / 0.6079 GB, free: 3.441 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005736/0.4409, allocations: 2.711 MB / 0.6105 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000238/0.4412, allocations: 258.2 kB / 0.6108 GB, free: 432 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007172/0.4419, allocations: 331.8 kB / 0.6111 GB, free: 100 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01752/0.4594, allocations: 10.23 MB / 0.6211 GB, free: 5.066 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001398/0.4595, allocations: 43.64 kB / 0.6211 GB, free: 5.023 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004104/0.46, allocations: 163.8 kB / 0.6213 GB, free: 4.863 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002871/0.4628, allocations: 1.908 MB / 0.6232 GB, free: 2.953 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01658/0.4794, allocations: 8.161 MB / 0.6311 GB, free: 10.77 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04883/0.5282, allocations: 39.18 MB / 0.6694 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007835/0.5361, allocations: 2.738 MB / 0.6721 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001687/0.5378, allocations: 0.9575 MB / 0.673 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008585/0.5463, allocations: 4.574 MB / 0.6775 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.518e-05/0.5464, allocations: 51.5 kB / 0.6775 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=148): time 4.007e-06/0.5464, allocations: 0 / 0.6775 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of matching and sorting (n=160): time 0.02406/0.5705, allocations: 9.605 MB / 0.6869 GB, free: 308 kB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.5706, allocations: 196.9 kB / 0.6871 GB, free: 68 kB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005745/0.5763, allocations: 4.064 MB / 0.691 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001793/0.5765, allocations: 49.7 kB / 0.6911 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002521/0.579, allocations: 3.314 MB / 0.6943 GB, free: 8.574 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.000705/0.5797, allocations: 0.6552 MB / 0.695 GB, free: 7.914 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001535/0.5813, allocations: 1.227 MB / 0.6962 GB, free: 6.676 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.5814, allocations: 305.1 kB / 0.6965 GB, free: 6.375 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002743/0.5841, allocations: 1.644 MB / 0.6981 GB, free: 4.727 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005731/0.5899, allocations: 5.518 MB / 0.7035 GB, free: 13.27 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009314/0.5992, allocations: 7.767 MB / 0.711 GB, free: 3.578 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.939e-05/0.5993, allocations: 40 kB / 0.7111 GB, free: 3.539 MB / 0.545 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01192/0.6112, allocations: 6.911 MB / 0.7178 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001306/0.6113, allocations: 64 kB / 0.7179 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001964/0.6115, allocations: 136 kB / 0.718 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002349/0.6117, allocations: 180 kB / 0.7182 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004277/0.616, allocations: 1.423 MB / 0.7196 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002365/0.6163, allocations: 267.2 kB / 0.7198 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003582/0.6198, allocations: 307.6 kB / 0.7201 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006137/0.6205, allocations: 372 kB / 0.7205 GB, free: 9.906 MB / 0.5606 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.003293/0.6237, allocations: 2.033 MB / 0.7225 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000674/0.6244, allocations: 373.5 kB / 0.7228 GB, free: 7.488 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009014/0.6253, allocations: 410.7 kB / 0.7232 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.041e-05/0.6254, allocations: 16 kB / 0.7232 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/0.6254, allocations: 7.984 kB / 0.7232 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.658e-05/0.6254, allocations: 7.922 kB / 0.7232 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01089/0.6363, allocations: 5.813 MB / 0.7289 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.019e-05/0.6363, allocations: 17 kB / 0.7289 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/0.6374, allocations: 287.5 kB / 0.7292 GB, free: 0.6367 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.112e-05/0.6374, allocations: 24.47 kB / 0.7292 GB, free: 0.6133 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/0.6375, allocations: 55.97 kB / 0.7293 GB, free: 0.5586 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-05/0.6376, allocations: 39.86 kB / 0.7293 GB, free: 0.5195 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.142e-05/0.6376, allocations: 31.86 kB / 0.7294 GB, free: 500 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2426/0.8802, allocations: 3.32 MB / 0.7326 GB, free: 152.8 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008051/0.881, allocations: 357.5 kB / 0.7329 GB, free: 152.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003216/0.8813, allocations: 47.33 kB / 0.733 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.8824, allocations: 70.97 kB / 0.7331 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.8825, allocations: 151.4 kB / 0.7332 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.062e-05/0.8826, allocations: 68.61 kB / 0.7333 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003108/0.8857, allocations: 2.518 MB / 0.7357 GB, free: 151.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8857, allocations: 0 / 0.7357 GB, free: 151.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004099/0.8898, allocations: 0.8777 MB / 0.7366 GB, free: 151.7 MB / 0.5606 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.003665/0.8935, allocations: 3.992 MB / 0.7405 GB, free: 149.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005497/0.899, allocations: 3.672 MB / 0.7441 GB, free: 148.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.986e-05/0.899, allocations: 3.938 kB / 0.7441 GB, free: 148.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0009501/0.8999, allocations: 0.7095 MB / 0.7448 GB, free: 148 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002799/0.9027, allocations: 473.5 kB / 0.7452 GB, free: 147.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04148/0.9442, allocations: 41.76 MB / 0.786 GB, free: 103.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00254/0.9467, allocations: 3.178 MB / 0.7891 GB, free: 100.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003362/0.9501, allocations: 1.805 MB / 0.7909 GB, free: 98.88 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001591/0.9517, allocations: 1.866 MB / 0.7927 GB, free: 97.02 MB / 0.5606 GB Notification: Performance of SimCode: time 1.583e-06/0.9517, allocations: 0 / 0.7927 GB, free: 97.02 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09637/1.048, allocations: 64.02 MB / 0.8552 GB, free: 33.45 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.5/32.55, allocations: 8.062 kB / 0.8552 GB, free: 33.44 MB / 0.5606 GB " [Timeout remaining time 627] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --stepSize=0.00059976 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 36.180672066053376]