Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008962/0.0008962, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 156.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8603/0.8603, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.342e-05/1.508e-05, allocations: 3.266 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.008638/0.008653, allocations: 9.369 MB / 333.9 MB, free: 6.473 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005588/0.01424, allocations: 3.712 MB / 337.6 MB, free: 2.746 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007707/0.01501, allocations: 75.62 kB / 337.7 MB, free: 2.672 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002225/0.01724, allocations: 2.273 MB / 340 MB, free: 396 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0024/0.01964, allocations: 1.921 MB / 341.9 MB, free: 14.46 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008351/0.02047, allocations: 0.7719 MB / 342.6 MB, free: 13.68 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002986/0.02346, allocations: 5.011 MB / 347.7 MB, free: 8.664 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001926/0.02538, allocations: 2.934 MB / 350.6 MB, free: 5.676 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001866/0.02725, allocations: 2.276 MB / 352.9 MB, free: 3.395 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001915/0.02916, allocations: 2.385 MB / 355.2 MB, free: 1.004 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003404/0.02951, allocations: 300 kB / 355.5 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000986/0.03049, allocations: 0.8737 MB / 356.4 MB, free: 15.84 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001107/0.0316, allocations: 1.936 MB / 358.4 MB, free: 13.89 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000884/0.03248, allocations: 1.207 MB / 359.6 MB, free: 12.68 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00423/0.03671, allocations: 6.424 MB / 366 MB, free: 6.238 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.03672, allocations: 4 kB / 366 MB, free: 6.234 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.03672, allocations: 0 / 366 MB, free: 6.234 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.523e-05/0.03677, allocations: 0 / 366 MB, free: 6.234 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.004854/0.04163, allocations: 4.696 MB / 370.7 MB, free: 1.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.04167, allocations: 15.98 kB / 370.7 MB, free: 1.465 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005211/0.0422, allocations: 0.6912 MB / 371.4 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003908/0.0461, allocations: 2.116 MB / 373.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002468/0.04857, allocations: 2.307 MB / 375.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/0.04867, allocations: 225.6 kB / 376 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003062/0.04898, allocations: 295.8 kB / 376.3 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007938/0.05692, allocations: 9.699 MB / 386 MB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.267e-05/0.05698, allocations: 43.67 kB / 386.1 MB, free: 1.262 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002328/0.05721, allocations: 151.8 kB / 386.2 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001513/0.05873, allocations: 1.915 MB / 388.1 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008453/0.06718, allocations: 7.66 MB / 395.8 MB, free: 7.508 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0229/0.09008, allocations: 36.48 MB / 432.3 MB, free: 1.859 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003695/0.09377, allocations: 2.438 MB / 434.7 MB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007278/0.0945, allocations: 0.791 MB / 435.5 MB, free: 14.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003065/0.09757, allocations: 3.024 MB / 438.5 MB, free: 11.54 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.09759, allocations: 47.16 kB / 438.6 MB, free: 11.48 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 2.424e-06/0.09759, allocations: 0 / 438.6 MB, free: 11.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=152): time 0.01232/0.1099, allocations: 9.581 MB / 448.1 MB, free: 1.844 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.111e-05/0.11, allocations: 145.5 kB / 448.3 MB, free: 1.668 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1468/0.2567, allocations: 4.465 MB / 452.8 MB, free: 113.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001914/0.2569, allocations: 45.67 kB / 452.8 MB, free: 113.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001073/0.258, allocations: 3.178 MB / 456 MB, free: 111.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003409/0.2583, allocations: 0.6195 MB / 456.6 MB, free: 111.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009884/0.2593, allocations: 1.15 MB / 457.7 MB, free: 110.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.491e-05/0.2594, allocations: 305.8 kB / 458 MB, free: 110.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001457/0.2608, allocations: 1.588 MB / 459.6 MB, free: 110.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002152/0.263, allocations: 5.354 MB / 465 MB, free: 104.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003912/0.2669, allocations: 7.549 MB / 472.5 MB, free: 97.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.062e-05/0.2669, allocations: 40 kB / 472.6 MB, free: 97.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.005079/0.272, allocations: 6.684 MB / 479.3 MB, free: 91.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/0.272, allocations: 65.53 kB / 479.3 MB, free: 91.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.648e-05/0.2721, allocations: 132 kB / 479.5 MB, free: 91.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.81e-05/0.2722, allocations: 176.8 kB / 479.6 MB, free: 91.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001865/0.274, allocations: 1.395 MB / 481 MB, free: 89.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.819e-05/0.2741, allocations: 261.6 kB / 481.3 MB, free: 89.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002198/0.2763, allocations: 402.4 kB / 481.7 MB, free: 89.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002053/0.2765, allocations: 364 kB / 482 MB, free: 89.09 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (738): * Single equations (assignments): 735 * 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.001443/0.2779, allocations: 1.973 MB / 484 MB, free: 87.27 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002471/0.2782, allocations: 353.6 kB / 484.3 MB, free: 86.93 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002851/0.2785, allocations: 405.5 kB / 484.7 MB, free: 86.53 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.336e-05/0.2785, allocations: 16 kB / 484.8 MB, free: 86.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.2785, allocations: 0 / 484.8 MB, free: 86.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.535e-06/0.2785, allocations: 11.91 kB / 484.8 MB, free: 86.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004286/0.2828, allocations: 5.515 MB / 490.3 MB, free: 80.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.2828, allocations: 23.94 kB / 490.3 MB, free: 80.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004583/0.2833, allocations: 276.3 kB / 490.6 MB, free: 80.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-05/0.2833, allocations: 24 kB / 490.6 MB, free: 80.41 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.255e-05/0.2833, allocations: 59.48 kB / 490.7 MB, free: 80.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-05/0.2833, allocations: 35.86 kB / 490.7 MB, free: 80.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.206e-06/0.2833, allocations: 31.86 kB / 490.7 MB, free: 80.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001752/0.2851, allocations: 3.209 MB / 493.9 MB, free: 76.83 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003154/0.2854, allocations: 393.4 kB / 494.3 MB, free: 76.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001873/0.2856, allocations: 51.98 kB / 494.4 MB, free: 76.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007105/0.2863, allocations: 119.9 kB / 494.5 MB, free: 76.28 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.248e-05/0.2864, allocations: 147.3 kB / 494.6 MB, free: 76.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.664e-05/0.2864, allocations: 71.98 kB / 494.7 MB, free: 76.06 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001888/0.2883, allocations: 2.688 MB / 497.4 MB, free: 73.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2883, allocations: 0 / 497.4 MB, free: 73.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002442/0.2908, allocations: 0.9489 MB / 498.3 MB, free: 72.45 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.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 (142): * Single equations (assignments): 139 * 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.002092/0.2929, allocations: 3.898 MB / 0.4905 GB, free: 68.29 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002768/0.2956, allocations: 3.544 MB / 0.4939 GB, free: 64.78 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.2956, allocations: 5.625 kB / 0.4939 GB, free: 64.78 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004695/0.2961, allocations: 0.6947 MB / 0.4946 GB, free: 64.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001418/0.2975, allocations: 460.9 kB / 0.495 GB, free: 63.65 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02505/0.3226, allocations: 41.12 MB / 0.5352 GB, free: 16.23 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001593/0.3242, allocations: 2.557 MB / 0.5377 GB, free: 13.64 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001964/0.3261, allocations: 1.78 MB / 0.5394 GB, free: 11.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001066/0.3272, allocations: 1.805 MB / 0.5412 GB, free: 10.05 MB / 410.7 MB Notification: Performance of SimCode: time 1.012e-06/0.3272, allocations: 0 / 0.5412 GB, free: 10.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06046/0.3877, allocations: 57.6 MB / 0.5975 GB, free: 1.117 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.43, allocations: 7.75 kB / 0.5975 GB, free: 1.113 MB / 458.7 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.364498210139573]