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.001033/0.001033, allocations: 118.8 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001113/0.001113, allocations: 205.2 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 63.89 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.3102, allocations: 50.54 MB / 409.2 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01605/0.3263, allocations: 10.19 MB / 419.4 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007112/0.3334, allocations: 3.787 MB / 423.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001964/0.3354, allocations: 55.81 kB / 423.3 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003932/0.3394, allocations: 1.946 MB / 425.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004319/0.3437, allocations: 1.665 MB / 426.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001525/0.3453, allocations: 0.6238 MB / 427.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004573/0.3499, allocations: 3.35 MB / 430.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003286/0.3532, allocations: 2.575 MB / 433.4 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002656/0.3559, allocations: 1.234 MB / 434.7 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002621/0.3585, allocations: 1.662 MB / 436.3 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008213/0.3593, allocations: 256 kB / 436.6 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002535/0.3619, allocations: 1.022 MB / 437.6 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001863/0.3638, allocations: 1.555 MB / 439.2 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002754/0.3665, allocations: 1.817 MB / 441 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006355/0.3729, allocations: 5.77 MB / 446.8 MB, free: 11.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3729, allocations: 4 kB / 446.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3729, allocations: 0 / 446.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002336/0.3732, allocations: 0 / 446.8 MB, free: 11.91 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.007984/0.3812, allocations: 3.999 MB / 450.8 MB, free: 7.848 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.3812, allocations: 12.03 kB / 450.8 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005624/0.3868, allocations: 1.766 MB / 452.5 MB, free: 6.062 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003422/0.3903, allocations: 1.92 MB / 454.5 MB, free: 4.098 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001268/0.3904, allocations: 188.8 kB / 454.6 MB, free: 3.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004651/0.3909, allocations: 255.8 kB / 454.9 MB, free: 3.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01418/0.4051, allocations: 8.443 MB / 463.3 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001415/0.4053, allocations: 35.66 kB / 463.4 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007405/0.406, allocations: 135.8 kB / 463.5 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002738/0.4088, allocations: 1.695 MB / 465.2 MB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01299/0.4218, allocations: 7.106 MB / 472.3 MB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04007/0.4619, allocations: 34.02 MB / 0.4945 GB, free: 14.55 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007431/0.4694, allocations: 3.294 MB / 0.4977 GB, free: 11.11 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002096/0.4715, allocations: 1.466 MB / 0.4991 GB, free: 9.633 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006935/0.4785, allocations: 4.449 MB / 0.5034 GB, free: 4.957 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.014e-05/0.4785, allocations: 51.06 kB / 0.5035 GB, free: 4.898 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 4.228e-06/0.4786, allocations: 0 / 0.5035 GB, free: 4.898 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.0281/0.5067, allocations: 11.54 MB / 0.5148 GB, free: 9.207 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.031e-05/0.5068, allocations: 141.1 kB / 0.5149 GB, free: 9.039 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005631/0.5124, allocations: 3.717 MB / 0.5185 GB, free: 5.328 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001585/0.5126, allocations: 41.7 kB / 0.5186 GB, free: 5.281 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001827/0.5144, allocations: 2.74 MB / 0.5212 GB, free: 2.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005449/0.515, allocations: 0.5209 MB / 0.5218 GB, free: 1.973 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001578/0.5166, allocations: 1.075 MB / 0.5228 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.367e-05/0.5167, allocations: 305.1 kB / 0.5231 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002482/0.5192, allocations: 1.713 MB / 0.5248 GB, free: 14.87 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004606/0.5238, allocations: 5.128 MB / 0.5298 GB, free: 8.008 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2111/0.7349, allocations: 7.423 MB / 0.537 GB, free: 119.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001264/0.735, allocations: 38.53 kB / 0.5371 GB, free: 119.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01094/0.746, allocations: 6.742 MB / 0.5436 GB, free: 117.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.847e-05/0.7461, allocations: 57.06 kB / 0.5437 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.5e-05/0.7462, allocations: 122.3 kB / 0.5438 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006081/0.7468, allocations: 323.8 kB / 0.5441 GB, free: 117.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003031/0.7498, allocations: 1.243 MB / 0.5453 GB, free: 117.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002221/0.7521, allocations: 2.498 MB / 0.5478 GB, free: 115.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003683/0.7558, allocations: 285.2 kB / 0.548 GB, free: 115.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004364/0.7562, allocations: 334.2 kB / 0.5484 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.002452/0.7587, allocations: 1.789 MB / 0.5501 GB, free: 114.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004709/0.7592, allocations: 307.8 kB / 0.5504 GB, free: 114.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003847/0.763, allocations: 2.374 MB / 0.5527 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.911e-05/0.7631, allocations: 11.81 kB / 0.5527 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.7631, allocations: 3.969 kB / 0.5527 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/0.7631, allocations: 15.53 kB / 0.5528 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008345/0.7714, allocations: 5.906 MB / 0.5585 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.7715, allocations: 11.88 kB / 0.5585 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007248/0.7722, allocations: 179.7 kB / 0.5587 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001828/0.774, allocations: 0.7133 MB / 0.5594 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.022e-05/0.7741, allocations: 23.98 kB / 0.5594 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00444/0.7786, allocations: 4.813 MB / 0.5641 GB, free: 104.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.686e-06/0.7786, allocations: 7.766 kB / 0.5641 GB, free: 104.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005201/0.7838, allocations: 4.335 MB / 0.5684 GB, free: 100.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006192/0.7844, allocations: 357 kB / 0.5687 GB, free: 99.86 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002533/0.7847, allocations: 24.06 kB / 0.5687 GB, free: 99.83 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009574/0.7857, allocations: 71.84 kB / 0.5688 GB, free: 99.76 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.7858, allocations: 72.5 kB / 0.5689 GB, free: 99.69 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.013e-05/0.7859, allocations: 28 kB / 0.5689 GB, free: 99.66 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002678/0.7886, allocations: 2.319 MB / 0.5712 GB, free: 97.36 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7886, allocations: 0 / 0.5712 GB, free: 97.36 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003593/0.7922, allocations: 0.8032 MB / 0.5719 GB, free: 96.56 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.0002998/0.7925, allocations: 153.7 kB / 0.5721 GB, free: 96.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004568/0.7971, allocations: 4.059 MB / 0.5761 GB, free: 92.37 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.7971, allocations: 0 / 0.5761 GB, free: 92.37 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.7983, allocations: 1.122 MB / 0.5771 GB, free: 91.23 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001726/0.8, allocations: 382.8 kB / 0.5775 GB, free: 90.86 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008293/0.8083, allocations: 7.26 MB / 0.5846 GB, free: 83.58 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001949/0.8103, allocations: 2.785 MB / 0.5873 GB, free: 80.77 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002862/0.8131, allocations: 1.656 MB / 0.5889 GB, free: 79.11 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000459/0.8136, allocations: 207.4 kB / 0.5891 GB, free: 78.91 MB / 462.1 MB Notification: Performance of SimCode: time 6.71e-07/0.8136, allocations: 0 / 0.5891 GB, free: 78.91 MB / 462.1 MB Notification: Performance of Templates: time 0.04244/0.8561, allocations: 27.76 MB / 0.6162 GB, free: 51.34 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