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.001088/0.001088, allocations: 89.61 kB / 16.65 MB, free: 6.59 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.001167/0.001168, allocations: 182.5 kB / 17.56 MB, free: 6.203 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.319/1.319, allocations: 223.3 MB / 241.6 MB, free: 92 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002702/0.0002704, allocations: 11.98 kB / 301.5 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1069, allocations: 50.41 MB / 351.9 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2432/0.3501, allocations: 45.71 MB / 397.6 MB, free: 288 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0279/0.3781, allocations: 9.901 MB / 407.6 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01109/0.3892, allocations: 197.7 kB / 407.7 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001905/0.3911, allocations: 451 kB / 408.2 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00565/0.3968, allocations: 1.858 MB / 410 MB, free: 8.176 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001791/0.3986, allocations: 0.7431 MB / 410.8 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007666/0.4063, allocations: 6.497 MB / 417.3 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00704/0.4134, allocations: 4.931 MB / 422.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002219/0.4156, allocations: 1.276 MB / 423.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002931/0.4186, allocations: 2.211 MB / 425.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004926/0.4191, allocations: 160 kB / 425.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002196/0.4213, allocations: 1.154 MB / 427 MB, free: 9.137 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00177/0.4231, allocations: 1.909 MB / 428.9 MB, free: 7.223 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002316/0.4254, allocations: 2.21 MB / 431.1 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007559/0.433, allocations: 7.015 MB / 438.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.433, allocations: 4 kB / 438.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.433, allocations: 0 / 438.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002145/0.4332, allocations: 0 / 438.1 MB, free: 13.95 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.008859/0.4421, allocations: 4.353 MB / 442.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.968e-05/0.4422, allocations: 8.031 kB / 442.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001355/0.4436, allocations: 0.7943 MB / 443.3 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008228/0.4518, allocations: 2.186 MB / 445.5 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005924/0.4577, allocations: 3.098 MB / 448.6 MB, free: 3.359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002226/0.458, allocations: 274.8 kB / 448.9 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009091/0.4589, allocations: 427.6 kB / 449.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02266/0.4816, allocations: 12.24 MB / 461.5 MB, free: 5.617 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001279/0.4818, allocations: 47.53 kB / 461.6 MB, free: 5.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004581/0.4822, allocations: 179.8 kB / 461.7 MB, free: 5.395 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003307/0.4855, allocations: 2.166 MB / 463.9 MB, free: 3.223 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02356/0.5091, allocations: 10.22 MB / 474.1 MB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06387/0.573, allocations: 44.27 MB / 0.5062 GB, free: 11.46 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01191/0.585, allocations: 4.615 MB / 0.5108 GB, free: 6.652 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002698/0.5877, allocations: 1.725 MB / 0.5124 GB, free: 4.922 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01297/0.6007, allocations: 8.184 MB / 0.5204 GB, free: 12.35 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.751e-05/0.6008, allocations: 55.81 kB / 0.5205 GB, free: 12.29 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 5.05e-06/0.6009, allocations: 0 / 0.5205 GB, free: 12.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.2208/0.8217, allocations: 15.95 MB / 0.5361 GB, free: 151.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001156/0.8229, allocations: 1.598 MB / 0.5376 GB, free: 149.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007422/0.8303, allocations: 4.209 MB / 0.5417 GB, free: 148.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003761/0.8307, allocations: 56.77 kB / 0.5418 GB, free: 148.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002453/0.8332, allocations: 3.401 MB / 0.5451 GB, free: 146 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001011/0.8342, allocations: 0.8063 MB / 0.5459 GB, free: 145.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008763/0.8351, allocations: 0.5765 MB / 0.5465 GB, free: 145.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.028e-05/0.8352, allocations: 301.6 kB / 0.5467 GB, free: 144.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004026/0.8392, allocations: 2.229 MB / 0.5489 GB, free: 144.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00491/0.8441, allocations: 6.357 MB / 0.5551 GB, free: 137.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009373/0.8535, allocations: 9.249 MB / 0.5642 GB, free: 130 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001681/0.8537, allocations: 41.97 kB / 0.5642 GB, free: 130 MB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01533/0.8691, allocations: 9.078 MB / 0.5731 GB, free: 126.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.738e-05/0.8692, allocations: 77.38 kB / 0.5731 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004727/0.8739, allocations: 2.843 MB / 0.5759 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002974/0.8769, allocations: 1.073 MB / 0.577 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004764/0.8817, allocations: 1.567 MB / 0.5785 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003617/0.8853, allocations: 4.402 MB / 0.5828 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005776/0.8911, allocations: 415.4 kB / 0.5832 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001235/0.8924, allocations: 421.8 kB / 0.5836 GB, free: 116.2 MB / 446.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.004787/0.8972, allocations: 2.212 MB / 0.5858 GB, free: 113.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001184/0.8984, allocations: 375.1 kB / 0.5861 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007075/0.9055, allocations: 3.301 MB / 0.5893 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004761/0.9103, allocations: 2.738 MB / 0.592 GB, free: 107.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-05/0.9103, allocations: 4 kB / 0.592 GB, free: 107.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-05/0.9104, allocations: 21.94 kB / 0.592 GB, free: 107.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02103/0.9314, allocations: 10.34 MB / 0.6021 GB, free: 96.89 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.592e-05/0.9315, allocations: 12 kB / 0.6021 GB, free: 96.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001535/0.9331, allocations: 367.4 kB / 0.6025 GB, free: 96.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002798/0.9359, allocations: 0.9904 MB / 0.6035 GB, free: 95.51 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003035/0.9362, allocations: 55.98 kB / 0.6035 GB, free: 95.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004149/0.9404, allocations: 4.597 MB / 0.608 GB, free: 90.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007746/0.9412, allocations: 1.486 MB / 0.6095 GB, free: 88.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008922/0.9501, allocations: 5.906 MB / 0.6152 GB, free: 82.86 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001554/0.9517, allocations: 444 kB / 0.6156 GB, free: 82.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001169/0.9529, allocations: 55.98 kB / 0.6157 GB, free: 82.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002597/0.9555, allocations: 154.1 kB / 0.6158 GB, free: 82.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004188/0.9559, allocations: 172.4 kB / 0.616 GB, free: 82.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001989/0.9562, allocations: 71.98 kB / 0.6161 GB, free: 81.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005207/0.9614, allocations: 2.606 MB / 0.6186 GB, free: 79.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.9614, allocations: 3.938 kB / 0.6186 GB, free: 79.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006761/0.9682, allocations: 1.129 MB / 0.6197 GB, free: 78.21 MB / 446.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.008958/0.9772, allocations: 6.61 MB / 0.6262 GB, free: 71.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01003/0.9872, allocations: 5.866 MB / 0.6319 GB, free: 65.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.555e-05/0.9873, allocations: 0 / 0.6319 GB, free: 65.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003883/0.9912, allocations: 2.181 MB / 0.634 GB, free: 63.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01059/1.002, allocations: 0.4919 MB / 0.6345 GB, free: 62.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06933/1.071, allocations: 59.4 MB / 0.6925 GB, free: 10.41 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003728/1.075, allocations: 3.451 MB / 0.6959 GB, free: 6.922 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00486/1.08, allocations: 2.022 MB / 0.6979 GB, free: 4.895 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002486/1.082, allocations: 2.095 MB / 0.6999 GB, free: 2.801 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/1.082, allocations: 0 / 0.6999 GB, free: 2.801 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.306/1.388, allocations: 74.98 MB / 0.7731 GB, free: 102.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001691/1.389, allocations: 264.2 kB / 0.7734 GB, free: 102.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.183/5.572, allocations: 0 / 0.7734 GB, free: 102.6 MB / 462.1 MB (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