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.001298/0.001298, allocations: 112.5 kB / 21.22 MB, free: 0.7305 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.001564/0.001564, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.455/1.455, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.2282/0.2282, allocations: 44.91 MB / 359.6 MB, free: 6.289 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring",fmuType="cs",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.00204/0.00204, allocations: 67.89 kB / 0.4939 GB, free: 10.71 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3115/0.3135, allocations: 65.47 MB / 0.5578 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01532/0.3288, allocations: 11.44 MB / 0.569 GB, free: 12.27 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.3388, allocations: 4.106 MB / 0.573 GB, free: 8.156 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002515/0.3413, allocations: 83.56 kB / 0.5731 GB, free: 8.074 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005384/0.3467, allocations: 2.534 MB / 0.5755 GB, free: 5.531 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005205/0.3519, allocations: 1.883 MB / 0.5774 GB, free: 3.641 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001819/0.3537, allocations: 0.7799 MB / 0.5781 GB, free: 2.859 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006891/0.3606, allocations: 4.511 MB / 0.5825 GB, free: 14.34 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004516/0.3652, allocations: 2.787 MB / 0.5853 GB, free: 11.5 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003085/0.3682, allocations: 1.577 MB / 0.5868 GB, free: 9.918 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003968/0.3722, allocations: 2.403 MB / 0.5891 GB, free: 7.508 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001107/0.3733, allocations: 332 kB / 0.5895 GB, free: 7.184 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002394/0.3757, allocations: 0.987 MB / 0.5904 GB, free: 6.195 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00238/0.3781, allocations: 1.967 MB / 0.5923 GB, free: 4.223 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003182/0.3813, allocations: 2.241 MB / 0.5945 GB, free: 1.969 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009912/0.3912, allocations: 6.851 MB / 0.6012 GB, free: 11.09 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.3912, allocations: 7.938 kB / 0.6012 GB, free: 11.08 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3912, allocations: 0 / 0.6012 GB, free: 11.08 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002513/0.3914, allocations: 0 / 0.6012 GB, free: 11.08 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.01155/0.403, allocations: 4.865 MB / 0.606 GB, free: 6.156 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.403, allocations: 8.031 kB / 0.606 GB, free: 6.148 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001484/0.4032, allocations: 106.6 kB / 0.6061 GB, free: 6.043 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001713/0.4049, allocations: 0.7358 MB / 0.6068 GB, free: 5.297 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00807/0.413, allocations: 1.983 MB / 0.6087 GB, free: 3.309 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006347/0.4193, allocations: 2.73 MB / 0.6114 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002773/0.4196, allocations: 250.3 kB / 0.6117 GB, free: 284 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00115/0.4208, allocations: 331.8 kB / 0.612 GB, free: 15.95 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02026/0.441, allocations: 10.23 MB / 0.622 GB, free: 4.918 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001779/0.4412, allocations: 47.58 kB / 0.622 GB, free: 4.871 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000649/0.4418, allocations: 159.9 kB / 0.6222 GB, free: 4.715 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003144/0.445, allocations: 1.908 MB / 0.624 GB, free: 2.805 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01836/0.4633, allocations: 8.169 MB / 0.632 GB, free: 10.62 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05183/0.5152, allocations: 39.18 MB / 0.6703 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00844/0.5236, allocations: 2.735 MB / 0.6729 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001757/0.5254, allocations: 0.9575 MB / 0.6739 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009377/0.5347, allocations: 4.578 MB / 0.6783 GB, free: 9.867 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.418e-05/0.5348, allocations: 47.5 kB / 0.6784 GB, free: 9.812 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=148): time 4.027e-06/0.5348, allocations: 0 / 0.6784 GB, free: 9.812 MB / 0.5137 GB Notification: Performance of matching and sorting (n=160): time 0.02534/0.5601, allocations: 9.605 MB / 0.6878 GB, free: 160 kB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/0.5603, allocations: 200.9 kB / 0.688 GB, free: 15.92 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006742/0.567, allocations: 4.06 MB / 0.6919 GB, free: 11.83 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003058/0.5673, allocations: 53.69 kB / 0.692 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002899/0.5702, allocations: 3.31 MB / 0.6952 GB, free: 8.43 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008574/0.5711, allocations: 0.6591 MB / 0.6958 GB, free: 7.766 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00174/0.5728, allocations: 1.219 MB / 0.697 GB, free: 6.535 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.573, allocations: 309.1 kB / 0.6973 GB, free: 6.23 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002872/0.5758, allocations: 1.644 MB / 0.6989 GB, free: 4.582 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006173/0.582, allocations: 5.518 MB / 0.7043 GB, free: 13.12 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009942/0.5919, allocations: 7.773 MB / 0.7119 GB, free: 3.43 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001215/0.5921, allocations: 40 kB / 0.712 GB, free: 3.391 MB / 0.545 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01404/0.6061, allocations: 6.893 MB / 0.7187 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000109/0.6062, allocations: 64.19 kB / 0.7187 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001856/0.6064, allocations: 140 kB / 0.7189 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001901/0.6066, allocations: 184 kB / 0.7191 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004606/0.6112, allocations: 1.423 MB / 0.7204 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002442/0.6114, allocations: 270.9 kB / 0.7207 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004001/0.6154, allocations: 303.6 kB / 0.721 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008514/0.6163, allocations: 376 kB / 0.7214 GB, free: 9.762 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.003518/0.6198, allocations: 2.033 MB / 0.7233 GB, free: 7.711 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006929/0.6205, allocations: 369.5 kB / 0.7237 GB, free: 7.348 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008474/0.6214, allocations: 414.6 kB / 0.7241 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.602e-05/0.6214, allocations: 24.45 kB / 0.7241 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-05/0.6214, allocations: 7.938 kB / 0.7241 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.6214, allocations: 3.984 kB / 0.7241 GB, free: 6.902 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01133/0.6327, allocations: 5.809 MB / 0.7298 GB, free: 0.7891 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.844e-05/0.6328, allocations: 16 kB / 0.7298 GB, free: 0.7734 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.6339, allocations: 291.5 kB / 0.7301 GB, free: 500 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.637e-05/0.6339, allocations: 24 kB / 0.7301 GB, free: 476 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001008/0.634, allocations: 56.55 kB / 0.7302 GB, free: 420 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.043e-05/0.634, allocations: 35.92 kB / 0.7302 GB, free: 384 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-05/0.634, allocations: 27.88 kB / 0.7302 GB, free: 356 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2456/0.8796, allocations: 3.32 MB / 0.7335 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000892/0.8805, allocations: 359.9 kB / 0.7338 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004412/0.8809, allocations: 47.27 kB / 0.7339 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/0.8822, allocations: 67.84 kB / 0.7339 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/0.8823, allocations: 149.9 kB / 0.7341 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.915e-05/0.8824, allocations: 71.36 kB / 0.7341 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003383/0.8858, allocations: 2.517 MB / 0.7366 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.8858, allocations: 0 / 0.7366 GB, free: 153.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004937/0.8908, allocations: 0.8767 MB / 0.7374 GB, free: 153.5 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.004654/0.8954, allocations: 3.999 MB / 0.7413 GB, free: 151.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005531/0.9009, allocations: 3.665 MB / 0.7449 GB, free: 150 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.732e-05/0.901, allocations: 3.531 kB / 0.7449 GB, free: 150 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0009246/0.9019, allocations: 0.7095 MB / 0.7456 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002798/0.9047, allocations: 476 kB / 0.7461 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04437/0.949, allocations: 41.77 MB / 0.7869 GB, free: 105.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00347/0.9525, allocations: 3.173 MB / 0.79 GB, free: 101.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003507/0.956, allocations: 1.816 MB / 0.7917 GB, free: 100 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00216/0.9582, allocations: 1.862 MB / 0.7936 GB, free: 98.18 MB / 0.5606 GB Notification: Performance of SimCode: time 1.432e-06/0.9582, allocations: 0 / 0.7936 GB, free: 98.18 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09785/1.056, allocations: 64.04 MB / 0.8561 GB, free: 34.59 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.16/27.21, allocations: 10.23 kB / 0.8561 GB, free: 34.59 MB / 0.5606 GB " [Timeout remaining time 633] (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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 31.55761350999819]