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.001634/0.001634, allocations: 113.6 kB / 17.06 MB, free: 6.012 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.001441/0.001441, allocations: 189.4 kB / 18 MB, free: 5.098 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.463/1.463, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 51.92 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3045, allocations: 49.43 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009747/0.3143, allocations: 7.435 MB / 407.7 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00698/0.3214, allocations: 3.242 MB / 410.9 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001146/0.3225, allocations: 35.94 kB / 411 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002233/0.3248, allocations: 1.024 MB / 412 MB, free: 13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003568/0.3284, allocations: 1.381 MB / 413.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001059/0.3295, allocations: 451.2 kB / 413.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003528/0.333, allocations: 2.641 MB / 416.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001899/0.3349, allocations: 1.524 MB / 418 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001097/0.3361, allocations: 0.8369 MB / 418.8 MB, free: 6.129 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001561/0.3376, allocations: 1.215 MB / 420 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003441/0.338, allocations: 172 kB / 420.2 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001886/0.3399, allocations: 1.037 MB / 421.2 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001117/0.341, allocations: 1.106 MB / 422.3 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001402/0.3424, allocations: 1.308 MB / 423.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00549/0.3479, allocations: 4.383 MB / 428 MB, free: 12.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.348e-06/0.348, allocations: 7.938 kB / 428 MB, free: 12.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.348, allocations: 3.938 kB / 428 MB, free: 12.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.939e-05/0.3481, allocations: 0 / 428 MB, free: 12.87 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.006242/0.3543, allocations: 3.136 MB / 431.2 MB, free: 9.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.3544, allocations: 12.03 kB / 431.2 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005733/0.355, allocations: 466.9 kB / 431.6 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006837/0.3618, allocations: 1.766 MB / 433.4 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003871/0.3657, allocations: 1.71 MB / 435.1 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/0.3659, allocations: 131.3 kB / 435.2 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007641/0.3667, allocations: 259.7 kB / 435.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01207/0.3787, allocations: 6.66 MB / 442.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.518e-05/0.3789, allocations: 27.77 kB / 442.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002709/0.3792, allocations: 91.89 kB / 442.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002299/0.3815, allocations: 1.367 MB / 443.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01226/0.3937, allocations: 6.041 MB / 449.7 MB, free: 6.633 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03641/0.4302, allocations: 25.54 MB / 475.2 MB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00791/0.4381, allocations: 2.667 MB / 477.9 MB, free: 9.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001531/0.4397, allocations: 1.036 MB / 478.9 MB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006486/0.4462, allocations: 3.865 MB / 482.8 MB, free: 4.352 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/0.4463, allocations: 43.06 kB / 482.8 MB, free: 4.301 MB / 398.1 MB Notification: Performance of pre-optimization done (n=112): time 3.106e-06/0.4463, allocations: 0 / 482.8 MB, free: 4.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=125): time 0.02884/0.4751, allocations: 10.44 MB / 493.3 MB, free: 9.707 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001607/0.4768, allocations: 1.671 MB / 494.9 MB, free: 7.859 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004168/0.481, allocations: 2.75 MB / 497.7 MB, free: 5.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003277/0.4813, allocations: 37.7 kB / 497.7 MB, free: 5.047 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002086/0.4834, allocations: 2.175 MB / 499.9 MB, free: 2.848 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007864/0.4842, allocations: 0.5272 MB / 0.4887 GB, free: 2.316 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001497/0.4857, allocations: 0.9249 MB / 0.4896 GB, free: 1.379 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.4859, allocations: 305.1 kB / 0.4899 GB, free: 1.078 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002923/0.4888, allocations: 1.621 MB / 0.4915 GB, free: 15.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005621/0.4944, allocations: 4.428 MB / 0.4958 GB, free: 9.605 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009275/0.5037, allocations: 6.49 MB / 0.5021 GB, free: 1.73 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.561e-05/0.5039, allocations: 32 kB / 0.5022 GB, free: 1.699 MB / 430.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01575/0.5196, allocations: 7.04 MB / 0.509 GB, free: 10.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001021/0.5198, allocations: 52.03 kB / 0.5091 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006584/0.5264, allocations: 2.539 MB / 0.5116 GB, free: 8.039 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00561/0.532, allocations: 1.493 MB / 0.513 GB, free: 6.539 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003334/0.5354, allocations: 0.9981 MB / 0.514 GB, free: 5.539 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01196/0.5474, allocations: 7.782 MB / 0.5216 GB, free: 13.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003688/0.5511, allocations: 331.5 kB / 0.5219 GB, free: 13.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008228/0.5519, allocations: 287.9 kB / 0.5222 GB, free: 12.88 MB / 462.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.002933/0.5549, allocations: 1.418 MB / 0.5236 GB, free: 11.45 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005593/0.5554, allocations: 250.3 kB / 0.5238 GB, free: 11.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009873/0.5653, allocations: 2.842 MB / 0.5266 GB, free: 8.332 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009936/0.5753, allocations: 2.509 MB / 0.529 GB, free: 5.805 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.466e-05/0.5754, allocations: 7.938 kB / 0.529 GB, free: 5.797 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.933e-05/0.5754, allocations: 7.984 kB / 0.5291 GB, free: 5.789 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2426/0.818, allocations: 6.87 MB / 0.5358 GB, free: 129.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.178e-05/0.8181, allocations: 5.125 kB / 0.5358 GB, free: 129.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009447/0.819, allocations: 172.8 kB / 0.5359 GB, free: 129.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004893/0.8239, allocations: 1.43 MB / 0.5373 GB, free: 129.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001853/0.8241, allocations: 34.88 kB / 0.5374 GB, free: 129.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008445/0.8326, allocations: 7.927 MB / 0.5451 GB, free: 125.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007033/0.8333, allocations: 1.537 MB / 0.5466 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007358/0.8407, allocations: 4.873 MB / 0.5514 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004909/0.8412, allocations: 300.3 kB / 0.5516 GB, free: 122.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002509/0.8415, allocations: 31.17 kB / 0.5517 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001051/0.8425, allocations: 106.2 kB / 0.5518 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002576/0.8428, allocations: 88.5 kB / 0.5519 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-05/0.8429, allocations: 38.84 kB / 0.5519 GB, free: 122.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001904/0.8448, allocations: 1.695 MB / 0.5536 GB, free: 121.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8448, allocations: 0 / 0.5536 GB, free: 121.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002969/0.8478, allocations: 0.7683 MB / 0.5543 GB, free: 121.6 MB / 462.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.007494/0.8553, allocations: 5.517 MB / 0.5597 GB, free: 116.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006056/0.8614, allocations: 4.342 MB / 0.5639 GB, free: 112.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.8614, allocations: 0 / 0.5639 GB, free: 112.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002604/0.864, allocations: 1.723 MB / 0.5656 GB, free: 110.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00167/0.8657, allocations: 276.2 kB / 0.5659 GB, free: 110.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03782/0.9035, allocations: 33.78 MB / 0.5989 GB, free: 72.65 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001601/0.9052, allocations: 2.297 MB / 0.6011 GB, free: 70.32 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002395/0.9076, allocations: 1.404 MB / 0.6025 GB, free: 68.91 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/0.9087, allocations: 1.112 MB / 0.6036 GB, free: 67.8 MB / 462.1 MB Notification: Performance of SimCode: time 6.81e-07/0.9087, allocations: 0.875 kB / 0.6036 GB, free: 67.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08847/0.9971, allocations: 48.67 MB / 0.6511 GB, free: 19.51 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.07/19.06, allocations: 5.547 kB / 0.6511 GB, free: 19.51 MB / 462.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