Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",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.00135/0.001351, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001299/0.0013, allocations: 183.1 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.631/1.631, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 51.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1092, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2251/0.3343, allocations: 12.04 MB / 386.7 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008575/0.3429, allocations: 4.194 MB / 390.9 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002594/0.3456, allocations: 68.59 kB / 391 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00518/0.3508, allocations: 2.758 MB / 393.7 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006293/0.3571, allocations: 1.969 MB / 395.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002109/0.3592, allocations: 0.8093 MB / 396.5 MB, free: 1.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007933/0.3672, allocations: 4.621 MB / 401.1 MB, free: 100 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005168/0.3724, allocations: 3.559 MB / 404.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003572/0.376, allocations: 1.705 MB / 406.4 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004298/0.3803, allocations: 2.351 MB / 408.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001179/0.3815, allocations: 352.2 kB / 409.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003173/0.3847, allocations: 1.269 MB / 410.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002602/0.3873, allocations: 2.101 MB / 412.4 MB, free: 9.945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003479/0.3908, allocations: 2.444 MB / 414.9 MB, free: 7.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01115/0.402, allocations: 7.597 MB / 422.5 MB, free: 72 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.402, allocations: 4 kB / 422.5 MB, free: 68 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.402, allocations: 0 / 422.5 MB, free: 68 kB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002351/0.4023, allocations: 0 / 422.5 MB, free: 68 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.0125/0.4148, allocations: 5.46 MB / 427.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.4148, allocations: 12.03 kB / 428 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001232/0.4161, allocations: 0.7982 MB / 428.8 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008433/0.4245, allocations: 2.166 MB / 430.9 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006509/0.4311, allocations: 3.444 MB / 434.4 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000255/0.4313, allocations: 278.8 kB / 434.6 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001132/0.4325, allocations: 423.7 kB / 435.1 MB, free: 3.344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0247/0.4572, allocations: 12.23 MB / 447.3 MB, free: 6.305 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001341/0.4574, allocations: 47.58 kB / 447.3 MB, free: 6.258 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005964/0.458, allocations: 171.8 kB / 447.5 MB, free: 6.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003616/0.4616, allocations: 2.162 MB / 449.7 MB, free: 3.926 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02361/0.4852, allocations: 10.2 MB / 459.9 MB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05772/0.543, allocations: 44.2 MB / 0.4922 GB, free: 12.26 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01168/0.5547, allocations: 4.617 MB / 0.4968 GB, free: 7.445 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002589/0.5574, allocations: 1.716 MB / 0.4984 GB, free: 5.719 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01227/0.5696, allocations: 8.21 MB / 0.5064 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.833e-05/0.5697, allocations: 59.81 kB / 0.5065 GB, free: 13.05 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 6.522e-06/0.5698, allocations: 3.984 kB / 0.5065 GB, free: 13.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.04111/0.6109, allocations: 16.3 MB / 0.5224 GB, free: 12.61 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001521/0.6124, allocations: 1.699 MB / 0.5241 GB, free: 10.73 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006288/0.6187, allocations: 4.245 MB / 0.5282 GB, free: 6.453 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003843/0.6192, allocations: 57.7 kB / 0.5283 GB, free: 6.391 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002795/0.622, allocations: 3.552 MB / 0.5318 GB, free: 2.805 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001027/0.623, allocations: 0.8374 MB / 0.5326 GB, free: 1.961 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001787/0.6248, allocations: 1.358 MB / 0.5339 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.6249, allocations: 301.1 kB / 0.5342 GB, free: 304 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003725/0.6287, allocations: 2.231 MB / 0.5364 GB, free: 14.06 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007364/0.6361, allocations: 6.351 MB / 0.5426 GB, free: 5.66 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2033/0.8394, allocations: 9.255 MB / 0.5516 GB, free: 139.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001457/0.8395, allocations: 41.69 kB / 0.5516 GB, free: 139.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01927/0.8588, allocations: 9.097 MB / 0.5605 GB, free: 137.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.859, allocations: 70.84 kB / 0.5606 GB, free: 137.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00606/0.865, allocations: 2.843 MB / 0.5634 GB, free: 136.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003754/0.8688, allocations: 1.066 MB / 0.5644 GB, free: 136.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005303/0.8742, allocations: 1.579 MB / 0.566 GB, free: 136 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00472/0.8789, allocations: 4.681 MB / 0.5705 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00536/0.8843, allocations: 416.8 kB / 0.5709 GB, free: 132.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001243/0.8855, allocations: 411.9 kB / 0.5713 GB, free: 132.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (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],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003947/0.8895, allocations: 2.222 MB / 0.5735 GB, free: 131.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007349/0.8903, allocations: 397.6 kB / 0.5739 GB, free: 131.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005509/0.8958, allocations: 3.286 MB / 0.5771 GB, free: 130.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004343/0.9001, allocations: 2.748 MB / 0.5798 GB, free: 129.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/0.9002, allocations: 0 / 0.5798 GB, free: 129.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.268e-05/0.9002, allocations: 11.27 kB / 0.5798 GB, free: 129.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01526/0.9155, allocations: 10.35 MB / 0.5899 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.36e-05/0.9155, allocations: 17.44 kB / 0.5899 GB, free: 125.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/0.9169, allocations: 363.7 kB / 0.5902 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002624/0.9195, allocations: 0.9866 MB / 0.5912 GB, free: 124.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001914/0.9197, allocations: 59.98 kB / 0.5913 GB, free: 124.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003853/0.9236, allocations: 4.906 MB / 0.596 GB, free: 119 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006846/0.9243, allocations: 1.559 MB / 0.5976 GB, free: 117.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007236/0.9316, allocations: 5.94 MB / 0.6034 GB, free: 111.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001449/0.933, allocations: 0.6788 MB / 0.604 GB, free: 110.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000468/0.9335, allocations: 55.98 kB / 0.6041 GB, free: 110.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001544/0.9351, allocations: 143.8 kB / 0.6042 GB, free: 110.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003088/0.9354, allocations: 177.4 kB / 0.6044 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/0.9355, allocations: 79.25 kB / 0.6045 GB, free: 110.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003378/0.9389, allocations: 2.618 MB / 0.607 GB, free: 107.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.9389, allocations: 0 / 0.607 GB, free: 107.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005191/0.9441, allocations: 1.143 MB / 0.6081 GB, free: 106.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007251/0.9514, allocations: 6.628 MB / 0.6146 GB, free: 99.54 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008449/0.9599, allocations: 5.928 MB / 0.6204 GB, free: 93.57 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.464e-05/0.9599, allocations: 7.656 kB / 0.6204 GB, free: 93.57 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003383/0.9633, allocations: 2.198 MB / 0.6226 GB, free: 91.31 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003011/0.9663, allocations: 0.4964 MB / 0.623 GB, free: 90.82 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06174/1.028, allocations: 50.81 MB / 0.6727 GB, free: 33.19 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003192/1.031, allocations: 3.47 MB / 0.6761 GB, free: 29.69 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003956/1.035, allocations: 2.019 MB / 0.678 GB, free: 27.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001985/1.037, allocations: 2.108 MB / 0.6801 GB, free: 25.55 MB / 478.1 MB Notification: Performance of SimCode: time 9.62e-07/1.037, allocations: 0 / 0.6801 GB, free: 25.55 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3553/1.393, allocations: 73.36 MB / 0.7517 GB, free: 161.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 55.07/56.46, allocations: 13.33 kB / 0.7517 GB, free: 161.5 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches