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.001016/0.00102, allocations: 106 kB / 17.15 MB, free: 6.309 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.001123/0.001123, allocations: 198 kB / 18.07 MB, free: 5.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.244/1.244, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001328/0.001328, allocations: 52.3 kB / 280.1 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08651/0.08785, allocations: 46.64 MB / 326.7 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.04222/0.1301, allocations: 46.98 MB / 373.7 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1941/0.3242, allocations: 9.961 MB / 383.6 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01287/0.3372, allocations: 201 kB / 383.8 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007636/0.3448, allocations: 2.727 MB / 386.6 MB, free: 8.926 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00644/0.3513, allocations: 1.843 MB / 388.4 MB, free: 8.816 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002817/0.3542, allocations: 0.7525 MB / 389.2 MB, free: 8.793 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009567/0.3638, allocations: 6.535 MB / 395.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007186/0.371, allocations: 3.535 MB / 399.2 MB, free: 7.578 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00391/0.3749, allocations: 1.519 MB / 400.8 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004386/0.3793, allocations: 2.514 MB / 403.3 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001823/0.3812, allocations: 258 kB / 403.5 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00437/0.3856, allocations: 1.242 MB / 404.8 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003974/0.3896, allocations: 2.053 MB / 406.8 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006282/0.3959, allocations: 2.37 MB / 409.2 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01248/0.4084, allocations: 7.213 MB / 416.4 MB, free: 13.13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.165e-05/0.4085, allocations: 0 / 416.4 MB, free: 13.13 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.4085, allocations: 0 / 416.4 MB, free: 13.13 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003893/0.4089, allocations: 4 kB / 416.4 MB, free: 13.13 MB / 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.01473/0.4236, allocations: 5.323 MB / 421.7 MB, free: 7.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.857e-05/0.4237, allocations: 12.03 kB / 421.7 MB, free: 7.844 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002335/0.426, allocations: 0.8009 MB / 422.5 MB, free: 7.074 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008458/0.4345, allocations: 2.133 MB / 424.7 MB, free: 4.934 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00749/0.442, allocations: 3.392 MB / 428.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003269/0.4424, allocations: 285.8 kB / 428.3 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001693/0.4441, allocations: 423.8 kB / 428.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02758/0.4717, allocations: 12.22 MB / 441 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003181/0.4721, allocations: 52.38 kB / 441 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001657/0.4737, allocations: 169.3 kB / 441.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003782/0.4775, allocations: 2.169 MB / 443.4 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02415/0.5017, allocations: 10.19 MB / 453.6 MB, free: 7.734 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05861/0.5604, allocations: 44.32 MB / 497.9 MB, free: 10.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01111/0.5715, allocations: 4.605 MB / 0.4907 GB, free: 5.598 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002341/0.5739, allocations: 1.724 MB / 0.4924 GB, free: 3.859 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01154/0.5855, allocations: 8.193 MB / 0.5004 GB, free: 11.35 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.562e-05/0.5856, allocations: 55.88 kB / 0.5004 GB, free: 11.29 MB / 430.1 MB Notification: Performance of pre-optimization done (n=183): time 5.48e-06/0.5856, allocations: 0 / 0.5004 GB, free: 11.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=205): time 0.04063/0.6262, allocations: 16.04 MB / 0.5161 GB, free: 11.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001246/0.6275, allocations: 1.609 MB / 0.5177 GB, free: 9.293 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006015/0.6335, allocations: 4.232 MB / 0.5218 GB, free: 5.031 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002718/0.6338, allocations: 60.83 kB / 0.5219 GB, free: 4.969 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0025/0.6363, allocations: 3.412 MB / 0.5252 GB, free: 1.559 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000889/0.6372, allocations: 0.8022 MB / 0.526 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00184/0.639, allocations: 1.351 MB / 0.5273 GB, free: 15.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.6392, allocations: 305.1 kB / 0.5276 GB, free: 15.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003138/0.6423, allocations: 2.223 MB / 0.5298 GB, free: 12.88 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006086/0.6484, allocations: 6.363 MB / 0.536 GB, free: 4.465 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2312/0.8797, allocations: 9.24 MB / 0.545 GB, free: 168.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001455/0.8798, allocations: 41 kB / 0.545 GB, free: 168.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01966/0.8995, allocations: 9.082 MB / 0.5539 GB, free: 165.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.8997, allocations: 68.25 kB / 0.554 GB, free: 165.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005411/0.9051, allocations: 2.846 MB / 0.5568 GB, free: 164.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003143/0.9082, allocations: 1.074 MB / 0.5578 GB, free: 164.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00485/0.9131, allocations: 1.573 MB / 0.5593 GB, free: 164.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003797/0.9169, allocations: 4.399 MB / 0.5636 GB, free: 161.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005367/0.9223, allocations: 423.9 kB / 0.564 GB, free: 161.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009587/0.9233, allocations: 417.3 kB / 0.5644 GB, free: 161.3 MB / 462.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.004722/0.928, allocations: 2.214 MB / 0.5666 GB, free: 160.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/0.9291, allocations: 378.3 kB / 0.567 GB, free: 160.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00662/0.9357, allocations: 3.292 MB / 0.5702 GB, free: 159.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004758/0.9405, allocations: 2.744 MB / 0.5729 GB, free: 158.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.687e-05/0.9405, allocations: 3.969 kB / 0.5729 GB, free: 158.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.003e-05/0.9406, allocations: 13.69 kB / 0.5729 GB, free: 158.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02115/0.9617, allocations: 10.35 MB / 0.583 GB, free: 149.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.662e-05/0.9618, allocations: 12 kB / 0.583 GB, free: 149.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001415/0.9632, allocations: 367.4 kB / 0.5833 GB, free: 149.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002664/0.9659, allocations: 0.9828 MB / 0.5843 GB, free: 148.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002735/0.9662, allocations: 70.91 kB / 0.5844 GB, free: 148.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003914/0.9701, allocations: 4.578 MB / 0.5888 GB, free: 143.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007522/0.9709, allocations: 1.473 MB / 0.5903 GB, free: 141.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007883/0.9788, allocations: 5.926 MB / 0.5961 GB, free: 135.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001752/0.9806, allocations: 0.6522 MB / 0.5967 GB, free: 135.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001007/0.9816, allocations: 59.98 kB / 0.5968 GB, free: 135 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002149/0.9838, allocations: 147.8 kB / 0.5969 GB, free: 134.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003695/0.9841, allocations: 172.4 kB / 0.5971 GB, free: 134.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001709/0.9843, allocations: 75.98 kB / 0.5971 GB, free: 134.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004943/0.9893, allocations: 2.622 MB / 0.5997 GB, free: 132 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.9893, allocations: 0 / 0.5997 GB, free: 132 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006759/0.9961, allocations: 1.138 MB / 0.6008 GB, free: 130.8 MB / 462.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.008365/1.004, allocations: 6.608 MB / 0.6073 GB, free: 124 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008933/1.013, allocations: 5.87 MB / 0.613 GB, free: 118.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.248e-05/1.013, allocations: 4 kB / 0.613 GB, free: 118.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003249/1.017, allocations: 2.191 MB / 0.6151 GB, free: 115.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004352/1.021, allocations: 493.2 kB / 0.6156 GB, free: 115.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08613/1.107, allocations: 59.48 MB / 0.6737 GB, free: 46.93 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005309/1.113, allocations: 3.471 MB / 0.6771 GB, free: 43.43 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005404/1.118, allocations: 2.02 MB / 0.6791 GB, free: 41.41 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003024/1.121, allocations: 2.105 MB / 0.6811 GB, free: 39.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.443e-06/1.121, allocations: 0 / 0.6811 GB, free: 39.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.306/1.427, allocations: 75.97 MB / 0.7553 GB, free: 151.1 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002375/1.427, allocations: 260.7 kB / 0.7555 GB, free: 150.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.417/5.845, allocations: 0 / 0.7555 GB, free: 150.9 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.mat","/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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches