Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",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.001695/0.001695, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001816/0.001816, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.404/2.404, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 46.89 kB / 300.7 MB, free: 5.742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1478, allocations: 49.44 MB / 350.2 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01323/0.1611, allocations: 7.433 MB / 357.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009489/0.1706, allocations: 3.238 MB / 360.8 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001824/0.1725, allocations: 35.88 kB / 360.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003347/0.1759, allocations: 1.031 MB / 361.9 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005968/0.1819, allocations: 1.375 MB / 363.3 MB, free: 7.113 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001898/0.1839, allocations: 447.1 kB / 363.7 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006431/0.1903, allocations: 2.633 MB / 366.3 MB, free: 4.039 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00397/0.1944, allocations: 1.539 MB / 367.9 MB, free: 2.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002427/0.1968, allocations: 0.8369 MB / 368.7 MB, free: 1.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003179/0.2001, allocations: 1.223 MB / 369.9 MB, free: 424 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008582/0.201, allocations: 172 kB / 370.1 MB, free: 252 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3323/0.5333, allocations: 1.027 MB / 371.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003018/0.5364, allocations: 1.109 MB / 372.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004656/0.5411, allocations: 1.309 MB / 373.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0111/0.5522, allocations: 4.194 MB / 377.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.219e-05/0.5523, allocations: 0.9375 kB / 377.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.5523, allocations: 0.8438 kB / 377.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002082/0.5525, allocations: 0 / 377.8 MB, free: 11.07 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.01482/0.5674, allocations: 3.065 MB / 380.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.656e-05/0.5675, allocations: 11.53 kB / 380.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002534/0.57, allocations: 478.3 kB / 381.3 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01218/0.5822, allocations: 1.743 MB / 383 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007401/0.5897, allocations: 1.685 MB / 384.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003622/0.5901, allocations: 139.4 kB / 384.9 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002244/0.5924, allocations: 261.2 kB / 385.1 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02513/0.6176, allocations: 6.655 MB / 391.8 MB, free: 5.453 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002538/0.6179, allocations: 35.97 kB / 391.8 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001432/0.6194, allocations: 85.34 kB / 391.9 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00427/0.6237, allocations: 1.361 MB / 393.3 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01912/0.6428, allocations: 6.027 MB / 399.3 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05479/0.6976, allocations: 25.6 MB / 424.9 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01245/0.7102, allocations: 2.666 MB / 427.5 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00279/0.713, allocations: 1.036 MB / 428.6 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01057/0.7236, allocations: 3.845 MB / 432.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.009e-05/0.7237, allocations: 46.22 kB / 432.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 5.841e-06/0.7237, allocations: 4 kB / 432.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.04624/0.77, allocations: 10.31 MB / 442.8 MB, free: 5.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003237/0.7733, allocations: 1.667 MB / 444.5 MB, free: 3.555 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0097/0.7831, allocations: 2.726 MB / 447.2 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005064/0.7836, allocations: 41.7 kB / 447.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003187/0.7868, allocations: 2.093 MB / 449.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001884/0.7887, allocations: 0.5071 MB / 449.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004819/0.7936, allocations: 0.9068 MB / 450.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003514/0.794, allocations: 313 kB / 451 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00651/0.8005, allocations: 1.617 MB / 452.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01117/0.8118, allocations: 4.43 MB / 457.1 MB, free: 5.527 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01809/0.8299, allocations: 6.499 MB / 463.6 MB, free: 14.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002948/0.8303, allocations: 28 kB / 463.6 MB, free: 14.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.0333/0.8637, allocations: 7.041 MB / 470.6 MB, free: 6.961 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002222/0.864, allocations: 48 kB / 470.7 MB, free: 6.914 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01268/0.8767, allocations: 2.542 MB / 473.2 MB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01031/0.8871, allocations: 1.486 MB / 474.7 MB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006845/0.894, allocations: 1.01 MB / 475.7 MB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01985/0.9139, allocations: 7.784 MB / 483.5 MB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008198/0.9221, allocations: 323.6 kB / 483.8 MB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001735/0.9239, allocations: 276 kB / 484.1 MB, free: 9.211 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (543): * Single equations (assignments): 535 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007533/0.9315, allocations: 1.42 MB / 485.5 MB, free: 7.781 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001198/0.9327, allocations: 236.9 kB / 485.7 MB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01372/0.9465, allocations: 2.839 MB / 488.6 MB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01179/0.9583, allocations: 2.513 MB / 491.1 MB, free: 2.156 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.228e-05/0.9584, allocations: 4 kB / 491.1 MB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.052e-05/0.9585, allocations: 7.984 kB / 491.1 MB, free: 2.145 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02821/0.9867, allocations: 6.871 MB / 498 MB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.769e-05/0.9868, allocations: 4 kB / 498 MB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001707/0.9885, allocations: 175.7 kB / 498.2 MB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009682/0.9982, allocations: 1.435 MB / 499.6 MB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004652/0.9988, allocations: 35.97 kB / 499.6 MB, free: 9.555 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02078/1.02, allocations: 7.928 MB / 0.4957 GB, free: 1.359 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002541/1.022, allocations: 1.545 MB / 0.4972 GB, free: 15.67 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01922/1.041, allocations: 4.844 MB / 0.5019 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001498/1.043, allocations: 293.9 kB / 0.5022 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001211/1.044, allocations: 27.98 kB / 0.5022 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00333/1.048, allocations: 111.3 kB / 0.5023 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007988/1.048, allocations: 84.48 kB / 0.5024 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003657/1.049, allocations: 47.91 kB / 0.5024 GB, free: 10.21 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.007345/1.056, allocations: 1.69 MB / 0.5041 GB, free: 8.508 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.884e-06/1.056, allocations: 0 / 0.5041 GB, free: 8.508 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01075/1.067, allocations: 0.7696 MB / 0.5048 GB, free: 7.738 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02061/1.088, allocations: 5.499 MB / 0.5102 GB, free: 2.191 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01581/1.104, allocations: 4.667 MB / 0.5148 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.315e-05/1.104, allocations: 4 kB / 0.5148 GB, free: 13.49 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006039/1.11, allocations: 1.712 MB / 0.5164 GB, free: 11.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004734/1.115, allocations: 271.1 kB / 0.5167 GB, free: 11.47 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4165/1.531, allocations: 35.97 MB / 0.5518 GB, free: 134.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005136/1.536, allocations: 2.293 MB / 0.5541 GB, free: 133.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006741/1.543, allocations: 1.408 MB / 0.5554 GB, free: 133.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003327/1.547, allocations: 1.118 MB / 0.5565 GB, free: 132.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.593e-06/1.547, allocations: 0 / 0.5565 GB, free: 132.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3163/1.863, allocations: 51.35 MB / 0.6067 GB, free: 82.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.76/23.63, allocations: 0 / 0.6067 GB, free: 82.93 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches