Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009989/0.0009988, allocations: 178.9 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 225.7 MB / 243.2 MB, free: 8.473 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007692/0.0007692, allocations: 90.36 kB / 294.4 MB, free: 9.52 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002996/0.0002998, allocations: 7.938 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1964/0.1967, allocations: 50.41 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01982/0.2166, allocations: 31.48 MB / 436.1 MB, free: 15.77 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0166/0.2332, allocations: 10.64 MB / 446.7 MB, free: 4.414 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005463/0.2387, allocations: 143.6 kB / 446.8 MB, free: 4.273 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001106/0.2399, allocations: 374.1 kB / 447.2 MB, free: 3.906 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003498/0.2434, allocations: 1.557 MB / 448.8 MB, free: 2.344 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001229/0.2446, allocations: 0.5539 MB / 449.3 MB, free: 1.789 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004924/0.2496, allocations: 4.738 MB / 454.1 MB, free: 13.04 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004412/0.254, allocations: 3.803 MB / 457.9 MB, free: 9.035 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001555/0.2556, allocations: 1.054 MB / 458.9 MB, free: 7.977 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001865/0.2575, allocations: 1.6 MB / 460.5 MB, free: 6.371 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000296/0.2578, allocations: 120 kB / 460.6 MB, free: 6.254 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001574/0.2594, allocations: 0.9242 MB / 461.6 MB, free: 5.328 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001283/0.2607, allocations: 1.425 MB / 463 MB, free: 3.898 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00137/0.262, allocations: 1.67 MB / 464.7 MB, free: 2.211 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004697/0.2667, allocations: 5.42 MB / 470.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2668, allocations: 3.938 kB / 470.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2668, allocations: 0 / 470.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.047e-05/0.2669, allocations: 3.938 kB / 470.1 MB, free: 12.77 MB / 346.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.005069/0.272, allocations: 3.305 MB / 473.4 MB, free: 9.395 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.272, allocations: 8.031 kB / 473.4 MB, free: 9.387 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005343/0.2774, allocations: 1.829 MB / 475.2 MB, free: 7.551 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003093/0.2805, allocations: 1.908 MB / 477.1 MB, free: 5.582 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001659/0.2806, allocations: 192.8 kB / 477.3 MB, free: 5.391 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004251/0.2811, allocations: 255.8 kB / 477.6 MB, free: 5.141 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01275/0.2938, allocations: 8.419 MB / 486 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.635e-05/0.294, allocations: 39.59 kB / 486 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003085/0.2943, allocations: 127.9 kB / 486.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002506/0.2968, allocations: 1.692 MB / 487.8 MB, free: 10.19 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.013/0.3098, allocations: 7.075 MB / 494.9 MB, free: 3.109 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1995/0.5094, allocations: 34.15 MB / 0.5167 GB, free: 73.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006272/0.5157, allocations: 3.259 MB / 0.5198 GB, free: 72.56 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001354/0.5171, allocations: 1.462 MB / 0.5213 GB, free: 71.95 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004722/0.5218, allocations: 4.348 MB / 0.5255 GB, free: 69.26 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.5219, allocations: 46.94 kB / 0.5256 GB, free: 69.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=121): time 3.687e-06/0.5219, allocations: 3.531 kB / 0.5256 GB, free: 69.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=129): time 0.0221/0.544, allocations: 11.48 MB / 0.5368 GB, free: 61.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.5441, allocations: 147.5 kB / 0.5369 GB, free: 61.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003404/0.5475, allocations: 3.686 MB / 0.5405 GB, free: 57.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.519e-05/0.5476, allocations: 41.7 kB / 0.5406 GB, free: 57.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001012/0.5486, allocations: 2.748 MB / 0.5432 GB, free: 54.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002867/0.5489, allocations: 0.5155 MB / 0.5438 GB, free: 54.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.5491, allocations: 104.5 kB / 0.5439 GB, free: 53.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.5493, allocations: 0.537 MB / 0.5444 GB, free: 53.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001725/0.551, allocations: 1.681 MB / 0.546 GB, free: 51.72 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002671/0.5537, allocations: 5.113 MB / 0.551 GB, free: 44.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005307/0.559, allocations: 7.38 MB / 0.5582 GB, free: 35.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-05/0.5591, allocations: 36 kB / 0.5583 GB, free: 35.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.007789/0.5669, allocations: 6.692 MB / 0.5648 GB, free: 29.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.322e-05/0.567, allocations: 56 kB / 0.5648 GB, free: 29.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.642e-05/0.567, allocations: 124 kB / 0.565 GB, free: 29.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004821/0.5675, allocations: 321 kB / 0.5653 GB, free: 28.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002942/0.5705, allocations: 1.244 MB / 0.5665 GB, free: 27.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001694/0.5722, allocations: 2.287 MB / 0.5687 GB, free: 25.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003157/0.5754, allocations: 288.1 kB / 0.569 GB, free: 24.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003619/0.5757, allocations: 336.5 kB / 0.5693 GB, free: 24.42 MB / 378.7 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.001994/0.5777, allocations: 1.792 MB / 0.5711 GB, free: 22.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003861/0.5781, allocations: 311.9 kB / 0.5714 GB, free: 22.31 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003596/0.5817, allocations: 2.359 MB / 0.5737 GB, free: 19.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.881e-05/0.5818, allocations: 12.7 kB / 0.5737 GB, free: 19.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.5818, allocations: 4 kB / 0.5737 GB, free: 19.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.5818, allocations: 7.984 kB / 0.5737 GB, free: 19.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01214/0.5939, allocations: 5.925 MB / 0.5795 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.743e-05/0.594, allocations: 7.984 kB / 0.5795 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001464/0.5955, allocations: 169 kB / 0.5796 GB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003347/0.5989, allocations: 0.7185 MB / 0.5803 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001897/0.5991, allocations: 23.98 kB / 0.5804 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006936/0.606, allocations: 4.457 MB / 0.5847 GB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.6061, allocations: 12.02 kB / 0.5847 GB, free: 8.426 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008365/0.6144, allocations: 4.312 MB / 0.5889 GB, free: 4.078 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009325/0.6154, allocations: 368.9 kB / 0.5893 GB, free: 3.695 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004636/0.6159, allocations: 23.98 kB / 0.5893 GB, free: 3.672 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001553/0.6174, allocations: 59.92 kB / 0.5894 GB, free: 3.613 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002735/0.6177, allocations: 76.56 kB / 0.5894 GB, free: 3.539 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.6179, allocations: 35.98 kB / 0.5895 GB, free: 3.504 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004312/0.6222, allocations: 2.291 MB / 0.5917 GB, free: 1.227 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.6222, allocations: 0 / 0.5917 GB, free: 1.227 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005847/0.6281, allocations: 0.8192 MB / 0.5925 GB, free: 424 kB / 378.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 () * 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.0003909/0.6285, allocations: 168.7 kB / 0.5927 GB, free: 252 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008495/0.637, allocations: 4.003 MB / 0.5966 GB, free: 12.25 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.637, allocations: 4 kB / 0.5966 GB, free: 12.25 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002134/0.6392, allocations: 1.093 MB / 0.5977 GB, free: 11.15 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003329/0.6425, allocations: 371.4 kB / 0.598 GB, free: 10.79 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01666/0.6592, allocations: 9.012 MB / 0.6068 GB, free: 1.746 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003925/0.6632, allocations: 2.791 MB / 0.6095 GB, free: 14.94 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005819/0.669, allocations: 1.664 MB / 0.6112 GB, free: 13.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008578/0.6699, allocations: 207.4 kB / 0.6114 GB, free: 13.07 MB / 410.7 MB Notification: Performance of SimCode: time 7.62e-07/0.6699, allocations: 0 / 0.6114 GB, free: 13.07 MB / 410.7 MB Notification: Performance of Templates: time 0.07686/0.7468, allocations: 29.45 MB / 0.6401 GB, free: 15.75 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches