Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002823/0.002823, allocations: 100.3 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00248/0.00248, allocations: 192.1 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.529/2.529, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 51.92 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.162, allocations: 46.64 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.02249/0.1845, allocations: 12.04 MB / 339.4 MB, free: 8.277 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01433/0.1989, allocations: 4.201 MB / 343.6 MB, free: 4.062 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003706/0.2027, allocations: 67.81 kB / 343.7 MB, free: 3.996 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009348/0.2121, allocations: 2.745 MB / 346.4 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008765/0.221, allocations: 1.976 MB / 348.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003299/0.2243, allocations: 0.815 MB / 349.2 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01057/0.2349, allocations: 4.624 MB / 353.8 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00868/0.2436, allocations: 3.556 MB / 357.4 MB, free: 6.203 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004715/0.2484, allocations: 1.698 MB / 359.1 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005756/0.2542, allocations: 2.336 MB / 361.4 MB, free: 2.156 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001884/0.2561, allocations: 355.9 kB / 361.8 MB, free: 1.809 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004768/0.2609, allocations: 1.276 MB / 363.1 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004286/0.2652, allocations: 2.108 MB / 365.2 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007673/0.273, allocations: 2.447 MB / 367.6 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01774/0.2908, allocations: 7.289 MB / 374.9 MB, free: 4.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.076e-05/0.2908, allocations: 4 kB / 374.9 MB, free: 4.641 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.2909, allocations: 0 / 374.9 MB, free: 4.641 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003488/0.2912, allocations: 0 / 374.9 MB, free: 4.641 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.267/0.5582, allocations: 5.32 MB / 380.2 MB, free: 49.44 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.171e-05/0.5583, allocations: 9.625 kB / 380.2 MB, free: 49.44 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003501/0.5618, allocations: 0.8014 MB / 381 MB, free: 49.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01628/0.5781, allocations: 2.137 MB / 383.2 MB, free: 48.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01272/0.5909, allocations: 3.386 MB / 386.6 MB, free: 47.31 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007663/0.5918, allocations: 277.3 kB / 386.8 MB, free: 47.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003194/0.595, allocations: 440.9 kB / 387.3 MB, free: 47.12 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04865/0.6437, allocations: 12.21 MB / 399.5 MB, free: 39.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003356/0.6441, allocations: 51.53 kB / 399.5 MB, free: 39.92 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002467/0.6466, allocations: 170 kB / 399.7 MB, free: 39.78 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005457/0.6521, allocations: 2.166 MB / 401.9 MB, free: 37.61 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0306/0.6827, allocations: 10.2 MB / 412.1 MB, free: 27.38 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09791/0.7807, allocations: 44.31 MB / 456.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02468/0.8055, allocations: 4.608 MB / 461 MB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005528/0.8111, allocations: 1.724 MB / 462.7 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02625/0.8374, allocations: 8.206 MB / 470.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.643e-05/0.8376, allocations: 59.75 kB / 471 MB, free: 14.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=183): time 8.275e-06/0.8376, allocations: 1.781 kB / 471 MB, free: 14.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=205): time 0.08956/0.9272, allocations: 16.02 MB / 487 MB, free: 14.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002266/0.9295, allocations: 1.692 MB / 488.7 MB, free: 12.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01333/0.9429, allocations: 4.244 MB / 492.9 MB, free: 8.359 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005588/0.9435, allocations: 57.78 kB / 493 MB, free: 8.297 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004453/0.948, allocations: 3.404 MB / 496.4 MB, free: 4.844 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001782/0.9498, allocations: 0.8023 MB / 497.2 MB, free: 4.031 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004661/0.9545, allocations: 1.353 MB / 498.5 MB, free: 2.668 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0005073/0.9551, allocations: 305.1 kB / 498.8 MB, free: 2.367 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005258/0.9603, allocations: 2.235 MB / 0.4893 GB, free: 132 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0129/0.9733, allocations: 6.351 MB / 0.4955 GB, free: 7.727 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02031/0.9937, allocations: 9.248 MB / 0.5046 GB, free: 12.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002574/0.994, allocations: 40 kB / 0.5046 GB, free: 12.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.03909/1.033, allocations: 9.098 MB / 0.5135 GB, free: 3.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003547/1.034, allocations: 68 kB / 0.5136 GB, free: 3.203 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01249/1.046, allocations: 2.842 MB / 0.5163 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006935/1.053, allocations: 1.076 MB / 0.5174 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01004/1.063, allocations: 1.567 MB / 0.5189 GB, free: 13.69 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009727/1.073, allocations: 4.686 MB / 0.5235 GB, free: 8.723 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00992/1.083, allocations: 419.4 kB / 0.5239 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001882/1.085, allocations: 416 kB / 0.5243 GB, free: 7.906 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],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],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 (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006666/1.092, allocations: 2.208 MB / 0.5264 GB, free: 5.688 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001313/1.093, allocations: 379.2 kB / 0.5268 GB, free: 5.312 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007888/1.101, allocations: 3.295 MB / 0.53 GB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2247/1.326, allocations: 2.746 MB / 0.5327 GB, free: 141.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.428e-05/1.326, allocations: 3.062 kB / 0.5327 GB, free: 141.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.451e-05/1.326, allocations: 8.891 kB / 0.5327 GB, free: 141.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02849/1.354, allocations: 10.33 MB / 0.5428 GB, free: 138.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.003e-05/1.354, allocations: 13.75 kB / 0.5428 GB, free: 138.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001783/1.356, allocations: 365.1 kB / 0.5432 GB, free: 138.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004877/1.361, allocations: 1.001 MB / 0.5441 GB, free: 138.4 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005551/1.362, allocations: 64.95 kB / 0.5442 GB, free: 138.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007882/1.37, allocations: 4.902 MB / 0.549 GB, free: 135.1 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00135/1.371, allocations: 1.558 MB / 0.5505 GB, free: 133.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01643/1.387, allocations: 5.901 MB / 0.5563 GB, free: 131.1 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00304/1.391, allocations: 0.6647 MB / 0.5569 GB, free: 130.9 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001438/1.392, allocations: 57.58 kB / 0.557 GB, free: 130.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004245/1.396, allocations: 148.4 kB / 0.5571 GB, free: 130.9 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006798/1.397, allocations: 173.2 kB / 0.5573 GB, free: 130.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000342/1.397, allocations: 81.77 kB / 0.5574 GB, free: 130.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.007753/1.405, allocations: 2.616 MB / 0.5599 GB, free: 129.9 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.62e-07/1.405, allocations: 0 / 0.5599 GB, free: 129.9 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01082/1.416, allocations: 1.136 MB / 0.561 GB, free: 129.8 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01736/1.433, allocations: 6.611 MB / 0.5675 GB, free: 126.1 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.02064/1.454, allocations: 6.569 MB / 0.5739 GB, free: 120 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.884e-05/1.454, allocations: 0 / 0.5739 GB, free: 120 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006462/1.461, allocations: 2.197 MB / 0.5761 GB, free: 117.7 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007067/1.468, allocations: 0.4964 MB / 0.5765 GB, free: 117.2 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1287/1.597, allocations: 57.44 MB / 0.6326 GB, free: 50.88 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008699/1.605, allocations: 3.463 MB / 0.636 GB, free: 47.39 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.01008/1.616, allocations: 2.022 MB / 0.638 GB, free: 45.36 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005664/1.621, allocations: 2.1 MB / 0.64 GB, free: 43.26 MB / 430.1 MB Notification: Performance of SimCode: time 1.623e-06/1.621, allocations: 7.938 kB / 0.64 GB, free: 43.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4505/2.072, allocations: 77.57 MB / 0.7158 GB, free: 141.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.77/24.84, allocations: 17.36 kB / 0.7158 GB, free: 141.8 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches