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.00123/0.00123, allocations: 104.3 kB / 17.73 MB, free: 5.238 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.001225/0.001226, allocations: 187.1 kB / 18.66 MB, free: 4.312 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.524/1.524, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001138/0.001138, allocations: 59.91 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08897/0.09012, allocations: 46.61 MB / 375.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.2203/0.3105, allocations: 10.23 MB / 385.4 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008753/0.3193, allocations: 3.79 MB / 389.2 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002852/0.3222, allocations: 55 kB / 389.2 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005732/0.328, allocations: 1.947 MB / 391.2 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008224/0.3363, allocations: 1.698 MB / 392.9 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002751/0.339, allocations: 0.6102 MB / 393.5 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008032/0.3471, allocations: 3.34 MB / 396.8 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006332/0.3535, allocations: 2.588 MB / 399.4 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003749/0.3572, allocations: 1.244 MB / 400.7 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004316/0.3616, allocations: 1.68 MB / 402.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001429/0.3631, allocations: 253.1 kB / 402.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004172/0.3673, allocations: 1.026 MB / 403.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004081/0.3714, allocations: 1.582 MB / 405.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006426/0.3778, allocations: 1.835 MB / 407 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01371/0.3916, allocations: 5.823 MB / 412.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.3916, allocations: 0 / 412.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3917, allocations: 0 / 412.8 MB, free: 9.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001926/0.3919, allocations: 0 / 412.8 MB, free: 9.121 MB / 334.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.01203/0.4039, allocations: 4.025 MB / 416.9 MB, free: 5.648 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.152e-05/0.404, allocations: 15.89 kB / 416.9 MB, free: 5.633 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01022/0.4142, allocations: 1.77 MB / 418.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005454/0.4197, allocations: 2.006 MB / 420.7 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000169/0.4199, allocations: 192.8 kB / 420.9 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009768/0.4209, allocations: 255.8 kB / 421.1 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0159/0.4368, allocations: 8.427 MB / 429.5 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000163/0.437, allocations: 39.59 kB / 429.6 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001055/0.4381, allocations: 123.9 kB / 429.7 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00314/0.4413, allocations: 1.695 MB / 431.4 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01621/0.4575, allocations: 7.102 MB / 438.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0449/0.5024, allocations: 34.01 MB / 472.5 MB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007684/0.5102, allocations: 3.3 MB / 475.8 MB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001961/0.5122, allocations: 1.466 MB / 477.3 MB, free: 7.355 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006811/0.519, allocations: 4.354 MB / 481.6 MB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.519, allocations: 51 kB / 481.7 MB, free: 2.734 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 3.957e-06/0.5191, allocations: 0 / 481.7 MB, free: 2.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.03102/0.5501, allocations: 11.52 MB / 493.2 MB, free: 7.062 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.887e-05/0.5502, allocations: 141.2 kB / 493.3 MB, free: 6.895 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004981/0.5552, allocations: 3.729 MB / 497.1 MB, free: 3.172 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002607/0.5555, allocations: 49.7 kB / 497.1 MB, free: 3.117 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001918/0.5574, allocations: 2.74 MB / 499.8 MB, free: 344 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006859/0.5581, allocations: 0.5247 MB / 0.4886 GB, free: 15.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001336/0.5594, allocations: 1.079 MB / 0.4897 GB, free: 14.71 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.5596, allocations: 309 kB / 0.49 GB, free: 14.41 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002405/0.562, allocations: 1.705 MB / 0.4917 GB, free: 12.7 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004622/0.5666, allocations: 5.127 MB / 0.4967 GB, free: 5.84 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008293/0.5749, allocations: 7.42 MB / 0.5039 GB, free: 12.71 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.969e-05/0.5751, allocations: 36 kB / 0.5039 GB, free: 12.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.0117/0.5868, allocations: 6.723 MB / 0.5105 GB, free: 5.945 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001032/0.5869, allocations: 56 kB / 0.5106 GB, free: 5.891 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001714/0.5871, allocations: 120 kB / 0.5107 GB, free: 5.773 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006688/0.5877, allocations: 321.3 kB / 0.511 GB, free: 5.457 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004038/0.5918, allocations: 1.252 MB / 0.5122 GB, free: 4.203 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002668/0.5945, allocations: 2.493 MB / 0.5146 GB, free: 1.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003801/0.5983, allocations: 291.7 kB / 0.5149 GB, free: 1.285 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007088/0.599, allocations: 336 kB / 0.5152 GB, free: 0.957 MB / 446.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.003033/0.6021, allocations: 1.787 MB / 0.517 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000605/0.6027, allocations: 308 kB / 0.5173 GB, free: 14.85 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004765/0.6075, allocations: 2.367 MB / 0.5196 GB, free: 12.47 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.669e-05/0.6075, allocations: 16 kB / 0.5196 GB, free: 12.45 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.6075, allocations: 4 kB / 0.5196 GB, free: 12.45 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.6076, allocations: 7.969 kB / 0.5196 GB, free: 12.44 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/0.6186, allocations: 5.929 MB / 0.5254 GB, free: 6.441 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.311e-05/0.6187, allocations: 0 / 0.5254 GB, free: 6.441 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008375/0.6195, allocations: 171.7 kB / 0.5256 GB, free: 6.273 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002214/0.6217, allocations: 0.7147 MB / 0.5263 GB, free: 5.555 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.6219, allocations: 24 kB / 0.5263 GB, free: 5.531 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00638/0.6283, allocations: 4.808 MB / 0.531 GB, free: 0.5781 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.6283, allocations: 3.938 kB / 0.531 GB, free: 0.5742 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006895/0.6352, allocations: 4.318 MB / 0.5352 GB, free: 12.22 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001337/0.6366, allocations: 0.5244 MB / 0.5357 GB, free: 11.68 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003973/0.637, allocations: 31.88 kB / 0.5357 GB, free: 11.64 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.6381, allocations: 63.91 kB / 0.5358 GB, free: 11.58 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002253/0.6383, allocations: 72.56 kB / 0.5359 GB, free: 11.51 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001106/0.6384, allocations: 39.98 kB / 0.5359 GB, free: 11.47 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004016/0.6424, allocations: 2.327 MB / 0.5382 GB, free: 9.16 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6424, allocations: 0 / 0.5382 GB, free: 9.16 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004386/0.6468, allocations: 0.8242 MB / 0.539 GB, free: 8.336 MB / 478.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.0003779/0.6472, allocations: 147 kB / 0.5391 GB, free: 8.184 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00637/0.6536, allocations: 4.049 MB / 0.5431 GB, free: 4.145 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.6536, allocations: 0 / 0.5431 GB, free: 4.145 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001605/0.6553, allocations: 1.115 MB / 0.5442 GB, free: 3.02 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002385/0.6577, allocations: 396.6 kB / 0.5446 GB, free: 2.629 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2018/0.8594, allocations: 7.264 MB / 0.5516 GB, free: 150.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00328/0.8628, allocations: 2.79 MB / 0.5544 GB, free: 149.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004091/0.8669, allocations: 1.654 MB / 0.556 GB, free: 149.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000705/0.8676, allocations: 209.4 kB / 0.5562 GB, free: 149.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.022e-06/0.8676, allocations: 0 / 0.5562 GB, free: 149.6 MB / 478.1 MB Notification: Performance of Templates: time 0.05258/0.9202, allocations: 27.94 MB / 0.5835 GB, free: 136.4 MB / 478.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches