Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001345/0.001345, allocations: 118.1 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001582/0.001582, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 67.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2822, allocations: 50.54 MB / 408.8 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.00829/0.2905, allocations: 7.419 MB / 416.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0065/0.2971, allocations: 3.246 MB / 419.4 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001037/0.2981, allocations: 35.94 kB / 419.5 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002122/0.3003, allocations: 1.027 MB / 420.5 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003176/0.3035, allocations: 1.358 MB / 421.8 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009805/0.3045, allocations: 463.1 kB / 422.3 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003197/0.3077, allocations: 2.668 MB / 425 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001809/0.3096, allocations: 1.52 MB / 426.5 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001139/0.3107, allocations: 0.833 MB / 427.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001434/0.3122, allocations: 1.219 MB / 428.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003284/0.3125, allocations: 172 kB / 428.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001605/0.3141, allocations: 1.01 MB / 429.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008628/0.315, allocations: 1.087 MB / 430.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001117/0.3161, allocations: 1.297 MB / 432.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004435/0.3206, allocations: 4.345 MB / 436.4 MB, free: 5.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3206, allocations: 0 / 436.4 MB, free: 5.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3206, allocations: 0 / 436.4 MB, free: 5.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001005/0.3207, allocations: 0 / 436.4 MB, free: 5.746 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.0056/0.3263, allocations: 3.108 MB / 439.6 MB, free: 2.574 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.3264, allocations: 16.03 kB / 439.6 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000528/0.3269, allocations: 474.8 kB / 440 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006718/0.3336, allocations: 1.82 MB / 441.9 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003135/0.3368, allocations: 1.609 MB / 443.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.443e-05/0.3369, allocations: 131.3 kB / 443.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006285/0.3375, allocations: 259.7 kB / 443.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009856/0.3474, allocations: 6.672 MB / 450.5 MB, free: 7.094 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-05/0.3475, allocations: 31.8 kB / 450.5 MB, free: 7.062 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002572/0.3478, allocations: 87.89 kB / 450.6 MB, free: 6.977 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002007/0.3498, allocations: 1.367 MB / 452 MB, free: 5.613 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01053/0.3603, allocations: 6.041 MB / 458 MB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02943/0.3898, allocations: 25.56 MB / 483.6 MB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007066/0.3969, allocations: 2.663 MB / 486.3 MB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001447/0.3984, allocations: 1.04 MB / 487.3 MB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006866/0.4053, allocations: 3.945 MB / 491.2 MB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.698e-05/0.4054, allocations: 51.05 kB / 491.3 MB, free: 13.11 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 5.63e-06/0.4054, allocations: 0 / 491.3 MB, free: 13.11 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02731/0.4327, allocations: 10.46 MB / 0.49 GB, free: 2.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001334/0.4341, allocations: 1.679 MB / 0.4916 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004221/0.4383, allocations: 2.734 MB / 0.4943 GB, free: 13.89 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002265/0.4386, allocations: 41.7 kB / 0.4943 GB, free: 13.84 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001498/0.4401, allocations: 2.171 MB / 0.4965 GB, free: 11.65 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006862/0.4408, allocations: 0.5234 MB / 0.497 GB, free: 11.12 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001552/0.4424, allocations: 0.9171 MB / 0.4979 GB, free: 10.19 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.958e-05/0.4425, allocations: 301.1 kB / 0.4982 GB, free: 9.895 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002508/0.445, allocations: 1.637 MB / 0.4998 GB, free: 8.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004252/0.4492, allocations: 4.424 MB / 0.5041 GB, free: 2.418 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007073/0.4563, allocations: 6.499 MB / 0.5104 GB, free: 10.54 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.912e-05/0.4565, allocations: 28 kB / 0.5104 GB, free: 10.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01424/0.4707, allocations: 7.062 MB / 0.5173 GB, free: 3.426 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001176/0.4709, allocations: 48 kB / 0.5174 GB, free: 3.379 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006004/0.4769, allocations: 2.555 MB / 0.5199 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00514/0.4821, allocations: 1.5 MB / 0.5213 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003191/0.4853, allocations: 1.006 MB / 0.5223 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01022/0.4955, allocations: 7.77 MB / 0.5299 GB, free: 6.242 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003567/0.4991, allocations: 331.6 kB / 0.5302 GB, free: 5.918 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007623/0.4999, allocations: 284 kB / 0.5305 GB, free: 5.641 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.002723/0.5027, allocations: 1.426 MB / 0.5319 GB, free: 4.203 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005729/0.5032, allocations: 250.4 kB / 0.5321 GB, free: 3.957 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007733/0.504, allocations: 325.9 kB / 0.5324 GB, free: 3.629 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006128/0.5102, allocations: 2.525 MB / 0.5349 GB, free: 1.086 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-05/0.5102, allocations: 4 kB / 0.5349 GB, free: 1.082 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.036e-05/0.5102, allocations: 3.984 kB / 0.5349 GB, free: 1.078 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2306/0.7409, allocations: 6.873 MB / 0.5416 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-05/0.7409, allocations: 1.531 kB / 0.5416 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008036/0.7417, allocations: 176.9 kB / 0.5418 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004435/0.7462, allocations: 1.427 MB / 0.5432 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001785/0.7464, allocations: 33.66 kB / 0.5432 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008456/0.7549, allocations: 7.929 MB / 0.551 GB, free: 117.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007875/0.7557, allocations: 1.536 MB / 0.5525 GB, free: 115.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007689/0.7634, allocations: 4.887 MB / 0.5572 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007327/0.7642, allocations: 305.9 kB / 0.5575 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002777/0.7644, allocations: 24 kB / 0.5576 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.7655, allocations: 113.3 kB / 0.5577 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002407/0.7658, allocations: 88.22 kB / 0.5578 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-05/0.7659, allocations: 43.73 kB / 0.5578 GB, free: 112.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002139/0.768, allocations: 1.689 MB / 0.5594 GB, free: 111.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.768, allocations: 0 / 0.5594 GB, free: 111.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003295/0.7713, allocations: 0.7525 MB / 0.5602 GB, free: 110.4 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.007424/0.7788, allocations: 5.513 MB / 0.5656 GB, free: 105 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006027/0.7848, allocations: 4.365 MB / 0.5698 GB, free: 100.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.7849, allocations: 0 / 0.5698 GB, free: 100.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002672/0.7875, allocations: 1.736 MB / 0.5715 GB, free: 98.85 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/0.7894, allocations: 267.5 kB / 0.5718 GB, free: 98.59 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04089/0.8303, allocations: 33.78 MB / 0.6048 GB, free: 60.99 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001839/0.8322, allocations: 2.285 MB / 0.607 GB, free: 58.67 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002531/0.8347, allocations: 1.411 MB / 0.6084 GB, free: 57.25 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001223/0.8359, allocations: 1.113 MB / 0.6095 GB, free: 56.14 MB / 462.1 MB Notification: Performance of SimCode: time 2.114e-06/0.836, allocations: 0 / 0.6095 GB, free: 56.14 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08401/0.92, allocations: 48.52 MB / 0.6568 GB, free: 7.945 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.8/18.72, allocations: 11.56 kB / 0.6568 GB, free: 7.938 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches