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.001296/0.001296, allocations: 109.1 kB / 17.06 MB, free: 5.996 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.001438/0.001438, allocations: 200 kB / 18.01 MB, free: 5.066 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.315/1.315, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001078/0.001078, allocations: 43.92 kB / 350.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2892, 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.01058/0.2998, allocations: 10.28 MB / 410.5 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007684/0.3076, allocations: 3.874 MB / 414.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001697/0.3093, allocations: 55.81 kB / 414.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003946/0.3133, allocations: 2.075 MB / 416.5 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004419/0.3178, allocations: 1.681 MB / 418.2 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001592/0.3194, allocations: 0.694 MB / 418.9 MB, free: 6.066 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004547/0.3239, allocations: 3.354 MB / 422.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003499/0.3274, allocations: 2.688 MB / 424.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00221/0.3297, allocations: 1.261 MB / 426.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002724/0.3324, allocations: 1.76 MB / 428 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009623/0.3334, allocations: 264 kB / 428.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002574/0.336, allocations: 1.123 MB / 429.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002018/0.338, allocations: 1.582 MB / 430.9 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003154/0.3412, allocations: 1.864 MB / 432.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007159/0.3484, allocations: 5.972 MB / 438.8 MB, free: 2.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.3484, allocations: 0 / 438.8 MB, free: 2.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3485, allocations: 0 / 438.8 MB, free: 2.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001662/0.3486, allocations: 0 / 438.8 MB, free: 2.094 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.00799/0.3566, allocations: 4.247 MB / 443 MB, free: 13.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.3567, allocations: 16.02 kB / 443 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007964/0.3575, allocations: 0.6296 MB / 443.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006403/0.3639, allocations: 1.894 MB / 445.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004607/0.3685, allocations: 2.214 MB / 447.8 MB, free: 8.953 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001512/0.3687, allocations: 213.2 kB / 448 MB, free: 8.742 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005812/0.3693, allocations: 271.8 kB / 448.2 MB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01676/0.3861, allocations: 9.981 MB / 458.2 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.939e-05/0.3862, allocations: 35.64 kB / 458.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003537/0.3866, allocations: 139.9 kB / 458.4 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002893/0.3895, allocations: 1.852 MB / 460.2 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01653/0.406, allocations: 8.544 MB / 468.8 MB, free: 3.238 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03994/0.446, allocations: 36.77 MB / 0.4937 GB, free: 13.43 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009399/0.4554, allocations: 3.878 MB / 0.4975 GB, free: 9.359 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002311/0.4578, allocations: 1.81 MB / 0.4993 GB, free: 7.539 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01086/0.4687, allocations: 7.537 MB / 0.5066 GB, free: 15.73 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/0.4687, allocations: 55.5 kB / 0.5067 GB, free: 15.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.698e-06/0.4688, allocations: 0 / 0.5067 GB, free: 15.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.0494/0.5182, allocations: 17.62 MB / 0.5239 GB, free: 13.94 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.654e-05/0.5183, allocations: 145.5 kB / 0.524 GB, free: 13.77 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004522/0.5228, allocations: 3.49 MB / 0.5274 GB, free: 10.28 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002557/0.5231, allocations: 49.7 kB / 0.5275 GB, free: 10.22 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001642/0.5247, allocations: 2.85 MB / 0.5303 GB, free: 7.348 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006712/0.5254, allocations: 0.6707 MB / 0.5309 GB, free: 6.672 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001292/0.5267, allocations: 1.12 MB / 0.532 GB, free: 5.543 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.88e-05/0.5268, allocations: 305.1 kB / 0.5323 GB, free: 5.242 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00268/0.5295, allocations: 1.947 MB / 0.5342 GB, free: 3.289 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2241/0.7536, allocations: 5.356 MB / 0.5394 GB, free: 127 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009685/0.7633, allocations: 7.93 MB / 0.5472 GB, free: 120.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002117/0.7636, allocations: 35.5 kB / 0.5472 GB, free: 120.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01461/0.7782, allocations: 8.164 MB / 0.5552 GB, free: 118.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.407e-05/0.7783, allocations: 58.5 kB / 0.5552 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001344/0.7785, allocations: 121.2 kB / 0.5554 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00356/0.782, allocations: 1.292 MB / 0.5566 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003592/0.7857, allocations: 1.258 MB / 0.5578 GB, free: 117.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007402/0.7931, allocations: 6.54 MB / 0.5642 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004078/0.7972, allocations: 300.1 kB / 0.5645 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007484/0.798, allocations: 344 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.002468/0.8004, allocations: 1.81 MB / 0.5666 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005059/0.8009, allocations: 324.9 kB / 0.5669 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005791/0.8067, allocations: 3.368 MB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.217e-05/0.8068, allocations: 20 kB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.8068, allocations: 4 kB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/0.8068, allocations: 14.09 kB / 0.5702 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01172/0.8185, allocations: 7.576 MB / 0.5776 GB, free: 98.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.8186, allocations: 0 / 0.5776 GB, free: 98.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.8196, allocations: 239.7 kB / 0.5779 GB, free: 98.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003245/0.8229, allocations: 1.116 MB / 0.579 GB, free: 97.27 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001601/0.823, allocations: 31.59 kB / 0.579 GB, free: 97.24 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006689/0.8297, allocations: 6.164 MB / 0.585 GB, free: 90.99 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.8298, allocations: 7.641 kB / 0.585 GB, free: 90.99 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008039/0.8378, allocations: 5.735 MB / 0.5906 GB, free: 85.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001238/0.8391, allocations: 368 kB / 0.591 GB, free: 84.95 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003617/0.8395, allocations: 25.06 kB / 0.591 GB, free: 84.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/0.8407, allocations: 87.88 kB / 0.5911 GB, free: 84.84 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002271/0.841, allocations: 88.81 kB / 0.5912 GB, free: 84.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.8411, allocations: 51.34 kB / 0.5912 GB, free: 84.71 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002826/0.8439, allocations: 2.154 MB / 0.5933 GB, free: 82.56 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.8439, allocations: 0 / 0.5933 GB, free: 82.56 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004478/0.8484, allocations: 0.9131 MB / 0.5942 GB, free: 81.66 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.008056/0.8565, allocations: 6.37 MB / 0.6004 GB, free: 75.26 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006426/0.8629, allocations: 4.775 MB / 0.6051 GB, free: 70.51 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.863, allocations: 0 / 0.6051 GB, free: 70.51 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001871/0.8648, allocations: 1.54 MB / 0.6066 GB, free: 68.96 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002066/0.8669, allocations: 363.3 kB / 0.6069 GB, free: 68.61 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05198/0.9189, allocations: 41.24 MB / 0.6472 GB, free: 22.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002333/0.9213, allocations: 2.855 MB / 0.65 GB, free: 19.23 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003143/0.9245, allocations: 1.699 MB / 0.6517 GB, free: 17.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001863/0.9263, allocations: 1.585 MB / 0.6532 GB, free: 15.94 MB / 462.1 MB Notification: Performance of SimCode: time 3.427e-06/0.9264, allocations: 0 / 0.6532 GB, free: 15.94 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09702/1.023, allocations: 60.23 MB / 0.712 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.62/19.64, allocations: 11.86 kB / 0.712 GB, free: 4.141 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