Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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 4.0.0+maint.om/package.mo", uses=false) 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.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",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.00133/0.00133, allocations: 112.7 kB / 17.06 MB, free: 5.969 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.001238/0.001238, allocations: 200 kB / 18.01 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 43.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.288, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01267/0.3008, allocations: 10.29 MB / 410.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008339/0.3091, allocations: 3.874 MB / 414.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001927/0.3111, allocations: 55.81 kB / 414.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004179/0.3154, allocations: 2.067 MB / 416.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00466/0.32, allocations: 1.649 MB / 418.2 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001764/0.3218, allocations: 0.6901 MB / 418.9 MB, free: 6.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005066/0.3269, allocations: 3.35 MB / 422.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003489/0.3304, allocations: 2.68 MB / 424.9 MB, free: 24 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002229/0.3327, allocations: 1.269 MB / 426.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002712/0.3354, allocations: 1.756 MB / 427.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006069/0.336, allocations: 264 kB / 428.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002183/0.3382, allocations: 1.123 MB / 429.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001568/0.3398, allocations: 1.57 MB / 430.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002062/0.3419, allocations: 1.872 MB / 432.7 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007635/0.3495, allocations: 5.964 MB / 438.7 MB, free: 2.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.025e-05/0.3496, allocations: 4 kB / 438.7 MB, free: 2.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3496, allocations: 0 / 438.7 MB, free: 2.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001522/0.3497, allocations: 0 / 438.7 MB, free: 2.156 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.008821/0.3586, allocations: 4.247 MB / 443 MB, free: 13.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/0.3586, allocations: 12.03 kB / 443 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009115/0.3596, allocations: 0.6413 MB / 443.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006884/0.3664, allocations: 1.886 MB / 445.5 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004677/0.3712, allocations: 2.218 MB / 447.7 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002156/0.3714, allocations: 209.2 kB / 447.9 MB, free: 8.805 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008764/0.3723, allocations: 267.8 kB / 448.2 MB, free: 8.543 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01996/0.3923, allocations: 9.989 MB / 458.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001089/0.3924, allocations: 39.64 kB / 458.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003997/0.3928, allocations: 131.9 kB / 458.3 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003216/0.396, allocations: 1.856 MB / 460.2 MB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0185/0.4146, allocations: 8.536 MB / 468.7 MB, free: 3.305 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04777/0.4624, allocations: 36.77 MB / 0.4937 GB, free: 13.5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009959/0.4724, allocations: 3.871 MB / 0.4974 GB, free: 9.43 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002752/0.4752, allocations: 1.825 MB / 0.4992 GB, free: 7.594 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01145/0.4866, allocations: 7.529 MB / 0.5066 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.582e-05/0.4867, allocations: 47.5 kB / 0.5066 GB, free: 15.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 3.838e-06/0.4867, allocations: 8 kB / 0.5066 GB, free: 15.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.05287/0.5396, allocations: 17.62 MB / 0.5238 GB, free: 14 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.5397, allocations: 149.5 kB / 0.524 GB, free: 13.82 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005774/0.5455, allocations: 3.49 MB / 0.5274 GB, free: 10.33 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003432/0.5459, allocations: 45.7 kB / 0.5274 GB, free: 10.28 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002568/0.5485, allocations: 2.854 MB / 0.5302 GB, free: 7.402 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001006/0.5495, allocations: 0.6745 MB / 0.5309 GB, free: 6.723 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001621/0.5511, allocations: 1.116 MB / 0.532 GB, free: 5.598 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.5513, allocations: 305.1 kB / 0.5322 GB, free: 5.297 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003162/0.5545, allocations: 1.943 MB / 0.5341 GB, free: 3.348 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2227/0.7772, allocations: 5.368 MB / 0.5394 GB, free: 126.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008021/0.7853, allocations: 7.921 MB / 0.5471 GB, free: 120.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001789/0.7855, allocations: 35.03 kB / 0.5472 GB, free: 120.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01419/0.7997, allocations: 8.168 MB / 0.5551 GB, free: 117.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.507e-05/0.7998, allocations: 58.62 kB / 0.5552 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000114/0.7999, allocations: 120.2 kB / 0.5553 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003513/0.8034, allocations: 1.296 MB / 0.5566 GB, free: 117.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00346/0.8069, allocations: 1.255 MB / 0.5578 GB, free: 117.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007082/0.814, allocations: 6.547 MB / 0.5642 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004221/0.8183, allocations: 295.3 kB / 0.5645 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000744/0.819, allocations: 342.4 kB / 0.5648 GB, free: 111.5 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],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],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 (681): * Single equations (assignments): 677 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002477/0.8215, allocations: 1.807 MB / 0.5666 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005037/0.822, allocations: 329.9 kB / 0.5669 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005882/0.8279, allocations: 3.358 MB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.289e-05/0.828, allocations: 20 kB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.828, allocations: 4 kB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.193e-05/0.828, allocations: 10.09 kB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01154/0.8396, allocations: 7.585 MB / 0.5776 GB, free: 98.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.8396, allocations: 4 kB / 0.5776 GB, free: 98.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/0.8407, allocations: 239.7 kB / 0.5778 GB, free: 98.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003233/0.8439, allocations: 1.116 MB / 0.5789 GB, free: 97.26 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001555/0.8441, allocations: 35.98 kB / 0.579 GB, free: 97.22 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00654/0.8506, allocations: 6.165 MB / 0.585 GB, free: 90.97 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.8507, allocations: 0 / 0.585 GB, free: 90.97 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007738/0.8584, allocations: 5.729 MB / 0.5906 GB, free: 85.31 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007095/0.8591, allocations: 371.6 kB / 0.5909 GB, free: 84.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003634/0.8595, allocations: 29.06 kB / 0.5909 GB, free: 84.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/0.8607, allocations: 91.16 kB / 0.591 GB, free: 84.82 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002478/0.861, allocations: 88.81 kB / 0.5911 GB, free: 84.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/0.8611, allocations: 44 kB / 0.5912 GB, free: 84.69 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002621/0.8637, allocations: 2.154 MB / 0.5933 GB, free: 82.55 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8637, allocations: 0 / 0.5933 GB, free: 82.55 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003999/0.8677, allocations: 0.9128 MB / 0.5942 GB, free: 81.64 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.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 (129): * Single equations (assignments): 125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007887/0.8756, allocations: 6.371 MB / 0.6004 GB, free: 75.25 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00649/0.8821, allocations: 4.781 MB / 0.605 GB, free: 70.49 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.8822, allocations: 0 / 0.605 GB, free: 70.49 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002413/0.8846, allocations: 1.538 MB / 0.6065 GB, free: 68.95 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001832/0.8864, allocations: 366.9 kB / 0.6069 GB, free: 68.59 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0463/0.9328, allocations: 41.24 MB / 0.6472 GB, free: 22.09 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00231/0.9351, allocations: 2.851 MB / 0.65 GB, free: 19.21 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003081/0.9382, allocations: 1.699 MB / 0.6516 GB, free: 17.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001564/0.9398, allocations: 1.585 MB / 0.6532 GB, free: 15.92 MB / 462.1 MB Notification: Performance of SimCode: time 2.134e-06/0.9398, allocations: 4 kB / 0.6532 GB, free: 15.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1129/1.053, allocations: 60.23 MB / 0.712 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.14/20.19, allocations: 15.73 kB / 0.712 GB, free: 4.121 MB / 0.4981 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches