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/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 3.2.3+maint.om/package.mo", uses=false) 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 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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000836/0.0008361, allocations: 94.91 kB / 17.3 MB, free: 6.391 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.0009672/0.0009673, allocations: 171.9 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005117/0.0005119, allocations: 8 kB / 281.4 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09585/0.09638, allocations: 47.57 MB / 329 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.0295/0.1259, allocations: 33.69 MB / 362.6 MB, free: 1.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01539/0.1414, allocations: 7.848 MB / 370.5 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005835/0.1472, allocations: 143.6 kB / 370.6 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00132/0.1486, allocations: 374.2 kB / 371 MB, free: 9.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004505/0.1531, allocations: 1.549 MB / 372.6 MB, free: 7.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001264/0.1544, allocations: 0.5577 MB / 373.1 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00558/0.16, allocations: 4.754 MB / 377.9 MB, free: 2.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1886/0.3486, allocations: 3.284 MB / 381.1 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001949/0.3506, allocations: 0.9555 MB / 382.1 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002971/0.3536, allocations: 1.612 MB / 383.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005198/0.3542, allocations: 115.6 kB / 383.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002072/0.3562, allocations: 0.9489 MB / 384.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001898/0.3582, allocations: 1.427 MB / 386.2 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002089/0.3603, allocations: 1.679 MB / 387.9 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005741/0.366, allocations: 5.421 MB / 393.3 MB, free: 9.082 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.366, allocations: 4.219 kB / 393.3 MB, free: 9.082 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.366, allocations: 0 / 393.3 MB, free: 9.082 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001414/0.3662, allocations: 2.625 kB / 393.3 MB, free: 9.082 MB / 318.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.006388/0.3726, allocations: 3.306 MB / 396.6 MB, free: 7.426 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.3726, allocations: 8.875 kB / 396.6 MB, free: 7.426 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006685/0.3793, allocations: 1.822 MB / 398.4 MB, free: 6.691 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003999/0.3834, allocations: 1.969 MB / 400.4 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001523/0.3835, allocations: 194.5 kB / 400.6 MB, free: 5.918 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006336/0.3842, allocations: 255.9 kB / 400.9 MB, free: 5.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01255/0.3967, allocations: 8.434 MB / 409.3 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-05/0.3969, allocations: 41.06 kB / 409.3 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003422/0.3972, allocations: 132.4 kB / 409.5 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002407/0.3996, allocations: 1.692 MB / 411.2 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01227/0.4119, allocations: 7.111 MB / 418.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04173/0.4537, allocations: 34.15 MB / 452.4 MB, free: 11.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007413/0.4612, allocations: 3.281 MB / 455.7 MB, free: 8.336 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001923/0.4631, allocations: 1.466 MB / 457.2 MB, free: 6.859 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006876/0.47, allocations: 4.368 MB / 461.5 MB, free: 2.312 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.714e-05/0.4701, allocations: 46.41 kB / 461.6 MB, free: 2.262 MB / 366.1 MB Notification: Performance of pre-optimization done (n=121): time 3.937e-06/0.4701, allocations: 0 / 461.6 MB, free: 2.262 MB / 366.1 MB Notification: Performance of matching and sorting (n=129): time 0.03299/0.5031, allocations: 11.51 MB / 473.1 MB, free: 6.633 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.33e-05/0.5032, allocations: 144.2 kB / 473.2 MB, free: 6.465 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006474/0.5097, allocations: 3.725 MB / 476.9 MB, free: 2.746 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003133/0.51, allocations: 41.7 kB / 477 MB, free: 2.699 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00216/0.5122, allocations: 2.747 MB / 479.7 MB, free: 15.95 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006862/0.5129, allocations: 0.5199 MB / 480.3 MB, free: 15.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005664/0.5135, allocations: 469.7 kB / 480.7 MB, free: 14.97 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.5136, allocations: 305.1 kB / 481 MB, free: 14.67 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002511/0.5161, allocations: 1.701 MB / 482.7 MB, free: 12.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004719/0.5208, allocations: 5.129 MB / 487.8 MB, free: 6.164 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0082/0.5291, allocations: 7.414 MB / 495.3 MB, free: 13.54 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.597e-05/0.5292, allocations: 32 kB / 495.3 MB, free: 13.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01342/0.5426, allocations: 6.731 MB / 0.4903 GB, free: 7.492 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001209/0.5428, allocations: 59.94 kB / 0.4903 GB, free: 7.434 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001753/0.543, allocations: 124.8 kB / 0.4904 GB, free: 7.312 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006721/0.5436, allocations: 324.7 kB / 0.4907 GB, free: 6.992 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004286/0.5479, allocations: 1.245 MB / 0.492 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002647/0.5506, allocations: 2.284 MB / 0.4942 GB, free: 3.496 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004702/0.5553, allocations: 297.7 kB / 0.4945 GB, free: 3.207 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001213/0.5566, allocations: 336 kB / 0.4948 GB, free: 2.879 MB / 414.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.005234/0.5618, allocations: 1.779 MB / 0.4965 GB, free: 1.086 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009288/0.5627, allocations: 308 kB / 0.4968 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005696/0.5685, allocations: 2.367 MB / 0.4991 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.094e-05/0.5685, allocations: 22.52 kB / 0.4992 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-05/0.5686, allocations: 4 kB / 0.4992 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.5686, allocations: 3.984 kB / 0.4992 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01487/0.5835, allocations: 5.934 MB / 0.505 GB, free: 8.395 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.515e-05/0.5835, allocations: 4 kB / 0.505 GB, free: 8.391 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008587/0.5844, allocations: 171.8 kB / 0.5051 GB, free: 8.223 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002292/0.5867, allocations: 0.7077 MB / 0.5058 GB, free: 7.512 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001579/0.5869, allocations: 24 kB / 0.5058 GB, free: 7.488 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005844/0.5927, allocations: 4.468 MB / 0.5102 GB, free: 2.891 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.5928, allocations: 7.938 kB / 0.5102 GB, free: 2.883 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006985/0.5998, allocations: 4.32 MB / 0.5144 GB, free: 14.53 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001383/0.6012, allocations: 0.5359 MB / 0.515 GB, free: 13.97 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006845/0.6019, allocations: 20.06 kB / 0.515 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/0.6034, allocations: 68.02 kB / 0.515 GB, free: 13.89 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002207/0.6036, allocations: 72.44 kB / 0.5151 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.6037, allocations: 36 kB / 0.5151 GB, free: 13.78 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004204/0.608, allocations: 2.331 MB / 0.5174 GB, free: 11.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.608, allocations: 0 / 0.5174 GB, free: 11.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004806/0.6128, allocations: 0.8194 MB / 0.5182 GB, free: 10.65 MB / 446.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.000434/0.6132, allocations: 156.6 kB / 0.5184 GB, free: 10.48 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006969/0.6202, allocations: 4.028 MB / 0.5223 GB, free: 6.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.6202, allocations: 0 / 0.5223 GB, free: 6.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001741/0.622, allocations: 1.112 MB / 0.5234 GB, free: 5.352 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00392/0.6259, allocations: 373.1 kB / 0.5237 GB, free: 4.984 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2188/0.8447, allocations: 9.031 MB / 0.5326 GB, free: 123.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005587/0.8504, allocations: 2.793 MB / 0.5353 GB, free: 122.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006122/0.8565, allocations: 1.653 MB / 0.5369 GB, free: 122.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008501/0.8574, allocations: 209.7 kB / 0.5371 GB, free: 122.4 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.8574, allocations: 0 / 0.5371 GB, free: 122.4 MB / 446.1 MB Notification: Performance of Templates: time 0.06058/0.918, allocations: 29.45 MB / 0.5659 GB, free: 108.5 MB / 446.1 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