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.001292/0.001298, allocations: 114.5 kB / 17.73 MB, free: 5.301 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.001397/0.001397, allocations: 187 kB / 18.66 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.437/1.437, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001427/0.001427, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08622/0.08765, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.1945/0.2822, allocations: 12.04 MB / 386.7 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009166/0.2914, allocations: 4.197 MB / 390.9 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002916/0.2945, allocations: 68.22 kB / 391 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006341/0.3008, allocations: 2.757 MB / 393.7 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00725/0.3081, allocations: 2.021 MB / 395.7 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002626/0.3108, allocations: 0.8145 MB / 396.5 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009047/0.3198, allocations: 4.618 MB / 401.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006679/0.3266, allocations: 3.563 MB / 404.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004291/0.3309, allocations: 1.693 MB / 406.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004708/0.3356, allocations: 2.36 MB / 408.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001777/0.3375, allocations: 352.6 kB / 409.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00379/0.3413, allocations: 1.265 MB / 410.4 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003283/0.3446, allocations: 2.128 MB / 412.5 MB, free: 9.641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005208/0.3498, allocations: 2.448 MB / 415 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01173/0.3616, allocations: 7.582 MB / 422.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.3616, allocations: 3.938 kB / 422.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3616, allocations: 8 kB / 422.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002452/0.3619, allocations: 0 / 422.6 MB, free: 15.8 MB / 350.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.01351/0.3754, allocations: 5.46 MB / 428 MB, free: 10.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.3755, allocations: 8.031 kB / 428 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002107/0.3776, allocations: 0.8021 MB / 428.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009249/0.3869, allocations: 2.162 MB / 431 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007995/0.3949, allocations: 3.447 MB / 434.4 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003889/0.3953, allocations: 274.8 kB / 434.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002215/0.3976, allocations: 435.6 kB / 435.1 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02787/0.4254, allocations: 12.22 MB / 447.4 MB, free: 6.043 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002606/0.4258, allocations: 47.58 kB / 447.4 MB, free: 5.996 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001314/0.4271, allocations: 175.8 kB / 447.6 MB, free: 5.824 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003757/0.4309, allocations: 2.162 MB / 449.7 MB, free: 3.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02334/0.4542, allocations: 10.2 MB / 459.9 MB, free: 9.438 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05975/0.514, allocations: 44.2 MB / 0.4923 GB, free: 12 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01236/0.5264, allocations: 4.61 MB / 0.4968 GB, free: 7.188 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002877/0.5294, allocations: 1.721 MB / 0.4985 GB, free: 5.457 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01549/0.5449, allocations: 8.21 MB / 0.5065 GB, free: 12.86 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.346e-05/0.545, allocations: 55.88 kB / 0.5066 GB, free: 12.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 7.304e-06/0.545, allocations: 0 / 0.5066 GB, free: 12.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.04798/0.593, allocations: 16.3 MB / 0.5225 GB, free: 12.35 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001489/0.5945, allocations: 1.703 MB / 0.5242 GB, free: 10.46 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008181/0.6027, allocations: 4.241 MB / 0.5283 GB, free: 6.195 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004504/0.6032, allocations: 61.64 kB / 0.5284 GB, free: 6.129 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003399/0.6066, allocations: 3.556 MB / 0.5318 GB, free: 2.539 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001316/0.608, allocations: 0.8373 MB / 0.5326 GB, free: 1.695 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003496/0.6115, allocations: 1.354 MB / 0.534 GB, free: 340 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.6117, allocations: 305.1 kB / 0.5343 GB, free: 32 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004426/0.6161, allocations: 2.231 MB / 0.5364 GB, free: 13.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008421/0.6246, allocations: 6.351 MB / 0.5426 GB, free: 5.398 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2264/0.851, allocations: 9.247 MB / 0.5517 GB, free: 139.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000121/0.8511, allocations: 41.94 kB / 0.5517 GB, free: 139.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01925/0.8704, allocations: 9.105 MB / 0.5606 GB, free: 136.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001277/0.8706, allocations: 68.06 kB / 0.5607 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006321/0.8769, allocations: 2.836 MB / 0.5634 GB, free: 135.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003941/0.8809, allocations: 1.074 MB / 0.5645 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006082/0.887, allocations: 1.569 MB / 0.566 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005438/0.8925, allocations: 4.683 MB / 0.5706 GB, free: 132.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006041/0.8985, allocations: 416.8 kB / 0.571 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001365/0.8999, allocations: 419.2 kB / 0.5714 GB, free: 132.1 MB / 478.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.004998/0.9049, allocations: 2.211 MB / 0.5735 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009493/0.9059, allocations: 398.3 kB / 0.5739 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006643/0.9125, allocations: 3.289 MB / 0.5771 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004933/0.9175, allocations: 2.744 MB / 0.5798 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.947e-05/0.9176, allocations: 7.672 kB / 0.5798 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.227e-05/0.9176, allocations: 10.52 kB / 0.5798 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02133/0.9389, allocations: 10.35 MB / 0.5899 GB, free: 124.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.325e-05/0.9391, allocations: 13.91 kB / 0.59 GB, free: 124.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001603/0.9407, allocations: 375.6 kB / 0.5903 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00274/0.9434, allocations: 0.9839 MB / 0.5913 GB, free: 123.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003017/0.9438, allocations: 63.97 kB / 0.5913 GB, free: 123.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004224/0.948, allocations: 4.894 MB / 0.5961 GB, free: 118.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008173/0.9488, allocations: 1.567 MB / 0.5976 GB, free: 116.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009092/0.958, allocations: 5.935 MB / 0.6034 GB, free: 110.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001945/0.9599, allocations: 0.6815 MB / 0.6041 GB, free: 110.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009219/0.9609, allocations: 55.98 kB / 0.6042 GB, free: 110.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002161/0.9631, allocations: 147.8 kB / 0.6043 GB, free: 109.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003281/0.9634, allocations: 168.4 kB / 0.6045 GB, free: 109.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001633/0.9636, allocations: 79.98 kB / 0.6045 GB, free: 109.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004455/0.968, allocations: 2.618 MB / 0.6071 GB, free: 107 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.92e-07/0.9681, allocations: 0 / 0.6071 GB, free: 107 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006297/0.9744, allocations: 1.143 MB / 0.6082 GB, free: 105.9 MB / 478.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.008645/0.983, allocations: 6.633 MB / 0.6147 GB, free: 99.09 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00937/0.9924, allocations: 5.921 MB / 0.6205 GB, free: 93.13 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.861e-05/0.9925, allocations: 5.094 kB / 0.6205 GB, free: 93.12 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003659/0.9962, allocations: 2.208 MB / 0.6226 GB, free: 90.85 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00433/1.001, allocations: 0.4978 MB / 0.6231 GB, free: 90.37 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08209/1.083, allocations: 50.81 MB / 0.6727 GB, free: 32.74 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005044/1.088, allocations: 3.459 MB / 0.6761 GB, free: 29.25 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004969/1.093, allocations: 2.022 MB / 0.6781 GB, free: 27.22 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003378/1.096, allocations: 2.104 MB / 0.6801 GB, free: 25.11 MB / 478.1 MB Notification: Performance of SimCode: time 1.322e-06/1.096, allocations: 0 / 0.6801 GB, free: 25.11 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3459/1.442, allocations: 73.38 MB / 0.7518 GB, free: 161.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 53.97/55.41, allocations: 6.953 kB / 0.7518 GB, free: 161.1 MB / 0.4981 GB (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