Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009147/0.0009147, allocations: 76.08 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00081/0.00081, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8405/0.8405, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.532e-06/1.532e-06, allocations: 0 / 318.4 MB, free: 6.223 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.895e-05/2.048e-05, allocations: 5.516 kB / 318.4 MB, free: 6.219 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.007456/0.007477, allocations: 9.368 MB / 327.8 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006209/0.01369, allocations: 3.701 MB / 331.5 MB, free: 9.086 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001517/0.0152, allocations: 79.62 kB / 331.6 MB, free: 9.008 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002863/0.01807, allocations: 2.285 MB / 333.9 MB, free: 6.715 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003383/0.02145, allocations: 1.956 MB / 335.8 MB, free: 4.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.02252, allocations: 0.7758 MB / 336.6 MB, free: 3.973 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004096/0.02661, allocations: 4.875 MB / 341.5 MB, free: 15.08 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00294/0.02955, allocations: 2.934 MB / 344.4 MB, free: 12.09 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002543/0.0321, allocations: 2.288 MB / 346.7 MB, free: 9.801 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002157/0.03425, allocations: 2.389 MB / 349.1 MB, free: 7.406 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003346/0.03459, allocations: 300 kB / 349.4 MB, free: 7.113 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001162/0.03575, allocations: 0.901 MB / 350.3 MB, free: 6.211 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001075/0.03683, allocations: 1.967 MB / 352.3 MB, free: 4.238 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009007/0.03773, allocations: 1.223 MB / 353.5 MB, free: 3.012 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00489/0.04262, allocations: 6.486 MB / 360 MB, free: 12.5 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.04262, allocations: 0 / 360 MB, free: 12.5 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.04262, allocations: 4 kB / 360 MB, free: 12.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.379e-05/0.04272, allocations: 0 / 360 MB, free: 12.5 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.005462/0.04818, allocations: 4.745 MB / 364.7 MB, free: 7.699 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.04822, allocations: 12.92 kB / 364.7 MB, free: 7.688 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005266/0.04875, allocations: 0.6873 MB / 365.4 MB, free: 6.988 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004088/0.05284, allocations: 2.12 MB / 367.5 MB, free: 4.863 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002626/0.05546, allocations: 2.307 MB / 369.8 MB, free: 2.504 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.05558, allocations: 225.6 kB / 370.1 MB, free: 2.281 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003352/0.05592, allocations: 291.8 kB / 370.3 MB, free: 1.996 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009411/0.06533, allocations: 9.688 MB / 380 MB, free: 7.543 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.178e-05/0.0654, allocations: 47.62 kB / 380.1 MB, free: 7.496 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002446/0.06564, allocations: 147.9 kB / 380.2 MB, free: 7.352 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001633/0.06728, allocations: 1.919 MB / 382.1 MB, free: 5.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009951/0.07723, allocations: 7.648 MB / 389.8 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03042/0.1076, allocations: 36.46 MB / 426.3 MB, free: 8.133 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004027/0.1117, allocations: 2.431 MB / 428.7 MB, free: 5.664 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008006/0.1125, allocations: 0.7992 MB / 429.5 MB, free: 4.855 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003625/0.1161, allocations: 3.004 MB / 432.5 MB, free: 1.824 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.1161, allocations: 59.14 kB / 432.5 MB, free: 1.758 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 3.356e-06/0.1161, allocations: 0 / 432.5 MB, free: 1.758 MB / 394.7 MB Notification: Performance of matching and sorting (n=152): time 0.01405/0.1302, allocations: 9.53 MB / 442.1 MB, free: 8.164 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.1302, allocations: 149.5 kB / 442.2 MB, free: 7.984 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004153/0.1344, allocations: 4.482 MB / 446.7 MB, free: 3.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001112/0.1345, allocations: 49.61 kB / 446.8 MB, free: 3.469 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001718/0.1362, allocations: 3.186 MB / 449.9 MB, free: 260 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1319/0.2681, allocations: 0.6164 MB / 450.6 MB, free: 119.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00158/0.2697, allocations: 1.147 MB / 451.7 MB, free: 119.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.802e-05/0.2697, allocations: 309.4 kB / 452 MB, free: 119.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001927/0.2717, allocations: 1.58 MB / 453.6 MB, free: 118.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002358/0.274, allocations: 5.353 MB / 458.9 MB, free: 113.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004187/0.2782, allocations: 7.529 MB / 466.5 MB, free: 106.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.877e-05/0.2783, allocations: 40.88 kB / 466.5 MB, free: 106.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.006173/0.2844, allocations: 6.669 MB / 473.2 MB, free: 101.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.019e-05/0.2845, allocations: 64 kB / 473.2 MB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001034/0.2846, allocations: 140.9 kB / 473.4 MB, free: 101.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.125e-05/0.2847, allocations: 176 kB / 473.5 MB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001973/0.2867, allocations: 1.386 MB / 474.9 MB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.357e-05/0.2867, allocations: 259.9 kB / 475.2 MB, free: 100 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002169/0.2889, allocations: 393.5 kB / 475.6 MB, free: 99.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002164/0.2891, allocations: 374.9 kB / 475.9 MB, free: 99.34 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.001548/0.2907, allocations: 1.972 MB / 477.9 MB, free: 97.69 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002677/0.2909, allocations: 357.6 kB / 478.3 MB, free: 97.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001046/0.292, allocations: 1.247 MB / 479.5 MB, free: 96.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.292, allocations: 23.94 kB / 479.5 MB, free: 96.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.292, allocations: 0 / 479.5 MB, free: 96.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.292, allocations: 11.55 kB / 479.5 MB, free: 96.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004417/0.2964, allocations: 5.51 MB / 485.1 MB, free: 91.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/0.2964, allocations: 23.62 kB / 485.1 MB, free: 91.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004778/0.2969, allocations: 279.5 kB / 485.3 MB, free: 90.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.244e-05/0.2969, allocations: 28 kB / 485.4 MB, free: 90.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.228e-05/0.297, allocations: 48 kB / 485.4 MB, free: 90.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.084e-05/0.297, allocations: 39.86 kB / 485.5 MB, free: 90.67 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/0.297, allocations: 27.88 kB / 485.5 MB, free: 90.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001776/0.2988, allocations: 3.206 MB / 488.7 MB, free: 87.19 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003436/0.2991, allocations: 394.4 kB / 489.1 MB, free: 86.81 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001909/0.2993, allocations: 47.98 kB / 489.1 MB, free: 86.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007281/0.3, allocations: 113.1 kB / 489.2 MB, free: 86.65 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.758e-05/0.3001, allocations: 151.3 kB / 489.4 MB, free: 86.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.962e-05/0.3002, allocations: 68 kB / 489.4 MB, free: 86.44 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001944/0.3021, allocations: 2.689 MB / 492.1 MB, free: 83.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3021, allocations: 0 / 492.1 MB, free: 83.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002621/0.3047, allocations: 0.9786 MB / 493.1 MB, free: 82.8 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.002278/0.307, allocations: 3.893 MB / 497 MB, free: 78.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003397/0.3104, allocations: 3.535 MB / 0.4888 GB, free: 75.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/0.3104, allocations: 4 kB / 0.4888 GB, free: 75.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004999/0.3109, allocations: 0.6909 MB / 0.4895 GB, free: 74.47 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001749/0.3127, allocations: 447.3 kB / 0.4899 GB, free: 74.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02893/0.3416, allocations: 41.14 MB / 0.5301 GB, free: 26.65 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001668/0.3433, allocations: 2.555 MB / 0.5326 GB, free: 24.07 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002134/0.3454, allocations: 1.78 MB / 0.5343 GB, free: 22.28 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001069/0.3465, allocations: 1.801 MB / 0.5361 GB, free: 20.48 MB / 410.7 MB Notification: Performance of SimCode: time 1.463e-06/0.3465, allocations: 0 / 0.5361 GB, free: 20.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06511/0.4116, allocations: 57.83 MB / 0.5926 GB, free: 11.42 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.887/10.3, allocations: 8.047 kB / 0.5926 GB, free: 11.41 MB / 458.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.396600876934826]