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.001139/0.001139, allocations: 91.59 kB / 16.65 MB, free: 6.535 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.00139/0.001391, allocations: 173.2 kB / 17.56 MB, free: 6.184 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.337/1.337, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002455/0.0002455, allocations: 8 kB / 301.5 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09683/0.09709, allocations: 50.41 MB / 351.9 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2216/0.3187, allocations: 33.74 MB / 385.7 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01777/0.3365, allocations: 7.846 MB / 393.5 MB, free: 3.945 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007216/0.3438, allocations: 144.5 kB / 393.7 MB, free: 3.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001467/0.3453, allocations: 384.2 kB / 394 MB, free: 3.773 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005401/0.3507, allocations: 1.547 MB / 395.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00193/0.3527, allocations: 0.6315 MB / 396.2 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006857/0.3595, allocations: 4.756 MB / 401 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007025/0.3666, allocations: 3.735 MB / 404.7 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002646/0.3693, allocations: 0.9604 MB / 405.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003533/0.3728, allocations: 1.67 MB / 407.3 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009779/0.3738, allocations: 124 kB / 407.5 MB, free: 12.74 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002903/0.3767, allocations: 1.053 MB / 408.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002211/0.379, allocations: 1.441 MB / 410 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002849/0.3818, allocations: 1.713 MB / 411.7 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005751/0.3876, allocations: 5.537 MB / 417.2 MB, free: 2.953 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.3876, allocations: 0 / 417.2 MB, free: 2.953 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3876, allocations: 4 kB / 417.2 MB, free: 2.949 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001158/0.3878, allocations: 4 kB / 417.2 MB, free: 2.945 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.00631/0.3941, allocations: 3.387 MB / 420.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.3941, allocations: 8.031 kB / 420.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008745/0.395, allocations: 0.6335 MB / 421.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006572/0.4016, allocations: 1.918 MB / 423.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004011/0.4056, allocations: 2.183 MB / 425.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001569/0.4058, allocations: 201.2 kB / 425.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004941/0.4063, allocations: 275.8 kB / 425.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01921/0.4256, allocations: 9.993 MB / 435.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001743/0.4258, allocations: 39.59 kB / 435.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009012/0.4267, allocations: 139.8 kB / 436 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003352/0.4301, allocations: 1.848 MB / 437.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01888/0.449, allocations: 8.556 MB / 446.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04681/0.4958, allocations: 36.85 MB / 483.2 MB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009788/0.5057, allocations: 3.889 MB / 487.1 MB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002579/0.5083, allocations: 1.814 MB / 488.9 MB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01124/0.5195, allocations: 7.519 MB / 496.5 MB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.92e-05/0.5196, allocations: 55.5 kB / 496.5 MB, free: 1.289 MB / 398.1 MB Notification: Performance of pre-optimization done (n=150): time 5.18e-06/0.5196, allocations: 0 / 496.5 MB, free: 1.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=166): time 0.05363/0.5733, allocations: 17.39 MB / 0.5018 GB, free: 15.78 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.236e-05/0.5734, allocations: 141.5 kB / 0.502 GB, free: 15.61 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006871/0.5803, allocations: 3.481 MB / 0.5054 GB, free: 12.12 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004538/0.5808, allocations: 49.64 kB / 0.5054 GB, free: 12.07 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002246/0.5831, allocations: 2.736 MB / 0.5081 GB, free: 9.297 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000962/0.584, allocations: 0.6402 MB / 0.5087 GB, free: 8.648 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001052/0.5851, allocations: 486.2 kB / 0.5092 GB, free: 8.168 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.885e-05/0.5852, allocations: 305.1 kB / 0.5095 GB, free: 7.867 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003469/0.5887, allocations: 1.94 MB / 0.5114 GB, free: 5.922 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005591/0.5943, allocations: 5.362 MB / 0.5166 GB, free: 14.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009322/0.6037, allocations: 7.917 MB / 0.5243 GB, free: 5.227 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001066/0.6038, allocations: 39.94 kB / 0.5244 GB, free: 5.188 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.2225/0.8263, allocations: 8.144 MB / 0.5323 GB, free: 145.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.8265, allocations: 57.02 kB / 0.5324 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001919/0.8267, allocations: 121 kB / 0.5325 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004564/0.8313, allocations: 1.298 MB / 0.5338 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004395/0.8357, allocations: 1.26 MB / 0.535 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009298/0.845, allocations: 6.098 MB / 0.541 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004452/0.8495, allocations: 292.7 kB / 0.5412 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001158/0.8507, allocations: 341.2 kB / 0.5416 GB, free: 143.7 MB / 446.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.003943/0.8546, allocations: 1.818 MB / 0.5433 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007446/0.8554, allocations: 303.4 kB / 0.5436 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007442/0.8628, allocations: 3.367 MB / 0.5469 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-05/0.8629, allocations: 22.75 kB / 0.5469 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.756e-05/0.8629, allocations: 3.906 kB / 0.5469 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.998e-05/0.8629, allocations: 15.05 kB / 0.547 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01397/0.8769, allocations: 7.603 MB / 0.5544 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.071e-05/0.877, allocations: 7.875 kB / 0.5544 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001111/0.8781, allocations: 235.8 kB / 0.5546 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003541/0.8817, allocations: 1.122 MB / 0.5557 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000187/0.8819, allocations: 27.88 kB / 0.5557 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007181/0.8891, allocations: 5.721 MB / 0.5613 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.8891, allocations: 3.938 kB / 0.5613 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008711/0.8978, allocations: 5.703 MB / 0.5669 GB, free: 130.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008137/0.8987, allocations: 354.3 kB / 0.5672 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006132/0.8993, allocations: 25.64 kB / 0.5673 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001538/0.9008, allocations: 95.81 kB / 0.5673 GB, free: 129.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002569/0.9011, allocations: 88.81 kB / 0.5674 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/0.9012, allocations: 50.23 kB / 0.5675 GB, free: 129.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003355/0.9046, allocations: 2.154 MB / 0.5696 GB, free: 127.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9046, allocations: 0 / 0.5696 GB, free: 127.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004461/0.9091, allocations: 0.9121 MB / 0.5705 GB, free: 126.6 MB / 446.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.00854/0.9176, allocations: 6.352 MB / 0.5767 GB, free: 120.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00679/0.9244, allocations: 4.768 MB / 0.5813 GB, free: 115.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.9245, allocations: 8.188 kB / 0.5813 GB, free: 115.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001914/0.9264, allocations: 1.53 MB / 0.5828 GB, free: 113.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002687/0.9291, allocations: 346.7 kB / 0.5832 GB, free: 113.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06946/0.9986, allocations: 47.05 MB / 0.6291 GB, free: 59.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004152/1.003, allocations: 2.843 MB / 0.6319 GB, free: 56.92 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004584/1.007, allocations: 1.723 MB / 0.6336 GB, free: 55.19 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002441/1.01, allocations: 1.585 MB / 0.6351 GB, free: 53.61 MB / 446.1 MB Notification: Performance of SimCode: time 1.172e-06/1.01, allocations: 0 / 0.6351 GB, free: 53.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09645/1.106, allocations: 61.48 MB / 0.6952 GB, free: 8.543 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002518/1.107, allocations: 246 kB / 0.6954 GB, free: 8.293 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.876/4.982, allocations: 0 / 0.6954 GB, free: 8.293 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.mat","/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