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.000829/0.000829, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0008547/0.0008547, allocations: 174 kB / 23.94 MB, free: 0.6172 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.8971/0.8971, allocations: 177.1 MB / 204.2 MB, free: 5.719 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.2697/0.2697, allocations: 32.79 MB / 293.5 MB, free: 1.199 MB / 266.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: "" <> 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: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 439.6 MB, free: 4.242 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.607e-05/1.755e-05, allocations: 8.047 kB / 439.6 MB, free: 4.234 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.1899/0.1899, allocations: 9.933 MB / 449.5 MB, free: 41.16 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.005338/0.1953, allocations: 3.886 MB / 453.4 MB, free: 38.95 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007895/0.196, allocations: 85.53 kB / 453.5 MB, free: 38.91 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00216/0.1982, allocations: 2.543 MB / 456 MB, free: 37.83 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002118/0.2003, allocations: 1.963 MB / 458 MB, free: 36.91 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008486/0.2012, allocations: 0.8447 MB / 458.8 MB, free: 36.54 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002621/0.2038, allocations: 5.203 MB / 464 MB, free: 34.72 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00187/0.2057, allocations: 3.275 MB / 467.3 MB, free: 33.34 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001629/0.2073, allocations: 2.423 MB / 469.7 MB, free: 32.32 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001821/0.2091, allocations: 2.502 MB / 472.2 MB, free: 31.69 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003165/0.2094, allocations: 339.9 kB / 472.6 MB, free: 31.69 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009652/0.2104, allocations: 0.9161 MB / 473.5 MB, free: 31.54 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008986/0.2113, allocations: 2.058 MB / 475.6 MB, free: 30.66 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007957/0.2121, allocations: 1.317 MB / 476.9 MB, free: 30.02 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005804/0.2179, allocations: 6.884 MB / 483.8 MB, free: 27.6 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2179, allocations: 0.6562 kB / 483.8 MB, free: 27.6 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.2179, allocations: 0 / 483.8 MB, free: 27.6 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001203/0.218, allocations: 5.219 kB / 483.8 MB, free: 27.6 MB / 410.7 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.007626/0.2256, allocations: 4.93 MB / 488.7 MB, free: 24.87 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.923e-05/0.2257, allocations: 9.625 kB / 488.7 MB, free: 24.87 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008039/0.2265, allocations: 0.7353 MB / 489.4 MB, free: 24.49 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005296/0.2318, allocations: 2.15 MB / 491.6 MB, free: 24.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003771/0.2356, allocations: 2.397 MB / 494 MB, free: 22.94 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.2357, allocations: 257.1 kB / 494.2 MB, free: 22.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004628/0.2362, allocations: 325.1 kB / 494.5 MB, free: 22.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01121/0.2474, allocations: 10.35 MB / 0.4931 GB, free: 16.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.919e-05/0.2475, allocations: 51.52 kB / 0.4931 GB, free: 16.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003137/0.2478, allocations: 164.3 kB / 0.4933 GB, free: 16.43 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001589/0.2494, allocations: 1.897 MB / 0.4951 GB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008026/0.2574, allocations: 8.18 MB / 0.5031 GB, free: 8.281 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02478/0.2822, allocations: 38.05 MB / 0.5403 GB, free: 1.062 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004475/0.2867, allocations: 2.855 MB / 0.5431 GB, free: 14.16 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009154/0.2876, allocations: 0.9518 MB / 0.544 GB, free: 13.18 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004971/0.2926, allocations: 4.483 MB / 0.5484 GB, free: 8.676 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.549e-05/0.2926, allocations: 54.69 kB / 0.5484 GB, free: 8.617 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 3.126e-06/0.2926, allocations: 3.938 kB / 0.5484 GB, free: 8.613 MB / 458.7 MB Notification: Performance of matching and sorting (n=160): time 0.01334/0.306, allocations: 10.03 MB / 0.5582 GB, free: 14.54 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.884e-05/0.306, allocations: 196.9 kB / 0.5584 GB, free: 14.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004283/0.3103, allocations: 4.604 MB / 0.5629 GB, free: 9.672 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 6.114e-05/0.3104, allocations: 49.7 kB / 0.5629 GB, free: 9.617 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001355/0.3117, allocations: 3.279 MB / 0.5661 GB, free: 6.305 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005691/0.3123, allocations: 0.6591 MB / 0.5668 GB, free: 5.641 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00101/0.3133, allocations: 1.192 MB / 0.568 GB, free: 4.438 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 7.959e-05/0.3134, allocations: 309.1 kB / 0.5683 GB, free: 4.133 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001706/0.3151, allocations: 1.663 MB / 0.5699 GB, free: 2.465 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003999/0.3191, allocations: 5.58 MB / 0.5753 GB, free: 10.93 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006075/0.3252, allocations: 7.793 MB / 0.5829 GB, free: 1.219 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.487e-05/0.3252, allocations: 40 kB / 0.583 GB, free: 1.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.0072/0.3324, allocations: 6.942 MB / 0.5898 GB, free: 10.23 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.893e-05/0.3325, allocations: 64.19 kB / 0.5898 GB, free: 10.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-05/0.3326, allocations: 136 kB / 0.5899 GB, free: 10.04 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000108/0.3327, allocations: 187.9 kB / 0.5901 GB, free: 9.855 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002479/0.3351, allocations: 1.443 MB / 0.5915 GB, free: 8.41 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001449/0.3353, allocations: 270.9 kB / 0.5918 GB, free: 8.145 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002576/0.3379, allocations: 407.4 kB / 0.5922 GB, free: 7.75 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003158/0.3382, allocations: 372 kB / 0.5925 GB, free: 7.387 MB / 0.4948 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.002536/0.3407, allocations: 2.038 MB / 0.5945 GB, free: 5.336 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003118/0.341, allocations: 373.5 kB / 0.5949 GB, free: 4.969 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004035/0.3414, allocations: 410.7 kB / 0.5953 GB, free: 4.559 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-05/0.3415, allocations: 20 kB / 0.5953 GB, free: 4.539 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/0.3415, allocations: 0 / 0.5953 GB, free: 4.539 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.858e-06/0.3415, allocations: 7.969 kB / 0.5953 GB, free: 4.531 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005925/0.3474, allocations: 5.639 MB / 0.6008 GB, free: 14.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/0.3474, allocations: 16 kB / 0.6008 GB, free: 14.58 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005364/0.348, allocations: 291.5 kB / 0.6011 GB, free: 14.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.57e-05/0.348, allocations: 24 kB / 0.6011 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.12e-05/0.348, allocations: 51.91 kB / 0.6012 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.806e-05/0.348, allocations: 40.92 kB / 0.6012 GB, free: 14.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.209e-05/0.348, allocations: 31.81 kB / 0.6012 GB, free: 14.16 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00245/0.3505, allocations: 3.29 MB / 0.6045 GB, free: 10.62 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006962/0.3512, allocations: 405.4 kB / 0.6048 GB, free: 10.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002076/0.3514, allocations: 55.97 kB / 0.6049 GB, free: 10.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007345/0.3521, allocations: 115.9 kB / 0.605 GB, free: 10.06 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.3523, allocations: 155.3 kB / 0.6051 GB, free: 9.906 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.94e-05/0.3523, allocations: 67.98 kB / 0.6052 GB, free: 9.84 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002511/0.3548, allocations: 2.762 MB / 0.6079 GB, free: 7.066 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8e-08/0.3548, allocations: 0 / 0.6079 GB, free: 7.066 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003209/0.358, allocations: 0.9881 MB / 0.6089 GB, free: 6.078 MB / 0.5105 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.003691/0.3617, allocations: 3.961 MB / 0.6127 GB, free: 1.855 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003928/0.3657, allocations: 3.694 MB / 0.6164 GB, free: 14.19 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.3657, allocations: 4 kB / 0.6164 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000601/0.3663, allocations: 0.7121 MB / 0.6171 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001557/0.3678, allocations: 476.2 kB / 0.6175 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2398/0.6076, allocations: 42.5 MB / 0.659 GB, free: 131.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002686/0.6103, allocations: 2.633 MB / 0.6616 GB, free: 130.9 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003206/0.6135, allocations: 1.833 MB / 0.6634 GB, free: 130.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001648/0.6152, allocations: 1.879 MB / 0.6652 GB, free: 129.3 MB / 0.5261 GB Notification: Performance of SimCode: time 1.893e-06/0.6152, allocations: 0 / 0.6652 GB, free: 129.3 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08092/0.6961, allocations: 60.5 MB / 0.7243 GB, free: 90.09 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.013/9.709, allocations: 4 kB / 0.7243 GB, free: 90.09 MB / 0.5261 GB " [Timeout remaining time 650] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins/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: 12.10428755916655]