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.001564/0.001564, allocations: 113.8 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.001801/0.001801, allocations: 193.4 kB / 18.01 MB, free: 5.07 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.449/1.449, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001709/0.001709, allocations: 43.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2901, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008989/0.2991, allocations: 7.436 MB / 407.7 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00634/0.3055, allocations: 3.238 MB / 410.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009527/0.3065, allocations: 35.94 kB / 411 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002081/0.3087, allocations: 1.02 MB / 412 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002911/0.3116, allocations: 1.378 MB / 413.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009531/0.3126, allocations: 459.1 kB / 413.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003435/0.316, allocations: 2.637 MB / 416.4 MB, free: 8.559 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001927/0.318, allocations: 1.527 MB / 418 MB, free: 7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001121/0.3191, allocations: 0.8407 MB / 418.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00152/0.3206, allocations: 1.215 MB / 420 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000318/0.3209, allocations: 172 kB / 420.2 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001847/0.3228, allocations: 1.034 MB / 421.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001054/0.3239, allocations: 1.114 MB / 422.3 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001317/0.3252, allocations: 1.305 MB / 423.6 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005235/0.3304, allocations: 4.387 MB / 428 MB, free: 12.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.351e-06/0.3305, allocations: 0 / 428 MB, free: 12.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3305, allocations: 0 / 428 MB, free: 12.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.237e-05/0.3305, allocations: 0 / 428 MB, free: 12.9 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.005661/0.3362, allocations: 3.151 MB / 431.2 MB, free: 9.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.3363, allocations: 8.031 kB / 431.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005184/0.3368, allocations: 470.9 kB / 431.6 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006512/0.3433, allocations: 1.762 MB / 433.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0032/0.3465, allocations: 1.702 MB / 435.1 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.3467, allocations: 131.3 kB / 435.2 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006511/0.3473, allocations: 259.7 kB / 435.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01049/0.3578, allocations: 6.664 MB / 442.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.509e-05/0.3579, allocations: 27.77 kB / 442.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000254/0.3582, allocations: 91.89 kB / 442.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002138/0.3603, allocations: 1.363 MB / 443.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01099/0.3713, allocations: 6.033 MB / 449.7 MB, free: 6.676 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03085/0.4022, allocations: 25.55 MB / 475.2 MB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007298/0.4095, allocations: 2.674 MB / 477.9 MB, free: 9.547 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001689/0.4113, allocations: 1.032 MB / 478.9 MB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006454/0.4178, allocations: 3.861 MB / 482.8 MB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.663e-05/0.4178, allocations: 47.06 kB / 482.8 MB, free: 4.332 MB / 398.1 MB Notification: Performance of pre-optimization done (n=112): time 3.758e-06/0.4179, allocations: 0 / 482.8 MB, free: 4.332 MB / 398.1 MB Notification: Performance of matching and sorting (n=125): time 0.02691/0.4448, allocations: 10.43 MB / 493.3 MB, free: 9.742 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00151/0.4463, allocations: 1.675 MB / 494.9 MB, free: 7.891 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003747/0.4501, allocations: 2.746 MB / 497.7 MB, free: 5.125 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001989/0.4503, allocations: 37.7 kB / 497.7 MB, free: 5.082 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001564/0.4519, allocations: 2.175 MB / 499.9 MB, free: 2.883 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005837/0.4525, allocations: 0.5311 MB / 0.4887 GB, free: 2.348 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001231/0.4537, allocations: 0.9249 MB / 0.4896 GB, free: 1.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.4538, allocations: 301.1 kB / 0.4899 GB, free: 1.113 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002612/0.4565, allocations: 1.625 MB / 0.4915 GB, free: 15.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004963/0.4614, allocations: 4.428 MB / 0.4958 GB, free: 9.641 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008307/0.4698, allocations: 6.493 MB / 0.5021 GB, free: 1.766 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.131e-05/0.4699, allocations: 36 kB / 0.5022 GB, free: 1.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01583/0.4857, allocations: 7.044 MB / 0.5091 GB, free: 10.67 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/0.4859, allocations: 48 kB / 0.5091 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00647/0.4924, allocations: 2.536 MB / 0.5116 GB, free: 8.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005249/0.4977, allocations: 1.489 MB / 0.513 GB, free: 6.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003086/0.5008, allocations: 1.002 MB / 0.514 GB, free: 5.566 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.5116, allocations: 7.782 MB / 0.5216 GB, free: 13.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003397/0.515, allocations: 323.7 kB / 0.5219 GB, free: 13.19 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005221/0.5156, allocations: 288 kB / 0.5222 GB, free: 12.91 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.002251/0.5178, allocations: 1.415 MB / 0.5236 GB, free: 11.48 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004551/0.5183, allocations: 246.4 kB / 0.5238 GB, free: 11.24 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00689/0.5252, allocations: 2.842 MB / 0.5266 GB, free: 8.371 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006186/0.5314, allocations: 2.509 MB / 0.529 GB, free: 5.844 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.767e-05/0.5315, allocations: 7.938 kB / 0.529 GB, free: 5.836 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.093e-05/0.5315, allocations: 7.984 kB / 0.529 GB, free: 5.828 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2361/0.7676, allocations: 6.866 MB / 0.5358 GB, free: 128.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.17e-05/0.7677, allocations: 1.344 kB / 0.5358 GB, free: 128.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009373/0.7686, allocations: 181.1 kB / 0.5359 GB, free: 128.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004991/0.7736, allocations: 1.436 MB / 0.5373 GB, free: 128.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002336/0.7739, allocations: 34.33 kB / 0.5374 GB, free: 128.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008678/0.7826, allocations: 7.925 MB / 0.5451 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007477/0.7834, allocations: 1.54 MB / 0.5466 GB, free: 123.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007872/0.7912, allocations: 4.87 MB / 0.5514 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006048/0.7919, allocations: 300.8 kB / 0.5516 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004884/0.7924, allocations: 31.3 kB / 0.5517 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001379/0.7938, allocations: 112.2 kB / 0.5518 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002937/0.7941, allocations: 79.86 kB / 0.5519 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/0.7942, allocations: 38.94 kB / 0.5519 GB, free: 121.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002387/0.7966, allocations: 1.691 MB / 0.5535 GB, free: 120.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7966, allocations: 0 / 0.5535 GB, free: 120.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00341/0.8, allocations: 0.7723 MB / 0.5543 GB, free: 120.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.007998/0.808, allocations: 5.511 MB / 0.5597 GB, free: 115.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006531/0.8146, allocations: 4.364 MB / 0.5639 GB, free: 111.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.8147, allocations: 0 / 0.5639 GB, free: 111.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002788/0.8174, allocations: 1.726 MB / 0.5656 GB, free: 109.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002094/0.8196, allocations: 262.8 kB / 0.5659 GB, free: 109.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04377/0.8633, allocations: 33.78 MB / 0.5989 GB, free: 71.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002384/0.8658, allocations: 2.297 MB / 0.6011 GB, free: 69.57 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002663/0.8685, allocations: 1.4 MB / 0.6025 GB, free: 68.17 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001286/0.8698, allocations: 1.116 MB / 0.6036 GB, free: 67.05 MB / 462.1 MB Notification: Performance of SimCode: time 2.024e-06/0.8698, allocations: 0 / 0.6036 GB, free: 67.05 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08738/0.9572, allocations: 48.66 MB / 0.6511 GB, free: 18.77 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.89/18.85, allocations: 6.891 kB / 0.6511 GB, free: 18.77 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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