Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001898/0.001898, allocations: 121.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00223/0.002231, allocations: 204.5 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.00126, allocations: 71.83 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.27, allocations: 50.53 MB / 409.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01125/0.2813, allocations: 10.19 MB / 419.4 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008222/0.2896, allocations: 3.791 MB / 423.2 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002278/0.2919, allocations: 59.81 kB / 423.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004097/0.296, allocations: 1.939 MB / 425.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004832/0.3009, allocations: 1.627 MB / 426.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001651/0.3026, allocations: 0.6121 MB / 427.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005584/0.3082, allocations: 3.365 MB / 430.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00389/0.3121, allocations: 2.569 MB / 433.4 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002869/0.315, allocations: 1.238 MB / 434.6 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003173/0.3182, allocations: 1.666 MB / 436.3 MB, free: 6.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001313/0.3195, allocations: 252 kB / 436.6 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003844/0.3234, allocations: 1.018 MB / 437.6 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002817/0.3262, allocations: 1.558 MB / 439.1 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003895/0.3301, allocations: 1.813 MB / 440.9 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007053/0.3372, allocations: 5.777 MB / 446.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3372, allocations: 0 / 446.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3372, allocations: 0 / 446.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001029/0.3373, allocations: 0 / 446.7 MB, free: 11.92 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.007025/0.3444, allocations: 3.999 MB / 450.7 MB, free: 7.855 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.3444, allocations: 8.031 kB / 450.7 MB, free: 7.848 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006275/0.3507, allocations: 1.766 MB / 452.5 MB, free: 6.074 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003633/0.3544, allocations: 1.92 MB / 454.4 MB, free: 4.109 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/0.3545, allocations: 188.8 kB / 454.6 MB, free: 3.922 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005626/0.3551, allocations: 255.7 kB / 454.8 MB, free: 3.672 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01444/0.3696, allocations: 8.447 MB / 463.3 MB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001219/0.3697, allocations: 43.59 kB / 463.3 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007057/0.3704, allocations: 127.8 kB / 463.5 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003004/0.3734, allocations: 1.699 MB / 465.2 MB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01443/0.3879, allocations: 7.11 MB / 472.3 MB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0401/0.428, allocations: 34.01 MB / 0.4944 GB, free: 14.56 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007476/0.4356, allocations: 3.291 MB / 0.4976 GB, free: 11.11 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001892/0.4375, allocations: 1.456 MB / 0.4991 GB, free: 9.645 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006008/0.4435, allocations: 4.448 MB / 0.5034 GB, free: 4.973 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.379e-05/0.4436, allocations: 55.06 kB / 0.5034 GB, free: 4.91 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 3.937e-06/0.4436, allocations: 0 / 0.5034 GB, free: 4.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.02812/0.4717, allocations: 11.54 MB / 0.5147 GB, free: 9.219 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.41e-05/0.4718, allocations: 149.2 kB / 0.5149 GB, free: 9.043 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004998/0.4768, allocations: 3.705 MB / 0.5185 GB, free: 5.344 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002482/0.4771, allocations: 45.7 kB / 0.5185 GB, free: 5.293 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002086/0.4792, allocations: 2.744 MB / 0.5212 GB, free: 2.508 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006557/0.4799, allocations: 0.5209 MB / 0.5217 GB, free: 1.98 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001371/0.4813, allocations: 1.079 MB / 0.5228 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.4814, allocations: 305.1 kB / 0.5231 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002514/0.4839, allocations: 1.713 MB / 0.5247 GB, free: 14.87 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004692/0.4886, allocations: 5.135 MB / 0.5297 GB, free: 8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2356/0.7242, allocations: 7.414 MB / 0.537 GB, free: 119.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001333/0.7244, allocations: 34.53 kB / 0.537 GB, free: 119.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.009852/0.7343, allocations: 6.741 MB / 0.5436 GB, free: 117.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.449e-05/0.7344, allocations: 57.84 kB / 0.5437 GB, free: 117.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001034/0.7345, allocations: 120.8 kB / 0.5438 GB, free: 117.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005782/0.7351, allocations: 324.2 kB / 0.5441 GB, free: 117.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003009/0.7381, allocations: 1.245 MB / 0.5453 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002091/0.7402, allocations: 2.499 MB / 0.5477 GB, free: 115.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003213/0.7434, allocations: 289.3 kB / 0.548 GB, free: 115.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003218/0.7438, allocations: 328.9 kB / 0.5483 GB, free: 115.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (668): * Single equations (assignments): 664 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001912/0.7457, allocations: 1.787 MB / 0.5501 GB, free: 114.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004213/0.7461, allocations: 305.6 kB / 0.5504 GB, free: 114.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003989/0.7501, allocations: 2.377 MB / 0.5527 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.949e-05/0.7501, allocations: 17.66 kB / 0.5527 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.7501, allocations: 3.969 kB / 0.5527 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.7502, allocations: 3.797 kB / 0.5527 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008296/0.7585, allocations: 5.919 MB / 0.5585 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.116e-06/0.7585, allocations: 3.938 kB / 0.5585 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007318/0.7592, allocations: 172.4 kB / 0.5587 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001914/0.7611, allocations: 0.7155 MB / 0.5594 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-05/0.7612, allocations: 27.75 kB / 0.5594 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004519/0.7658, allocations: 4.809 MB / 0.5641 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.7658, allocations: 7.938 kB / 0.5641 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005276/0.7711, allocations: 4.333 MB / 0.5683 GB, free: 100.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005236/0.7716, allocations: 361 kB / 0.5687 GB, free: 99.82 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003225/0.7719, allocations: 27.98 kB / 0.5687 GB, free: 99.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009596/0.7729, allocations: 71.91 kB / 0.5688 GB, free: 99.72 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.7731, allocations: 64.52 kB / 0.5688 GB, free: 99.65 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.566e-05/0.7732, allocations: 39.98 kB / 0.5689 GB, free: 99.61 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002377/0.7755, allocations: 2.315 MB / 0.5711 GB, free: 97.31 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7755, allocations: 0 / 0.5711 GB, free: 97.31 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003347/0.7789, allocations: 0.7965 MB / 0.5719 GB, free: 96.52 MB / 462.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003158/0.7792, allocations: 157.5 kB / 0.572 GB, free: 96.36 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004589/0.7838, allocations: 4.061 MB / 0.576 GB, free: 92.33 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.7838, allocations: 0 / 0.576 GB, free: 92.33 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001127/0.785, allocations: 1.12 MB / 0.5771 GB, free: 91.19 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001911/0.7869, allocations: 388.4 kB / 0.5775 GB, free: 90.82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009685/0.7966, allocations: 7.25 MB / 0.5846 GB, free: 83.54 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001996/0.7986, allocations: 2.781 MB / 0.5873 GB, free: 80.74 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002974/0.8016, allocations: 1.656 MB / 0.5889 GB, free: 79.08 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004994/0.8021, allocations: 211.4 kB / 0.5891 GB, free: 78.87 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.8021, allocations: 4 kB / 0.5891 GB, free: 78.87 MB / 462.1 MB Notification: Performance of Templates: time 0.04202/0.8442, allocations: 27.77 MB / 0.6162 GB, free: 51.3 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches