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.0008592/0.0008592, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0008814/0.0008814, allocations: 170 kB / 23.95 MB, free: 0.6094 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.8928/0.8928, allocations: 177.1 MB / 204.3 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] 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.2538/0.2538, allocations: 34.25 MB / 294.9 MB, free: 0.6992 MB / 266.7 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 1.814e-06/1.814e-06, allocations: 0 / 442.2 MB, free: 1.645 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.254e-05/2.436e-05, allocations: 4.25 kB / 442.2 MB, free: 1.641 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.1681/0.1681, allocations: 9.938 MB / 452.1 MB, free: 38.48 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.005426/0.1736, allocations: 3.88 MB / 456 MB, free: 36.19 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001271/0.1748, allocations: 79.09 kB / 456.1 MB, free: 36.16 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002551/0.1774, allocations: 2.552 MB / 458.6 MB, free: 35.07 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004647/0.182, allocations: 1.95 MB / 460.6 MB, free: 34.16 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001462/0.1835, allocations: 0.8468 MB / 461.4 MB, free: 33.8 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.00401/0.1875, allocations: 5.208 MB / 466.6 MB, free: 31.97 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002487/0.19, allocations: 3.271 MB / 469.9 MB, free: 30.59 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002114/0.1921, allocations: 2.428 MB / 472.3 MB, free: 29.57 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001902/0.194, allocations: 2.497 MB / 474.8 MB, free: 28.94 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003103/0.1943, allocations: 340.3 kB / 475.2 MB, free: 28.94 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009832/0.1953, allocations: 0.9172 MB / 476.1 MB, free: 28.78 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008547/0.1962, allocations: 2.054 MB / 478.1 MB, free: 27.91 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008041/0.197, allocations: 1.329 MB / 479.5 MB, free: 27.26 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007012/0.204, allocations: 6.873 MB / 486.3 MB, free: 24.85 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.204, allocations: 9.578 kB / 486.3 MB, free: 24.84 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.326e-06/0.204, allocations: 0 / 486.3 MB, free: 24.84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002036/0.2042, allocations: 0 / 486.3 MB, free: 24.84 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.007514/0.2117, allocations: 4.933 MB / 491.3 MB, free: 22.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.2117, allocations: 13.25 kB / 491.3 MB, free: 22.11 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007544/0.2125, allocations: 0.7278 MB / 492 MB, free: 21.74 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004755/0.2173, allocations: 2.152 MB / 494.2 MB, free: 21.36 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003354/0.2206, allocations: 2.405 MB / 496.6 MB, free: 20.18 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001447/0.2208, allocations: 244.3 kB / 496.8 MB, free: 20.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004216/0.2212, allocations: 327.2 kB / 497.1 MB, free: 19.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01167/0.2329, allocations: 10.37 MB / 0.4956 GB, free: 13.58 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.861e-05/0.2329, allocations: 46.55 kB / 0.4957 GB, free: 13.55 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003078/0.2332, allocations: 157.1 kB / 0.4958 GB, free: 13.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001715/0.235, allocations: 1.912 MB / 0.4977 GB, free: 12.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00924/0.2442, allocations: 8.173 MB / 0.5057 GB, free: 4.246 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02805/0.2722, allocations: 38.04 MB / 0.5428 GB, free: 13.04 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00458/0.2768, allocations: 2.854 MB / 0.5456 GB, free: 10.13 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001093/0.2779, allocations: 0.9596 MB / 0.5465 GB, free: 9.152 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005067/0.283, allocations: 4.475 MB / 0.5509 GB, free: 4.656 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.283, allocations: 47.56 kB / 0.5509 GB, free: 4.602 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 3.246e-06/0.283, allocations: 0 / 0.5509 GB, free: 4.602 MB / 458.7 MB Notification: Performance of matching and sorting (n=160): time 0.01323/0.2962, allocations: 10.04 MB / 0.5607 GB, free: 10.52 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.752e-05/0.2963, allocations: 200.9 kB / 0.5609 GB, free: 10.28 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004143/0.3005, allocations: 4.597 MB / 0.5654 GB, free: 5.652 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 6.25e-05/0.3005, allocations: 53.7 kB / 0.5655 GB, free: 5.594 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001512/0.302, allocations: 3.279 MB / 0.5687 GB, free: 2.281 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000331/0.3024, allocations: 0.6591 MB / 0.5693 GB, free: 1.617 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001105/0.3035, allocations: 1.195 MB / 0.5705 GB, free: 420 kB / 474.7 MB Notification: Performance of setup shared object (initialization): time 8.648e-05/0.3036, allocations: 305.1 kB / 0.5708 GB, free: 112 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001692/0.3053, allocations: 1.663 MB / 0.5724 GB, free: 14.44 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003423/0.3087, allocations: 5.588 MB / 0.5779 GB, free: 6.902 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00572/0.3144, allocations: 7.789 MB / 0.5855 GB, free: 13.19 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.692e-05/0.3144, allocations: 40 kB / 0.5855 GB, free: 13.15 MB / 0.4948 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.006845/0.3213, allocations: 6.946 MB / 0.5923 GB, free: 6.199 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.285e-05/0.3213, allocations: 66.66 kB / 0.5924 GB, free: 6.137 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.398e-05/0.3214, allocations: 136 kB / 0.5925 GB, free: 6.004 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.455e-05/0.3215, allocations: 180 kB / 0.5927 GB, free: 5.828 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002137/0.3236, allocations: 1.443 MB / 0.5941 GB, free: 4.383 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001194/0.3238, allocations: 270.9 kB / 0.5943 GB, free: 4.117 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00242/0.3262, allocations: 403.5 kB / 0.5947 GB, free: 3.723 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002832/0.3265, allocations: 372 kB / 0.5951 GB, free: 3.359 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.002239/0.3287, allocations: 2.037 MB / 0.597 GB, free: 1.312 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003093/0.329, allocations: 377.2 kB / 0.5974 GB, free: 0.9453 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003966/0.3294, allocations: 410.7 kB / 0.5978 GB, free: 0.5352 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.88e-05/0.3294, allocations: 23.98 kB / 0.5978 GB, free: 0.5117 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.3294, allocations: 0 / 0.5978 GB, free: 0.5117 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.3295, allocations: 7.969 kB / 0.5978 GB, free: 0.5039 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005989/0.3354, allocations: 5.637 MB / 0.6033 GB, free: 10.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.204e-05/0.3355, allocations: 19.94 kB / 0.6034 GB, free: 10.55 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005346/0.336, allocations: 287.5 kB / 0.6036 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.468e-05/0.336, allocations: 24 kB / 0.6037 GB, free: 10.25 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.347e-05/0.3361, allocations: 52 kB / 0.6037 GB, free: 10.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.902e-05/0.3361, allocations: 35.86 kB / 0.6037 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.159e-05/0.3361, allocations: 28.31 kB / 0.6038 GB, free: 10.14 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00269/0.3388, allocations: 3.29 MB / 0.607 GB, free: 6.602 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004678/0.3392, allocations: 405.3 kB / 0.6074 GB, free: 6.203 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002073/0.3395, allocations: 51.97 kB / 0.6074 GB, free: 6.152 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007474/0.3402, allocations: 123.9 kB / 0.6075 GB, free: 6.031 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.3403, allocations: 147.3 kB / 0.6077 GB, free: 5.887 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.96e-05/0.3404, allocations: 71.98 kB / 0.6077 GB, free: 5.816 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002806/0.3432, allocations: 2.762 MB / 0.6104 GB, free: 3.043 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9e-08/0.3432, allocations: 0 / 0.6104 GB, free: 3.043 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003307/0.3465, allocations: 0.9803 MB / 0.6114 GB, free: 2.062 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.002994/0.3495, allocations: 3.967 MB / 0.6153 GB, free: 13.83 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003706/0.3532, allocations: 3.695 MB / 0.6189 GB, free: 10.16 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.3532, allocations: 6.25 kB / 0.6189 GB, free: 10.16 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0006306/0.3538, allocations: 0.7144 MB / 0.6196 GB, free: 9.449 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001891/0.3557, allocations: 478.6 kB / 0.62 GB, free: 8.992 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1991/0.5548, allocations: 42.5 MB / 0.6615 GB, free: 153.1 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001903/0.5567, allocations: 2.635 MB / 0.6641 GB, free: 152.4 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002291/0.559, allocations: 1.825 MB / 0.6659 GB, free: 152.3 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001137/0.5601, allocations: 1.881 MB / 0.6677 GB, free: 150.8 MB / 0.5417 GB Notification: Performance of SimCode: time 1.373e-06/0.5602, allocations: 0 / 0.6677 GB, free: 150.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06568/0.6258, allocations: 60.5 MB / 0.7268 GB, free: 118.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.266/9.892, allocations: 11.02 kB / 0.7268 GB, free: 118.4 MB / 0.5417 GB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.Spring_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00059976 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.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins/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: 12.021864539012313]