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.001391/0.001391, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001535/0.001535, allocations: 209.6 kB / 23.73 MB, free: 4.41 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.447/1.447, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.2183/0.2183, allocations: 44.92 MB / 358.8 MB, free: 6.184 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.002337/0.002337, allocations: 76.12 kB / 0.493 GB, free: 10.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3403/0.3427, allocations: 65.48 MB / 0.557 GB, free: 7.367 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01344/0.3561, allocations: 9.925 MB / 0.5667 GB, free: 13.59 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0103/0.3664, allocations: 3.877 MB / 0.5705 GB, free: 9.703 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002323/0.3687, allocations: 75.62 kB / 0.5705 GB, free: 9.629 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005543/0.3743, allocations: 2.433 MB / 0.5729 GB, free: 7.188 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005343/0.3796, allocations: 1.903 MB / 0.5748 GB, free: 5.277 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001746/0.3814, allocations: 0.7839 MB / 0.5755 GB, free: 4.492 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006692/0.388, allocations: 4.503 MB / 0.5799 GB, free: 15.98 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004135/0.3922, allocations: 2.767 MB / 0.5826 GB, free: 13.16 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002903/0.3951, allocations: 1.581 MB / 0.5842 GB, free: 11.57 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003859/0.3989, allocations: 2.27 MB / 0.5864 GB, free: 9.297 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008111/0.3998, allocations: 332 kB / 0.5867 GB, free: 8.973 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001962/0.4017, allocations: 0.8583 MB / 0.5875 GB, free: 8.113 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002208/0.4039, allocations: 1.971 MB / 0.5895 GB, free: 6.137 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002286/0.4062, allocations: 1.674 MB / 0.5911 GB, free: 4.453 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008713/0.4149, allocations: 6.882 MB / 0.5978 GB, free: 13.54 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.4149, allocations: 0 / 0.5978 GB, free: 13.54 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4149, allocations: 3.938 kB / 0.5978 GB, free: 13.54 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002015/0.4151, allocations: 4 kB / 0.5978 GB, free: 13.54 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.01225/0.4274, allocations: 4.861 MB / 0.6026 GB, free: 8.613 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/0.4274, allocations: 8.031 kB / 0.6026 GB, free: 8.605 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001281/0.4287, allocations: 0.7319 MB / 0.6033 GB, free: 7.863 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007792/0.4365, allocations: 1.991 MB / 0.6052 GB, free: 5.867 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008049/0.4446, allocations: 2.73 MB / 0.6079 GB, free: 3.082 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002835/0.4448, allocations: 266.2 kB / 0.6082 GB, free: 2.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001313/0.4462, allocations: 323.8 kB / 0.6085 GB, free: 2.504 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02021/0.4664, allocations: 10.33 MB / 0.6186 GB, free: 7.348 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001547/0.4665, allocations: 55.56 kB / 0.6186 GB, free: 7.293 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004863/0.467, allocations: 167.8 kB / 0.6188 GB, free: 7.129 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003154/0.4702, allocations: 1.9 MB / 0.6206 GB, free: 5.227 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.018/0.4882, allocations: 8.157 MB / 0.6286 GB, free: 13.05 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05114/0.5393, allocations: 37.8 MB / 0.6655 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008551/0.5479, allocations: 2.722 MB / 0.6682 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001736/0.5496, allocations: 0.9595 MB / 0.6691 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009512/0.5591, allocations: 4.34 MB / 0.6734 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.471e-05/0.5592, allocations: 59.44 kB / 0.6734 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=148): time 4.589e-06/0.5592, allocations: 0 / 0.6734 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of matching and sorting (n=160): time 0.02356/0.5827, allocations: 9.608 MB / 0.6828 GB, free: 4.199 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/0.5829, allocations: 193.2 kB / 0.683 GB, free: 3.969 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00602/0.5889, allocations: 4.292 MB / 0.6872 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001927/0.5891, allocations: 45.7 kB / 0.6872 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002622/0.5917, allocations: 3.318 MB / 0.6905 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007264/0.5924, allocations: 0.6591 MB / 0.6911 GB, free: 11.58 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001619/0.594, allocations: 1.219 MB / 0.6923 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001844/0.5942, allocations: 305.1 kB / 0.6926 GB, free: 10.05 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002831/0.597, allocations: 1.648 MB / 0.6942 GB, free: 8.398 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006306/0.6034, allocations: 5.564 MB / 0.6996 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0104/0.6138, allocations: 7.784 MB / 0.7072 GB, free: 7.18 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001452/0.6139, allocations: 40 kB / 0.7073 GB, free: 7.141 MB / 0.545 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01303/0.6269, allocations: 6.893 MB / 0.714 GB, free: 244 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.925e-05/0.627, allocations: 66.03 kB / 0.7141 GB, free: 180 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001733/0.6272, allocations: 136 kB / 0.7142 GB, free: 44 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002084/0.6274, allocations: 180 kB / 0.7144 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004395/0.6318, allocations: 1.431 MB / 0.7158 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002393/0.632, allocations: 263 kB / 0.716 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003792/0.6358, allocations: 307.7 kB / 0.7163 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006152/0.6365, allocations: 379.9 kB / 0.7167 GB, free: 13.5 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.00339/0.6398, allocations: 2.029 MB / 0.7186 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006805/0.6405, allocations: 361.6 kB / 0.719 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00079/0.6413, allocations: 418.9 kB / 0.7194 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.144e-05/0.6413, allocations: 23.98 kB / 0.7194 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/0.6414, allocations: 0 / 0.7194 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/0.6414, allocations: 15.91 kB / 0.7194 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01091/0.6523, allocations: 5.557 MB / 0.7248 GB, free: 4.809 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.842e-05/0.6523, allocations: 16 kB / 0.7249 GB, free: 4.793 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/0.6534, allocations: 287.6 kB / 0.7251 GB, free: 4.512 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.167e-05/0.6535, allocations: 24 kB / 0.7252 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.6536, allocations: 51.98 kB / 0.7252 GB, free: 4.438 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-05/0.6536, allocations: 35.86 kB / 0.7252 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.712e-05/0.6536, allocations: 23.94 kB / 0.7253 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004933/0.6585, allocations: 3.325 MB / 0.7285 GB, free: 0.8047 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00109/0.6596, allocations: 357.4 kB / 0.7289 GB, free: 464 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004222/0.6601, allocations: 51.98 kB / 0.7289 GB, free: 412 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.6612, allocations: 63.95 kB / 0.729 GB, free: 348 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001958/0.6614, allocations: 155.3 kB / 0.7291 GB, free: 192 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.6615, allocations: 64 kB / 0.7292 GB, free: 128 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.2923/0.9538, allocations: 2.516 MB / 0.7316 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.9e-07/0.9538, allocations: 2.281 kB / 0.7316 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004962/0.9588, allocations: 0.8831 MB / 0.7325 GB, free: 154.1 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.003773/0.9625, allocations: 3.999 MB / 0.7364 GB, free: 151.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005521/0.9681, allocations: 3.663 MB / 0.74 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.655e-05/0.9681, allocations: 2.594 kB / 0.74 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0008586/0.9689, allocations: 0.7129 MB / 0.7407 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002607/0.9716, allocations: 473.6 kB / 0.7411 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04505/1.017, allocations: 41.76 MB / 0.7819 GB, free: 107.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002665/1.019, allocations: 2.631 MB / 0.7845 GB, free: 104.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003367/1.023, allocations: 1.816 MB / 0.7862 GB, free: 102.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00178/1.024, allocations: 1.862 MB / 0.7881 GB, free: 100.9 MB / 0.5606 GB Notification: Performance of SimCode: time 1.282e-06/1.024, allocations: 0 / 0.7881 GB, free: 100.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1048/1.129, allocations: 58.79 MB / 0.8455 GB, free: 43.02 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.74/16.87, allocations: 14.73 kB / 0.8455 GB, free: 43.01 MB / 0.5606 GB " [Timeout remaining time 643] (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: 20.400437651667744]