Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.0008037/0.0008037, allocations: 79.69 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.0008249/0.0008249, allocations: 170 kB / 23.95 MB, free: 0.6133 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.8406/0.8406, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.314e-06/2.314e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.073e-05/2.304e-05, allocations: 6.219 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007415/0.007438, allocations: 9.352 MB / 333.9 MB, free: 6.527 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005366/0.0128, allocations: 3.717 MB / 337.7 MB, free: 2.801 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006573/0.01346, allocations: 71.62 kB / 337.7 MB, free: 2.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002225/0.01569, allocations: 2.289 MB / 340 MB, free: 440 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002064/0.01775, allocations: 1.913 MB / 341.9 MB, free: 14.51 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009051/0.01865, allocations: 0.7797 MB / 342.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003011/0.02167, allocations: 5 MB / 347.7 MB, free: 8.719 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002842/0.02451, allocations: 2.93 MB / 350.6 MB, free: 5.734 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002514/0.02702, allocations: 2.284 MB / 352.9 MB, free: 3.445 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002114/0.02914, allocations: 2.385 MB / 355.3 MB, free: 1.055 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00037/0.02951, allocations: 300 kB / 355.6 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001046/0.03055, allocations: 0.8776 MB / 356.5 MB, free: 15.88 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001088/0.03164, allocations: 1.936 MB / 358.4 MB, free: 13.94 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009232/0.03256, allocations: 1.207 MB / 359.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004013/0.03658, allocations: 6.416 MB / 366 MB, free: 6.293 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.03658, allocations: 0 / 366 MB, free: 6.293 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.03658, allocations: 0 / 366 MB, free: 6.293 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.531e-05/0.03662, allocations: 3.938 kB / 366 MB, free: 6.289 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.004247/0.04086, allocations: 4.702 MB / 370.7 MB, free: 1.531 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.04091, allocations: 8.031 kB / 370.8 MB, free: 1.523 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005181/0.04142, allocations: 0.699 MB / 371.5 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003817/0.04524, allocations: 2.108 MB / 373.6 MB, free: 14.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002272/0.04751, allocations: 2.307 MB / 375.9 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.04762, allocations: 221.6 kB / 376.1 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003141/0.04793, allocations: 295.8 kB / 376.4 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007899/0.05583, allocations: 9.703 MB / 386.1 MB, free: 1.363 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.811e-05/0.0559, allocations: 43.62 kB / 386.1 MB, free: 1.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002417/0.05614, allocations: 151.8 kB / 386.3 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001607/0.05775, allocations: 1.915 MB / 388.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009013/0.06676, allocations: 7.672 MB / 395.9 MB, free: 7.555 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02512/0.09188, allocations: 36.47 MB / 432.3 MB, free: 1.914 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003549/0.09543, allocations: 2.446 MB / 434.8 MB, free: 15.43 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007196/0.09615, allocations: 0.7948 MB / 435.6 MB, free: 14.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003332/0.09948, allocations: 3.012 MB / 438.6 MB, free: 11.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.09951, allocations: 47.22 kB / 438.6 MB, free: 11.53 MB / 410.7 MB Notification: Performance of pre-optimization done (n=134): time 2.505e-06/0.09951, allocations: 0 / 438.6 MB, free: 11.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=152): time 0.01178/0.1113, allocations: 9.589 MB / 448.2 MB, free: 1.887 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/0.1114, allocations: 141.5 kB / 448.4 MB, free: 1.715 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1472/0.2586, allocations: 4.466 MB / 452.8 MB, free: 113.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002093/0.2588, allocations: 45.64 kB / 452.9 MB, free: 113.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001026/0.2598, allocations: 3.181 MB / 456 MB, free: 112 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000278/0.2601, allocations: 0.6209 MB / 456.7 MB, free: 111.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008/0.2609, allocations: 1.145 MB / 457.8 MB, free: 111 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.798e-05/0.2609, allocations: 306.2 kB / 458.1 MB, free: 110.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.2623, allocations: 1.585 MB / 459.7 MB, free: 110.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002115/0.2644, allocations: 5.36 MB / 465.1 MB, free: 104.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003901/0.2683, allocations: 7.544 MB / 472.6 MB, free: 97.65 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.634e-05/0.2684, allocations: 40 kB / 472.6 MB, free: 97.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.005354/0.2737, allocations: 6.686 MB / 479.3 MB, free: 91.67 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.293e-05/0.2738, allocations: 64 kB / 479.4 MB, free: 91.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.509e-05/0.2738, allocations: 132 kB / 479.5 MB, free: 91.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.573e-05/0.2739, allocations: 180 kB / 479.7 MB, free: 91.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001787/0.2757, allocations: 1.384 MB / 481.1 MB, free: 90.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.208e-05/0.2758, allocations: 265.7 kB / 481.3 MB, free: 89.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002218/0.278, allocations: 402.8 kB / 481.7 MB, free: 89.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002077/0.2782, allocations: 364 kB / 482.1 MB, free: 89.18 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.001597/0.2798, allocations: 1.972 MB / 484.1 MB, free: 87.37 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002545/0.2801, allocations: 349.7 kB / 484.4 MB, free: 87.03 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002939/0.2803, allocations: 409.5 kB / 484.8 MB, free: 86.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/0.2804, allocations: 16 kB / 484.8 MB, free: 86.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.2804, allocations: 4 kB / 484.8 MB, free: 86.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.2804, allocations: 3.984 kB / 484.8 MB, free: 86.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004326/0.2847, allocations: 5.519 MB / 490.3 MB, free: 80.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.896e-06/0.2847, allocations: 17 kB / 490.4 MB, free: 80.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004571/0.2852, allocations: 280.2 kB / 490.6 MB, free: 80.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.254e-05/0.2852, allocations: 28 kB / 490.7 MB, free: 80.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.117e-05/0.2852, allocations: 48 kB / 490.7 MB, free: 80.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.299e-05/0.2852, allocations: 35.86 kB / 490.7 MB, free: 80.42 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.766e-06/0.2852, allocations: 31.88 kB / 490.8 MB, free: 80.39 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001704/0.287, allocations: 3.218 MB / 494 MB, free: 76.93 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003058/0.2873, allocations: 400.8 kB / 494.4 MB, free: 76.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001779/0.2874, allocations: 51.98 kB / 494.4 MB, free: 76.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006752/0.2881, allocations: 113.7 kB / 494.5 MB, free: 76.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.349e-05/0.2882, allocations: 155.3 kB / 494.7 MB, free: 76.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.347e-05/0.2882, allocations: 64 kB / 494.8 MB, free: 76.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00173/0.29, allocations: 2.684 MB / 497.4 MB, free: 73.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.29, allocations: 4 kB / 497.4 MB, free: 73.49 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002204/0.2922, allocations: 0.9452 MB / 498.4 MB, free: 72.55 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.001945/0.2941, allocations: 3.909 MB / 0.4905 GB, free: 68.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0025/0.2966, allocations: 3.537 MB / 0.494 GB, free: 64.88 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.2966, allocations: 4 kB / 0.494 GB, free: 64.88 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004424/0.2971, allocations: 0.6984 MB / 0.4947 GB, free: 64.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.2984, allocations: 447 kB / 0.4951 GB, free: 63.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02534/0.3238, allocations: 41.12 MB / 0.5353 GB, free: 16.33 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001587/0.3253, allocations: 2.559 MB / 0.5377 GB, free: 13.75 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002024/0.3274, allocations: 1.78 MB / 0.5395 GB, free: 11.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001023/0.3284, allocations: 1.808 MB / 0.5413 GB, free: 10.15 MB / 410.7 MB Notification: Performance of SimCode: time 1.563e-06/0.3284, allocations: 0 / 0.5413 GB, free: 10.15 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06783/0.3962, allocations: 57.62 MB / 0.5975 GB, free: 1.312 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.521/9.917, allocations: 10.41 kB / 0.5975 GB, free: 1.309 MB / 458.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/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_4.1.0_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.016765060834587]