Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_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.001563/0.001563, allocations: 106.5 kB / 17.06 MB, free: 5.793 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.001666/0.001667, allocations: 200 kB / 18.01 MB, free: 4.918 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.426/1.426, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00177/0.00177, allocations: 43.91 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2623, allocations: 49.44 MB / 400.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01433/0.2766, allocations: 12 MB / 412.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008666/0.2853, allocations: 4.188 MB / 416.4 MB, free: 8.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001598/0.287, allocations: 71.75 kB / 416.5 MB, free: 8.488 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005378/0.2924, allocations: 2.76 MB / 419.3 MB, free: 5.719 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005154/0.2976, allocations: 1.965 MB / 421.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001838/0.2995, allocations: 0.8189 MB / 422.1 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006698/0.3062, allocations: 4.602 MB / 426.7 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005349/0.3116, allocations: 3.543 MB / 430.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003226/0.3148, allocations: 1.698 MB / 431.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003849/0.3187, allocations: 2.325 MB / 434.2 MB, free: 6.684 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001224/0.3199, allocations: 352 kB / 434.6 MB, free: 6.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003267/0.3232, allocations: 1.287 MB / 435.9 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002903/0.3261, allocations: 2.1 MB / 438 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004386/0.3305, allocations: 2.435 MB / 440.4 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01033/0.3409, allocations: 7.578 MB / 448 MB, free: 8.887 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3409, allocations: 0 / 448 MB, free: 8.887 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3409, allocations: 0 / 448 MB, free: 8.887 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002187/0.3412, allocations: 0 / 448 MB, free: 8.887 MB / 366.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.01097/0.3521, allocations: 5.44 MB / 453.4 MB, free: 3.371 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.3522, allocations: 12.03 kB / 453.4 MB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001171/0.3534, allocations: 0.7904 MB / 454.2 MB, free: 2.559 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00818/0.3616, allocations: 2.166 MB / 456.4 MB, free: 396 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006432/0.368, allocations: 3.149 MB / 459.5 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002666/0.3683, allocations: 274.8 kB / 459.8 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001527/0.3699, allocations: 427.7 kB / 460.2 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02482/0.3947, allocations: 12.22 MB / 472.4 MB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001363/0.3949, allocations: 55.56 kB / 472.5 MB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005155/0.3954, allocations: 167.8 kB / 472.6 MB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00342/0.3988, allocations: 2.17 MB / 474.8 MB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02227/0.4211, allocations: 10.2 MB / 485 MB, free: 2.848 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05771/0.4789, allocations: 44.18 MB / 0.5168 GB, free: 5.434 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01208/0.491, allocations: 4.606 MB / 0.5213 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003314/0.4944, allocations: 1.724 MB / 0.523 GB, free: 14.89 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0137/0.5081, allocations: 8.2 MB / 0.531 GB, free: 6.309 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.305e-05/0.5082, allocations: 51.88 kB / 0.531 GB, free: 6.25 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 4.478e-06/0.5082, allocations: 0 / 0.531 GB, free: 6.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.2408/0.749, allocations: 16.18 MB / 0.5468 GB, free: 127.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009349/0.75, allocations: 1.692 MB / 0.5485 GB, free: 125.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004353/0.7543, allocations: 4.224 MB / 0.5526 GB, free: 124.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000278/0.7546, allocations: 57.52 kB / 0.5527 GB, free: 124.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001508/0.7561, allocations: 3.542 MB / 0.5561 GB, free: 121.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00065/0.7568, allocations: 0.8425 MB / 0.5569 GB, free: 121.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00129/0.7581, allocations: 1.364 MB / 0.5583 GB, free: 120.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.679e-05/0.7581, allocations: 301.1 kB / 0.5586 GB, free: 120.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002543/0.7607, allocations: 2.225 MB / 0.5607 GB, free: 119.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003577/0.7643, allocations: 6.355 MB / 0.5669 GB, free: 111.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007075/0.7714, allocations: 9.256 MB / 0.576 GB, free: 100.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.852e-05/0.7715, allocations: 44 kB / 0.576 GB, free: 100.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01396/0.7854, allocations: 9.093 MB / 0.5849 GB, free: 91.66 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001256/0.7856, allocations: 68.19 kB / 0.585 GB, free: 91.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00469/0.7903, allocations: 2.844 MB / 0.5877 GB, free: 88.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003/0.7933, allocations: 1.076 MB / 0.5888 GB, free: 87.65 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00454/0.7979, allocations: 1.571 MB / 0.5903 GB, free: 86.07 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003737/0.8016, allocations: 4.684 MB / 0.5949 GB, free: 81.12 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004847/0.8065, allocations: 425 kB / 0.5953 GB, free: 80.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009232/0.8074, allocations: 412 kB / 0.5957 GB, free: 80.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.003415/0.8109, allocations: 2.212 MB / 0.5979 GB, free: 78.09 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007862/0.8117, allocations: 397.4 kB / 0.5982 GB, free: 77.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005897/0.8176, allocations: 3.293 MB / 0.6015 GB, free: 74.38 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004433/0.822, allocations: 2.742 MB / 0.6041 GB, free: 71.61 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.496e-05/0.8221, allocations: 0 / 0.6041 GB, free: 71.61 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-05/0.8221, allocations: 16.47 kB / 0.6042 GB, free: 71.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01704/0.8392, allocations: 10.32 MB / 0.6142 GB, free: 61.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.63e-05/0.8392, allocations: 16 kB / 0.6142 GB, free: 61.03 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/0.8406, allocations: 371.4 kB / 0.6146 GB, free: 60.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002612/0.8433, allocations: 0.987 MB / 0.6156 GB, free: 59.66 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002354/0.8435, allocations: 63.86 kB / 0.6156 GB, free: 59.61 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003911/0.8474, allocations: 4.903 MB / 0.6204 GB, free: 54.43 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007003/0.8481, allocations: 1.557 MB / 0.6219 GB, free: 52.72 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007483/0.8556, allocations: 5.937 MB / 0.6277 GB, free: 46.59 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/0.8567, allocations: 462.2 kB / 0.6282 GB, free: 46.12 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008062/0.8576, allocations: 63.86 kB / 0.6282 GB, free: 46.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001958/0.8595, allocations: 151.6 kB / 0.6284 GB, free: 45.91 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002812/0.8598, allocations: 176.4 kB / 0.6285 GB, free: 45.74 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/0.86, allocations: 75.98 kB / 0.6286 GB, free: 45.66 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003125/0.8631, allocations: 2.598 MB / 0.6311 GB, free: 43.06 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.8631, allocations: 4 kB / 0.6312 GB, free: 43.05 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005042/0.8682, allocations: 1.137 MB / 0.6323 GB, free: 41.92 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.007341/0.8755, allocations: 6.629 MB / 0.6387 GB, free: 35.07 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008225/0.8838, allocations: 5.929 MB / 0.6445 GB, free: 29.11 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.32e-05/0.8838, allocations: 4 kB / 0.6445 GB, free: 29.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003335/0.8871, allocations: 2.196 MB / 0.6467 GB, free: 26.84 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002981/0.8901, allocations: 0.4963 MB / 0.6472 GB, free: 26.34 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07232/0.9625, allocations: 50.66 MB / 0.6966 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005257/0.9678, allocations: 3.451 MB / 0.7 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004863/0.9727, allocations: 2.026 MB / 0.702 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003596/0.9763, allocations: 2.1 MB / 0.704 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of SimCode: time 1.383e-06/0.9763, allocations: 0 / 0.704 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3542/1.331, allocations: 73.1 MB / 0.7754 GB, free: 145.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 57.07/58.4, allocations: 11.28 kB / 0.7754 GB, free: 145.7 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches