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.00108/0.00108, allocations: 103.4 kB / 17.16 MB, free: 6.32 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.001138/0.001138, allocations: 190 kB / 18.07 MB, free: 5.414 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.319/1.319, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001121/0.001121, allocations: 51.94 kB / 280 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08577/0.0869, allocations: 46.62 MB / 326.6 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.02905/0.116, allocations: 34.7 MB / 361.3 MB, free: 2.059 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01771/0.1337, allocations: 7.902 MB / 369.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006133/0.14, allocations: 147.6 kB / 369.3 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003802/0.1438, allocations: 1.921 MB / 371.3 MB, free: 8.062 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004347/0.1482, allocations: 1.546 MB / 372.8 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001394/0.1496, allocations: 0.5538 MB / 373.4 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004895/0.1545, allocations: 4.765 MB / 378.1 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1953/0.3499, allocations: 2.532 MB / 380.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002797/0.3527, allocations: 1.099 MB / 381.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002944/0.3557, allocations: 1.808 MB / 383.6 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000801/0.3565, allocations: 175.2 kB / 383.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002794/0.3593, allocations: 1.004 MB / 384.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001873/0.3612, allocations: 1.512 MB / 386.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002338/0.3635, allocations: 1.773 MB / 388 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008287/0.3718, allocations: 5.568 MB / 393.6 MB, free: 8.738 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.3719, allocations: 0 / 393.6 MB, free: 8.738 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.3719, allocations: 0 / 393.6 MB, free: 8.738 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002123/0.3721, allocations: 7.094 kB / 393.6 MB, free: 8.734 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.01132/0.3834, allocations: 4.005 MB / 397.6 MB, free: 7.035 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.111e-05/0.3835, allocations: 9.25 kB / 397.6 MB, free: 7.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006616/0.3901, allocations: 1.78 MB / 399.4 MB, free: 6.789 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004744/0.3949, allocations: 1.962 MB / 401.4 MB, free: 6.094 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001975/0.3952, allocations: 199 kB / 401.5 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001157/0.3963, allocations: 254.3 kB / 401.8 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01449/0.4108, allocations: 8.432 MB / 410.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001223/0.411, allocations: 44.09 kB / 410.3 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003896/0.4114, allocations: 124.1 kB / 410.4 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002521/0.4139, allocations: 1.699 MB / 412.1 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01462/0.4286, allocations: 7.099 MB / 419.2 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04944/0.478, allocations: 34.15 MB / 453.3 MB, free: 9.566 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007896/0.486, allocations: 3.286 MB / 456.6 MB, free: 6.137 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002577/0.4886, allocations: 1.468 MB / 458.1 MB, free: 4.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008294/0.4969, allocations: 4.372 MB / 462.5 MB, free: 108 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.861e-05/0.497, allocations: 46.69 kB / 462.5 MB, free: 56 kB / 366.1 MB Notification: Performance of pre-optimization done (n=121): time 5.571e-06/0.497, allocations: 0 / 462.5 MB, free: 56 kB / 366.1 MB Notification: Performance of matching and sorting (n=129): time 0.03336/0.5304, allocations: 11.54 MB / 474 MB, free: 4.406 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.286e-05/0.5305, allocations: 141.2 kB / 474.2 MB, free: 4.238 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007133/0.5377, allocations: 3.733 MB / 477.9 MB, free: 0.5156 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003573/0.5381, allocations: 41.7 kB / 478 MB, free: 480 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002138/0.5403, allocations: 2.752 MB / 480.7 MB, free: 13.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007279/0.541, allocations: 0.5245 MB / 481.2 MB, free: 13.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00212/0.5431, allocations: 1.079 MB / 482.3 MB, free: 12.13 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.888e-05/0.5432, allocations: 305.1 kB / 482.6 MB, free: 11.83 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002828/0.5461, allocations: 1.712 MB / 484.3 MB, free: 10.12 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004885/0.551, allocations: 5.123 MB / 489.4 MB, free: 3.324 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008499/0.5595, allocations: 7.419 MB / 496.9 MB, free: 10.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001049/0.5596, allocations: 38.91 kB / 496.9 MB, free: 10.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01298/0.5726, allocations: 6.714 MB / 0.4918 GB, free: 4.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001358/0.5728, allocations: 59.94 kB / 0.4919 GB, free: 4.602 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002039/0.573, allocations: 124.9 kB / 0.492 GB, free: 4.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006907/0.5737, allocations: 327.8 kB / 0.4923 GB, free: 4.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004257/0.578, allocations: 1.242 MB / 0.4935 GB, free: 3.027 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002795/0.5808, allocations: 2.285 MB / 0.4957 GB, free: 0.668 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004786/0.5856, allocations: 295.6 kB / 0.496 GB, free: 388 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001006/0.5866, allocations: 328 kB / 0.4963 GB, free: 60 kB / 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.004054/0.5907, allocations: 1.784 MB / 0.4981 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008422/0.5916, allocations: 308 kB / 0.4984 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005278/0.5968, allocations: 2.37 MB / 0.5007 GB, free: 11.67 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.424e-05/0.5969, allocations: 19.94 kB / 0.5007 GB, free: 11.65 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/0.5969, allocations: 4 kB / 0.5007 GB, free: 11.65 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.5969, allocations: 3.984 kB / 0.5007 GB, free: 11.64 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01395/0.6109, allocations: 5.928 MB / 0.5065 GB, free: 5.676 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.594e-05/0.611, allocations: 3.938 kB / 0.5065 GB, free: 5.672 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009177/0.6119, allocations: 171.8 kB / 0.5067 GB, free: 5.504 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002288/0.6142, allocations: 0.7147 MB / 0.5074 GB, free: 4.785 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001759/0.6144, allocations: 16 kB / 0.5074 GB, free: 4.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005987/0.6204, allocations: 4.464 MB / 0.5118 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.75e-06/0.6204, allocations: 7.969 kB / 0.5118 GB, free: 176 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00711/0.6275, allocations: 4.321 MB / 0.516 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001516/0.6291, allocations: 0.5242 MB / 0.5165 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001056/0.6301, allocations: 16 kB / 0.5165 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001518/0.6317, allocations: 71.91 kB / 0.5166 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002191/0.6319, allocations: 68.5 kB / 0.5166 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/0.632, allocations: 39.95 kB / 0.5167 GB, free: 11.08 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004624/0.6366, allocations: 2.342 MB / 0.519 GB, free: 8.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6367, allocations: 0 / 0.519 GB, free: 8.75 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005092/0.6418, allocations: 0.8194 MB / 0.5198 GB, free: 7.934 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.0004835/0.6423, allocations: 154.2 kB / 0.5199 GB, free: 7.773 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00681/0.6491, allocations: 4.026 MB / 0.5238 GB, free: 3.773 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.6491, allocations: 0 / 0.5238 GB, free: 3.773 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001664/0.6508, allocations: 1.111 MB / 0.5249 GB, free: 2.645 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003729/0.6545, allocations: 369.5 kB / 0.5253 GB, free: 2.281 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01735/0.6719, allocations: 8.968 MB / 0.534 GB, free: 9.281 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004442/0.6764, allocations: 2.781 MB / 0.5368 GB, free: 6.473 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004668/0.6811, allocations: 1.652 MB / 0.5384 GB, free: 4.816 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008066/0.6819, allocations: 215.4 kB / 0.5386 GB, free: 4.605 MB / 462.1 MB Notification: Performance of SimCode: time 1.343e-06/0.6819, allocations: 0 / 0.5386 GB, free: 4.605 MB / 462.1 MB Notification: Performance of Templates: time 0.2643/0.9463, allocations: 29.85 MB / 0.5677 GB, free: 169.9 MB / 462.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