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.001643/0.001643, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001961/0.001961, allocations: 187 kB / 18.67 MB, free: 4.402 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.353/1.353, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001455/0.001455, allocations: 52.27 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1032, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2169/0.3202, allocations: 12.03 MB / 386.7 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008729/0.329, allocations: 4.198 MB / 390.9 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002693/0.3317, allocations: 68.31 kB / 391 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005215/0.337, allocations: 2.762 MB / 393.7 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006356/0.3434, allocations: 2.017 MB / 395.7 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002197/0.3456, allocations: 0.8173 MB / 396.6 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007425/0.353, allocations: 4.615 MB / 401.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006095/0.3591, allocations: 3.566 MB / 404.7 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003597/0.3628, allocations: 1.698 MB / 406.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004365/0.3672, allocations: 2.355 MB / 408.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001662/0.3688, allocations: 353.3 kB / 409.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004031/0.3729, allocations: 1.266 MB / 410.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003476/0.3764, allocations: 2.127 MB / 412.5 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005349/0.3817, allocations: 2.451 MB / 415 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01142/0.3932, allocations: 7.581 MB / 422.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.3932, allocations: 4 kB / 422.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3932, allocations: 4 kB / 422.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002998/0.3935, allocations: 0 / 422.6 MB, free: 15.81 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01402/0.4076, allocations: 5.46 MB / 428 MB, free: 10.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.4076, allocations: 12.03 kB / 428 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002133/0.4098, allocations: 0.7982 MB / 428.8 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008911/0.4187, allocations: 2.166 MB / 431 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007015/0.4258, allocations: 3.45 MB / 434.5 MB, free: 3.766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002772/0.4261, allocations: 274.9 kB / 434.7 MB, free: 3.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00161/0.4277, allocations: 431.6 kB / 435.1 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.026/0.4537, allocations: 12.22 MB / 447.4 MB, free: 6.047 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002098/0.454, allocations: 47.58 kB / 447.4 MB, free: 6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001201/0.4552, allocations: 175.8 kB / 447.6 MB, free: 5.828 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003831/0.459, allocations: 2.166 MB / 449.7 MB, free: 3.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02403/0.4831, allocations: 10.19 MB / 459.9 MB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05881/0.5419, allocations: 44.2 MB / 0.4923 GB, free: 12 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01192/0.5539, allocations: 4.613 MB / 0.4968 GB, free: 7.191 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002589/0.5565, allocations: 1.72 MB / 0.4985 GB, free: 5.461 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01334/0.5699, allocations: 8.21 MB / 0.5065 GB, free: 12.86 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.182e-05/0.57, allocations: 55.88 kB / 0.5066 GB, free: 12.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 7.484e-06/0.57, allocations: 0 / 0.5066 GB, free: 12.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.04451/0.6145, allocations: 16.3 MB / 0.5225 GB, free: 12.36 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001492/0.6161, allocations: 1.703 MB / 0.5242 GB, free: 10.47 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007836/0.6239, allocations: 4.245 MB / 0.5283 GB, free: 6.199 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003943/0.6244, allocations: 57.7 kB / 0.5284 GB, free: 6.137 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00279/0.6272, allocations: 3.556 MB / 0.5318 GB, free: 2.547 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001109/0.6283, allocations: 0.8373 MB / 0.5326 GB, free: 1.703 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002866/0.6312, allocations: 1.354 MB / 0.534 GB, free: 348 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.6313, allocations: 309.1 kB / 0.5343 GB, free: 36 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003846/0.6351, allocations: 2.227 MB / 0.5364 GB, free: 13.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00748/0.6426, allocations: 6.351 MB / 0.5426 GB, free: 5.402 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2291/0.8717, allocations: 9.25 MB / 0.5517 GB, free: 139.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001885/0.872, allocations: 42.12 kB / 0.5517 GB, free: 139.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02099/0.893, allocations: 9.101 MB / 0.5606 GB, free: 136.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002051/0.8932, allocations: 69.78 kB / 0.5607 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006531/0.8998, allocations: 2.84 MB / 0.5634 GB, free: 135.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003963/0.9038, allocations: 1.072 MB / 0.5645 GB, free: 135.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005475/0.9093, allocations: 1.57 MB / 0.566 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005127/0.9144, allocations: 4.677 MB / 0.5706 GB, free: 132.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00524/0.9197, allocations: 419.7 kB / 0.571 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001361/0.9211, allocations: 420.8 kB / 0.5714 GB, free: 132.2 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.0047/0.9258, allocations: 2.214 MB / 0.5735 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009729/0.9268, allocations: 399.5 kB / 0.5739 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006499/0.9333, allocations: 3.287 MB / 0.5771 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004585/0.9379, allocations: 2.748 MB / 0.5798 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.068e-05/0.9379, allocations: 6 kB / 0.5798 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.641e-05/0.938, allocations: 8.312 kB / 0.5798 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01927/0.9573, allocations: 10.35 MB / 0.5899 GB, free: 124.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.274e-05/0.9574, allocations: 19.03 kB / 0.59 GB, free: 124.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001435/0.9588, allocations: 362.3 kB / 0.5903 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002675/0.9615, allocations: 0.9912 MB / 0.5913 GB, free: 123.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002666/0.9618, allocations: 63.97 kB / 0.5913 GB, free: 123.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004496/0.9663, allocations: 4.896 MB / 0.5961 GB, free: 118.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000839/0.9672, allocations: 1.566 MB / 0.5976 GB, free: 116.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00788/0.9751, allocations: 5.94 MB / 0.6034 GB, free: 110.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001704/0.9768, allocations: 0.6765 MB / 0.6041 GB, free: 110.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001047/0.9778, allocations: 55.98 kB / 0.6042 GB, free: 110.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00226/0.9801, allocations: 147.8 kB / 0.6043 GB, free: 109.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003442/0.9805, allocations: 168.4 kB / 0.6045 GB, free: 109.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001658/0.9806, allocations: 79.97 kB / 0.6045 GB, free: 109.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004699/0.9853, allocations: 2.618 MB / 0.6071 GB, free: 107.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.9854, allocations: 0 / 0.6071 GB, free: 107.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006023/0.9914, allocations: 1.143 MB / 0.6082 GB, free: 105.9 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.008046/0.9995, allocations: 6.628 MB / 0.6147 GB, free: 99.11 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008873/1.008, allocations: 5.923 MB / 0.6205 GB, free: 93.14 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-05/1.008, allocations: 1.203 kB / 0.6205 GB, free: 93.14 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00347/1.012, allocations: 2.204 MB / 0.6226 GB, free: 90.88 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00545/1.017, allocations: 0.5 MB / 0.6231 GB, free: 90.39 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07103/1.088, allocations: 50.82 MB / 0.6727 GB, free: 32.75 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005039/1.093, allocations: 3.463 MB / 0.6761 GB, free: 29.26 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004462/1.098, allocations: 2.018 MB / 0.6781 GB, free: 27.23 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002741/1.101, allocations: 2.104 MB / 0.6801 GB, free: 25.13 MB / 478.1 MB Notification: Performance of SimCode: time 7.72e-07/1.101, allocations: 2.953 kB / 0.6802 GB, free: 25.13 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3488/1.45, allocations: 73.37 MB / 0.7518 GB, free: 161.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 52.46/53.91, allocations: 4.859 kB / 0.7518 GB, free: 161.2 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