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.0009917/0.0009918, allocations: 112.3 kB / 16.62 MB, free: 6.812 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.0009442/0.0009442, allocations: 186 kB / 17.55 MB, free: 5.934 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.313/1.313, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001057/0.001057, allocations: 54.95 kB / 300.2 MB, free: 6.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09664/0.09771, allocations: 49.44 MB / 349.7 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2356/0.3333, allocations: 46.95 MB / 396.6 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02561/0.359, allocations: 9.86 MB / 406.5 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01209/0.3711, allocations: 199.2 kB / 406.7 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006515/0.3777, allocations: 2.643 MB / 409.3 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006193/0.384, allocations: 1.829 MB / 411.2 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002016/0.386, allocations: 0.7558 MB / 411.9 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006263/0.3923, allocations: 4.631 MB / 416.6 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005597/0.3979, allocations: 3.756 MB / 420.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003274/0.4012, allocations: 1.717 MB / 422 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003861/0.4051, allocations: 2.582 MB / 424.6 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00102/0.4061, allocations: 355.9 kB / 425 MB, free: 9.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002941/0.4091, allocations: 1.295 MB / 426.3 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002744/0.4118, allocations: 2.139 MB / 428.4 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003248/0.4151, allocations: 2.466 MB / 430.9 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008477/0.4236, allocations: 7.324 MB / 438.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.335e-05/0.4237, allocations: 3.984 kB / 438.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.538e-06/0.4237, allocations: 0 / 438.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002594/0.4239, allocations: 0 / 438.2 MB, free: 12.11 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.01167/0.4356, allocations: 5.304 MB / 443.5 MB, free: 6.738 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.144e-05/0.4357, allocations: 8.031 kB / 443.5 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001195/0.4369, allocations: 0.7982 MB / 444.3 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008418/0.4453, allocations: 2.132 MB / 446.4 MB, free: 3.781 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006305/0.4517, allocations: 3.094 MB / 449.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/0.452, allocations: 274.8 kB / 449.8 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001312/0.4533, allocations: 427.7 kB / 450.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02617/0.4795, allocations: 12.23 MB / 462.4 MB, free: 2.898 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002423/0.4797, allocations: 43.62 kB / 462.5 MB, free: 2.855 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001304/0.4811, allocations: 171.8 kB / 462.6 MB, free: 2.688 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003573/0.4847, allocations: 2.162 MB / 464.8 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02296/0.5076, allocations: 10.21 MB / 475 MB, free: 6.281 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05889/0.5666, allocations: 44.28 MB / 0.5071 GB, free: 8.766 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01186/0.5785, allocations: 4.613 MB / 0.5116 GB, free: 3.957 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003038/0.5815, allocations: 1.724 MB / 0.5133 GB, free: 2.223 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0139/0.5955, allocations: 8.196 MB / 0.5213 GB, free: 9.641 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.383e-05/0.5956, allocations: 51.88 kB / 0.5214 GB, free: 9.582 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 4.799e-06/0.5956, allocations: 0 / 0.5214 GB, free: 9.582 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.2263/0.8219, allocations: 15.92 MB / 0.5369 GB, free: 150.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001274/0.8232, allocations: 1.693 MB / 0.5386 GB, free: 148.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006983/0.8302, allocations: 4.213 MB / 0.5427 GB, free: 147.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004548/0.8307, allocations: 56.83 kB / 0.5427 GB, free: 147.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002674/0.8333, allocations: 3.398 MB / 0.5461 GB, free: 144.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00113/0.8345, allocations: 0.8062 MB / 0.5468 GB, free: 144 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001974/0.8365, allocations: 1.348 MB / 0.5482 GB, free: 143.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.605e-05/0.8365, allocations: 302.7 kB / 0.5484 GB, free: 143.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003684/0.8402, allocations: 2.237 MB / 0.5506 GB, free: 142.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004917/0.8452, allocations: 6.35 MB / 0.5568 GB, free: 136.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008237/0.8534, allocations: 9.249 MB / 0.5659 GB, free: 128.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001554/0.8536, allocations: 42.62 kB / 0.5659 GB, free: 128.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01542/0.869, allocations: 9.087 MB / 0.5748 GB, free: 124.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.999e-05/0.8691, allocations: 67.94 kB / 0.5748 GB, free: 124.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004843/0.874, allocations: 2.84 MB / 0.5776 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003105/0.8771, allocations: 1.08 MB / 0.5787 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004683/0.8818, allocations: 1.567 MB / 0.5802 GB, free: 119.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003718/0.8855, allocations: 4.682 MB / 0.5848 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005488/0.8911, allocations: 427.4 kB / 0.5852 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000928/0.892, allocations: 412 kB / 0.5856 GB, free: 113.3 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.003164/0.8952, allocations: 2.222 MB / 0.5877 GB, free: 111.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007845/0.896, allocations: 375.1 kB / 0.5881 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005417/0.9014, allocations: 3.283 MB / 0.5913 GB, free: 107.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004452/0.9059, allocations: 2.745 MB / 0.594 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-05/0.9059, allocations: 3.984 kB / 0.594 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.126e-05/0.9059, allocations: 11.97 kB / 0.594 GB, free: 104.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01647/0.9224, allocations: 10.34 MB / 0.6041 GB, free: 94.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.187e-05/0.9225, allocations: 12 kB / 0.6041 GB, free: 94.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/0.9239, allocations: 367.4 kB / 0.6045 GB, free: 93.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002974/0.9269, allocations: 0.9881 MB / 0.6054 GB, free: 92.71 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002168/0.9271, allocations: 63.97 kB / 0.6055 GB, free: 92.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004001/0.9311, allocations: 4.894 MB / 0.6103 GB, free: 87.48 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007522/0.9319, allocations: 1.571 MB / 0.6118 GB, free: 85.76 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007732/0.9397, allocations: 5.911 MB / 0.6176 GB, free: 79.65 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001225/0.9409, allocations: 440 kB / 0.618 GB, free: 79.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009481/0.9419, allocations: 51.98 kB / 0.618 GB, free: 79.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002187/0.9441, allocations: 147.8 kB / 0.6182 GB, free: 79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003506/0.9444, allocations: 172.4 kB / 0.6183 GB, free: 78.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001579/0.9446, allocations: 80.34 kB / 0.6184 GB, free: 78.75 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0038/0.9484, allocations: 2.605 MB / 0.621 GB, free: 76.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.9484, allocations: 0 / 0.621 GB, free: 76.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005772/0.9542, allocations: 1.13 MB / 0.6221 GB, free: 75.02 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.008201/0.9624, allocations: 6.619 MB / 0.6285 GB, free: 68.19 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0103/0.9727, allocations: 6.569 MB / 0.635 GB, free: 61.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.137e-05/0.9728, allocations: 0 / 0.635 GB, free: 61.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003414/0.9762, allocations: 2.2 MB / 0.6371 GB, free: 59.34 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003891/0.9801, allocations: 0.4946 MB / 0.6376 GB, free: 58.85 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0846/1.065, allocations: 59.18 MB / 0.6954 GB, free: 6.715 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00414/1.069, allocations: 3.458 MB / 0.6988 GB, free: 3.219 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004681/1.074, allocations: 2.015 MB / 0.7007 GB, free: 1.199 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1517/1.225, allocations: 2.103 MB / 0.7028 GB, free: 152.9 MB / 462.1 MB Notification: Performance of SimCode: time 7.62e-07/1.225, allocations: 0.8125 kB / 0.7028 GB, free: 152.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.99/2.215, allocations: 77.3 MB / 0.7783 GB, free: 98.59 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003059/2.216, allocations: 255.6 kB / 0.7785 GB, free: 98.33 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.348/6.564, allocations: 64 / 0.7785 GB, free: 98.33 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