Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001109/0.001109, allocations: 172 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.74/1.74, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009798/0.0009798, allocations: 82.66 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.476e-05/2.478e-05, allocations: 4 kB / 322.5 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09596/0.096, allocations: 47.57 MB / 370 MB, free: 1.703 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3469/0.4429, allocations: 97.66 MB / 467.7 MB, free: 11.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/0.4432, allocations: 85.64 kB / 467.8 MB, free: 11.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.193/0.6362, allocations: 73.21 MB / 0.5283 GB, free: 3.359 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.389e-06/0.6363, allocations: 0 / 0.5283 GB, free: 3.359 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000359/0.6366, allocations: 72 kB / 0.5284 GB, free: 3.289 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.2335/0.8702, allocations: 3.396 MB / 0.5317 GB, free: 93.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.8702, allocations: 8.469 kB / 0.5317 GB, free: 93.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009913/0.8802, allocations: 2.082 MB / 0.5337 GB, free: 93.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0109/0.8911, allocations: 4.053 MB / 0.5377 GB, free: 92.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002773/0.8914, allocations: 264.3 kB / 0.5379 GB, free: 92.86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001593/0.893, allocations: 352.4 kB / 0.5383 GB, free: 92.85 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01591/0.9089, allocations: 8.929 MB / 0.547 GB, free: 90.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001474/0.9091, allocations: 60.09 kB / 0.547 GB, free: 90.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005027/0.9096, allocations: 172.8 kB / 0.5472 GB, free: 90.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001161/0.9108, allocations: 0.888 MB / 0.5481 GB, free: 90.22 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0124/0.9232, allocations: 7.164 MB / 0.5551 GB, free: 90.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03611/0.9594, allocations: 42.97 MB / 0.597 GB, free: 58.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006362/0.9658, allocations: 3.278 MB / 0.6002 GB, free: 57.03 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001457/0.9673, allocations: 1.446 MB / 0.6016 GB, free: 56.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005116/0.9724, allocations: 4.432 MB / 0.606 GB, free: 53.75 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.9724, allocations: 43.06 kB / 0.606 GB, free: 53.71 MB / 410.7 MB Notification: Performance of pre-optimization done (n=121): time 3.837e-06/0.9725, allocations: 0 / 0.606 GB, free: 53.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=129): time 0.01996/0.9924, allocations: 9.656 MB / 0.6154 GB, free: 49.74 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/0.9925, allocations: 137 kB / 0.6156 GB, free: 49.58 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00395/0.9965, allocations: 3.301 MB / 0.6188 GB, free: 48.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001895/0.9967, allocations: 41.39 kB / 0.6188 GB, free: 48.31 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001226/0.9979, allocations: 2.759 MB / 0.6215 GB, free: 46.17 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004895/0.9984, allocations: 0.5182 MB / 0.622 GB, free: 45.81 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/0.9986, allocations: 109.5 kB / 0.6221 GB, free: 45.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002155/0.9988, allocations: 0.5263 MB / 0.6227 GB, free: 45.33 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001888/1.001, allocations: 1.65 MB / 0.6243 GB, free: 43.92 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002919/1.004, allocations: 5.066 MB / 0.6292 GB, free: 37.37 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002943/1.007, allocations: 2.859 MB / 0.632 GB, free: 34.91 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-05/1.007, allocations: 36 kB / 0.632 GB, free: 34.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.007946/1.015, allocations: 6.613 MB / 0.6385 GB, free: 29.01 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.888e-05/1.015, allocations: 65.31 kB / 0.6386 GB, free: 28.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.926e-05/1.015, allocations: 120 kB / 0.6387 GB, free: 28.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005103/1.015, allocations: 337.7 kB / 0.639 GB, free: 28.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003281/1.019, allocations: 1.283 MB / 0.6403 GB, free: 27.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001863/1.02, allocations: 2.296 MB / 0.6425 GB, free: 25.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003326/1.024, allocations: 284.4 kB / 0.6428 GB, free: 24.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003686/1.024, allocations: 335.3 kB / 0.6431 GB, free: 24.61 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (666): * Single equations (assignments): 662 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005015/1.025, allocations: 0.523 MB / 0.6436 GB, free: 24.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003732/1.025, allocations: 315 kB / 0.6439 GB, free: 23.78 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00401/1.029, allocations: 2.347 MB / 0.6462 GB, free: 21.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.12e-05/1.029, allocations: 19.95 kB / 0.6462 GB, free: 21.93 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/1.029, allocations: 4 kB / 0.6462 GB, free: 21.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/1.029, allocations: 7.828 kB / 0.6462 GB, free: 21.93 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009825/1.039, allocations: 5.94 MB / 0.652 GB, free: 17.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/1.039, allocations: 4.062 kB / 0.652 GB, free: 17.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007606/1.04, allocations: 170.7 kB / 0.6522 GB, free: 17.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00191/1.042, allocations: 0.7137 MB / 0.6529 GB, free: 16.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.521e-05/1.042, allocations: 16 kB / 0.6529 GB, free: 16.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004568/1.046, allocations: 4.438 MB / 0.6572 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/1.046, allocations: 0.6094 kB / 0.6572 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005463/1.052, allocations: 4.419 MB / 0.6615 GB, free: 8.746 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001217/1.053, allocations: 0.5411 MB / 0.6621 GB, free: 8.223 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003068/1.053, allocations: 27.88 kB / 0.6621 GB, free: 8.199 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/1.054, allocations: 72.11 kB / 0.6622 GB, free: 8.152 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/1.055, allocations: 65.34 kB / 0.6622 GB, free: 8.113 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.028e-05/1.055, allocations: 32 kB / 0.6623 GB, free: 8.082 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00294/1.058, allocations: 2.289 MB / 0.6645 GB, free: 6.051 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.61e-07/1.058, allocations: 0 / 0.6645 GB, free: 6.051 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004084/1.062, allocations: 0.8351 MB / 0.6653 GB, free: 5.227 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004264/1.062, allocations: 162.2 kB / 0.6655 GB, free: 5.062 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004996/1.067, allocations: 3.957 MB / 0.6693 GB, free: 1.129 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/1.067, allocations: 0 / 0.6693 GB, free: 1.129 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/1.068, allocations: 1.089 MB / 0.6704 GB, free: 32 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001837/1.07, allocations: 360.1 kB / 0.6707 GB, free: 15.68 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01016/1.08, allocations: 5.911 MB / 0.6765 GB, free: 9.742 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002794/1.083, allocations: 2.867 MB / 0.6793 GB, free: 6.863 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004093/1.087, allocations: 1.664 MB / 0.6809 GB, free: 5.203 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007108/1.088, allocations: 207.4 kB / 0.6811 GB, free: 5 MB / 426.7 MB Notification: Performance of SimCode: time 9.62e-07/1.088, allocations: 4 kB / 0.6811 GB, free: 4.996 MB / 426.7 MB Notification: Performance of Templates: time 0.2611/1.349, allocations: 29.06 MB / 0.7095 GB, free: 93.88 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches