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.00184/0.00184, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002326/0.002326, allocations: 215.5 kB / 23.73 MB, free: 4.406 MB / 14.72 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 1.444/1.444, allocations: 230.5 MB / 257.4 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002141/0.002141, allocations: 71.88 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2842, allocations: 53.41 MB / 431.2 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01222/0.2964, allocations: 9.339 MB / 440.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008768/0.3052, allocations: 3.71 MB / 444.2 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001848/0.307, allocations: 75.62 kB / 444.3 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004732/0.3117, allocations: 2.176 MB / 446.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004969/0.3167, allocations: 1.86 MB / 448.3 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001627/0.3183, allocations: 0.7097 MB / 449 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005994/0.3243, allocations: 4.316 MB / 453.3 MB, free: 184 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003409/0.3277, allocations: 2.435 MB / 455.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002702/0.3304, allocations: 1.487 MB / 457.3 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003608/0.334, allocations: 2.137 MB / 459.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000999/0.335, allocations: 292 kB / 459.7 MB, free: 9.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002097/0.3371, allocations: 0.827 MB / 460.5 MB, free: 8.941 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002168/0.3393, allocations: 1.85 MB / 462.4 MB, free: 7.086 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002537/0.3418, allocations: 1.553 MB / 463.9 MB, free: 5.523 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009305/0.3511, allocations: 6.423 MB / 470.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.3512, allocations: 0 / 470.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.3512, allocations: 0 / 470.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002486/0.3514, allocations: 3.938 kB / 470.3 MB, free: 15.07 MB / 382.1 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.0106/0.362, allocations: 4.629 MB / 475 MB, free: 10.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.3621, allocations: 15.98 kB / 475 MB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001475/0.3635, allocations: 0.6951 MB / 475.7 MB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00765/0.3712, allocations: 1.964 MB / 477.6 MB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006257/0.3774, allocations: 2.643 MB / 480.3 MB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002384/0.3777, allocations: 225.6 kB / 480.5 MB, free: 4.766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001008/0.3787, allocations: 291.8 kB / 480.8 MB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01868/0.3974, allocations: 9.688 MB / 490.5 MB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001264/0.3975, allocations: 39.64 kB / 490.5 MB, free: 9.984 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004392/0.3979, allocations: 155.8 kB / 490.7 MB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002997/0.4009, allocations: 1.919 MB / 492.6 MB, free: 7.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01591/0.4168, allocations: 7.629 MB / 0.4885 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04679/0.4636, allocations: 36.25 MB / 0.5239 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006703/0.4703, allocations: 2.329 MB / 0.5262 GB, free: 8.473 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/0.4716, allocations: 0.7949 MB / 0.5269 GB, free: 7.668 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005876/0.4775, allocations: 2.887 MB / 0.5298 GB, free: 4.754 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.201e-05/0.4776, allocations: 51.16 kB / 0.5298 GB, free: 4.695 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 4.438e-06/0.4776, allocations: 0 / 0.5298 GB, free: 4.695 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2234/0.701, allocations: 9.135 MB / 0.5387 GB, free: 99.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.276e-05/0.701, allocations: 144.2 kB / 0.5389 GB, free: 99.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004968/0.706, allocations: 4.161 MB / 0.5429 GB, free: 98.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001174/0.7061, allocations: 47.45 kB / 0.543 GB, free: 98.15 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001297/0.7074, allocations: 3.208 MB / 0.5461 GB, free: 95.89 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003834/0.7078, allocations: 0.6342 MB / 0.5467 GB, free: 95.44 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000959/0.7087, allocations: 1.169 MB / 0.5479 GB, free: 94.85 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.015e-05/0.7088, allocations: 303.7 kB / 0.5482 GB, free: 94.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001854/0.7106, allocations: 1.57 MB / 0.5497 GB, free: 94.09 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002865/0.7135, allocations: 5.335 MB / 0.5549 GB, free: 88.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005336/0.7188, allocations: 7.531 MB / 0.5623 GB, free: 80.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.503e-05/0.7189, allocations: 43.81 kB / 0.5623 GB, free: 80.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.008488/0.7274, allocations: 6.643 MB / 0.5688 GB, free: 74.79 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.221e-05/0.7275, allocations: 60 kB / 0.5688 GB, free: 74.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.455e-05/0.7276, allocations: 139.6 kB / 0.569 GB, free: 74.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001135/0.7277, allocations: 176 kB / 0.5691 GB, free: 74.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003311/0.731, allocations: 1.373 MB / 0.5705 GB, free: 73.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001257/0.7311, allocations: 262.7 kB / 0.5707 GB, free: 72.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003415/0.7345, allocations: 293.2 kB / 0.571 GB, free: 72.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003473/0.7349, allocations: 366 kB / 0.5714 GB, free: 72.36 MB / 446.1 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.002058/0.7369, allocations: 1.97 MB / 0.5733 GB, free: 70.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004927/0.7374, allocations: 365 kB / 0.5736 GB, free: 70.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005361/0.738, allocations: 401.6 kB / 0.574 GB, free: 69.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-05/0.738, allocations: 16 kB / 0.574 GB, free: 69.69 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-05/0.738, allocations: 0 / 0.574 GB, free: 69.69 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.738, allocations: 11.97 kB / 0.574 GB, free: 69.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007387/0.7454, allocations: 5.43 MB / 0.5793 GB, free: 63.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-05/0.7454, allocations: 17.08 kB / 0.5794 GB, free: 63.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008594/0.7463, allocations: 275.5 kB / 0.5796 GB, free: 63.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.076e-05/0.7463, allocations: 28 kB / 0.5797 GB, free: 63.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-05/0.7464, allocations: 52.61 kB / 0.5797 GB, free: 63.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-05/0.7464, allocations: 43.86 kB / 0.5797 GB, free: 63.58 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.321e-05/0.7464, allocations: 31.81 kB / 0.5798 GB, free: 63.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003059/0.7495, allocations: 3.249 MB / 0.583 GB, free: 60.04 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008185/0.7503, allocations: 349.5 kB / 0.5833 GB, free: 59.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003321/0.7506, allocations: 55.34 kB / 0.5833 GB, free: 59.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/0.7517, allocations: 63.95 kB / 0.5834 GB, free: 59.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.7518, allocations: 151.3 kB / 0.5835 GB, free: 59.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-05/0.7518, allocations: 68 kB / 0.5836 GB, free: 59.37 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002739/0.7546, allocations: 2.438 MB / 0.586 GB, free: 56.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.7546, allocations: 0 / 0.586 GB, free: 56.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004071/0.7587, allocations: 0.8398 MB / 0.5868 GB, free: 56.11 MB / 446.1 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.003086/0.7617, allocations: 3.915 MB / 0.5906 GB, free: 51.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004478/0.7662, allocations: 3.535 MB / 0.5941 GB, free: 48.44 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.652e-05/0.7662, allocations: 4 kB / 0.5941 GB, free: 48.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007526/0.767, allocations: 0.6954 MB / 0.5948 GB, free: 47.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002628/0.7696, allocations: 451.4 kB / 0.5952 GB, free: 47.31 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04382/0.8134, allocations: 40.38 MB / 0.6346 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003169/0.8166, allocations: 2.553 MB / 0.6371 GB, free: 14.04 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003947/0.8206, allocations: 1.762 MB / 0.6388 GB, free: 12.27 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002406/0.823, allocations: 1.792 MB / 0.6406 GB, free: 10.48 MB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/0.823, allocations: 0 / 0.6406 GB, free: 10.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1172/0.9401, allocations: 55.87 MB / 0.6952 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.51/16.45, allocations: 15.27 kB / 0.6952 GB, free: 3.293 MB / 0.4981 GB " [Timeout remaining time 643] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/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: 19.1198191922158]