Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009156/0.0009157, allocations: 199.1 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000784/0.0007841, allocations: 99.88 kB / 299.9 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002188/0.0002189, allocations: 4 kB / 360.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2271, allocations: 51.42 MB / 412.1 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.02206/0.2492, allocations: 31.49 MB / 443.5 MB, free: 10.34 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01616/0.2654, allocations: 11.05 MB / 454.6 MB, free: 14.48 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005971/0.2714, allocations: 147.6 kB / 454.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001452/0.2729, allocations: 366.2 kB / 455.1 MB, free: 13.98 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004396/0.2773, allocations: 1.546 MB / 456.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00154/0.2788, allocations: 0.5538 MB / 457.2 MB, free: 11.87 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006742/0.2856, allocations: 4.808 MB / 462 MB, free: 7.051 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005164/0.2908, allocations: 3.791 MB / 465.8 MB, free: 3.059 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001992/0.2929, allocations: 1.062 MB / 466.9 MB, free: 1.992 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002327/0.2952, allocations: 1.592 MB / 468.4 MB, free: 404 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004249/0.2956, allocations: 119.9 kB / 468.6 MB, free: 284 kB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001827/0.2975, allocations: 0.9203 MB / 469.5 MB, free: 15.36 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00134/0.2988, allocations: 1.398 MB / 470.9 MB, free: 13.95 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001807/0.3007, allocations: 1.682 MB / 472.6 MB, free: 12.25 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006077/0.3067, allocations: 5.42 MB / 478 MB, free: 6.816 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3068, allocations: 0 / 478 MB, free: 6.816 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3068, allocations: 0 / 478 MB, free: 6.816 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001394/0.3069, allocations: 0 / 478 MB, free: 6.816 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.005938/0.3129, allocations: 3.313 MB / 481.3 MB, free: 3.438 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.313, allocations: 8.031 kB / 481.3 MB, free: 3.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005888/0.3188, allocations: 1.821 MB / 483.1 MB, free: 1.602 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004388/0.3233, allocations: 1.888 MB / 485 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001568/0.3234, allocations: 192.8 kB / 485.2 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005736/0.324, allocations: 255.8 kB / 485.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01337/0.3374, allocations: 8.415 MB / 493.9 MB, free: 6.133 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.551e-05/0.3376, allocations: 47.58 kB / 493.9 MB, free: 6.086 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003193/0.3379, allocations: 123.9 kB / 494 MB, free: 5.965 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002596/0.3405, allocations: 1.699 MB / 495.7 MB, free: 4.258 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01416/0.3547, allocations: 7.071 MB / 0.491 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2347/0.5894, allocations: 34.14 MB / 0.5244 GB, free: 68.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005922/0.5954, allocations: 3.266 MB / 0.5275 GB, free: 66.63 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001413/0.5968, allocations: 1.458 MB / 0.529 GB, free: 66.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004685/0.6015, allocations: 4.361 MB / 0.5332 GB, free: 62.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.6015, allocations: 44.16 kB / 0.5333 GB, free: 62.92 MB / 378.7 MB Notification: Performance of pre-optimization done (n=121): time 4.579e-06/0.6015, allocations: 3.984 kB / 0.5333 GB, free: 62.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=129): time 0.02233/0.6239, allocations: 11.49 MB / 0.5445 GB, free: 54.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/0.624, allocations: 145.2 kB / 0.5446 GB, free: 53.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003509/0.6275, allocations: 3.686 MB / 0.5482 GB, free: 50.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.6276, allocations: 45.7 kB / 0.5483 GB, free: 50.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009959/0.6286, allocations: 2.737 MB / 0.551 GB, free: 47.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002881/0.6289, allocations: 0.524 MB / 0.5515 GB, free: 46.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.6291, allocations: 104 kB / 0.5516 GB, free: 46.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.6293, allocations: 0.5292 MB / 0.5521 GB, free: 46.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001754/0.631, allocations: 1.689 MB / 0.5537 GB, free: 44.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002669/0.6337, allocations: 5.112 MB / 0.5587 GB, free: 37.74 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00504/0.6387, allocations: 7.39 MB / 0.5659 GB, free: 28.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-05/0.6388, allocations: 36 kB / 0.566 GB, free: 28.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.007584/0.6464, allocations: 6.681 MB / 0.5725 GB, free: 21.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.414e-05/0.6465, allocations: 57.03 kB / 0.5726 GB, free: 21.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.551e-05/0.6465, allocations: 120 kB / 0.5727 GB, free: 21.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004979/0.647, allocations: 321 kB / 0.573 GB, free: 21.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002874/0.6499, allocations: 1.248 MB / 0.5742 GB, free: 20.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/0.6517, allocations: 2.278 MB / 0.5764 GB, free: 17.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002717/0.6544, allocations: 291.5 kB / 0.5767 GB, free: 17.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002896/0.6547, allocations: 332 kB / 0.577 GB, free: 17.16 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.00182/0.6566, allocations: 1.8 MB / 0.5788 GB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003243/0.6569, allocations: 304 kB / 0.5791 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003627/0.6605, allocations: 2.366 MB / 0.5814 GB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.875e-05/0.6606, allocations: 17.17 kB / 0.5814 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.6606, allocations: 7.75 kB / 0.5814 GB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.6606, allocations: 7.922 kB / 0.5814 GB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008451/0.6691, allocations: 5.913 MB / 0.5872 GB, free: 6.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.6691, allocations: 0 / 0.5872 GB, free: 6.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007014/0.6698, allocations: 179.7 kB / 0.5873 GB, free: 6.504 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001845/0.6716, allocations: 0.7147 MB / 0.588 GB, free: 5.785 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.563e-05/0.6717, allocations: 23.98 kB / 0.5881 GB, free: 5.762 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004223/0.676, allocations: 4.468 MB / 0.5924 GB, free: 1.164 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.676, allocations: 8 kB / 0.5924 GB, free: 1.156 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005926/0.6819, allocations: 4.307 MB / 0.5966 GB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006613/0.6826, allocations: 372.8 kB / 0.597 GB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002952/0.6829, allocations: 23.98 kB / 0.597 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000969/0.6839, allocations: 63.92 kB / 0.5971 GB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.6841, allocations: 72.56 kB / 0.5972 GB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.97e-05/0.6842, allocations: 40.69 kB / 0.5972 GB, free: 12.24 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003072/0.6872, allocations: 2.288 MB / 0.5994 GB, free: 9.969 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6873, allocations: 0 / 0.5994 GB, free: 9.969 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003302/0.6906, allocations: 0.8198 MB / 0.6002 GB, free: 9.152 MB / 394.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.0003242/0.6909, allocations: 165.9 kB / 0.6004 GB, free: 8.992 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005623/0.6965, allocations: 4.007 MB / 0.6043 GB, free: 4.996 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.6965, allocations: 0 / 0.6043 GB, free: 4.996 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001439/0.698, allocations: 1.104 MB / 0.6054 GB, free: 3.879 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002375/0.7004, allocations: 370.2 kB / 0.6057 GB, free: 3.516 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/0.7116, allocations: 9.007 MB / 0.6145 GB, free: 10.47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00261/0.7142, allocations: 2.785 MB / 0.6172 GB, free: 7.664 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004057/0.7183, allocations: 1.668 MB / 0.6189 GB, free: 5.992 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005695/0.7189, allocations: 211.4 kB / 0.6191 GB, free: 5.785 MB / 410.7 MB Notification: Performance of SimCode: time 4.6e-07/0.7189, allocations: 0 / 0.6191 GB, free: 5.785 MB / 410.7 MB Notification: Performance of Templates: time 0.05494/0.7738, allocations: 29.45 MB / 0.6478 GB, free: 8.488 MB / 442.7 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","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches