Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 84.17 kB / 16.31 MB, free: 6.453 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.001409/0.001409, allocations: 176.3 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 223.3 MB / 241.2 MB, free: 14.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002616/0.0002616, allocations: 4 kB / 300.8 MB, free: 6.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0958/0.09607, allocations: 50.43 MB / 351.3 MB, free: 3.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.2136/0.3097, allocations: 31.36 MB / 382.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01784/0.3276, allocations: 7.434 MB / 390.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008367/0.336, allocations: 145.6 kB / 390.2 MB, free: 5.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007056/0.3431, allocations: 1.575 MB / 391.8 MB, free: 5.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01668/0.3599, allocations: 4.846 MB / 396.6 MB, free: 2.527 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002885/0.3628, allocations: 0.5042 MB / 397.1 MB, free: 2.203 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006357/0.3692, allocations: 3.779 MB / 400.9 MB, free: 68 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004399/0.3736, allocations: 2.952 MB / 403.9 MB, free: 14.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001753/0.3754, allocations: 1.043 MB / 404.9 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001924/0.3773, allocations: 1.592 MB / 406.5 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003099/0.3776, allocations: 115.1 kB / 406.6 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001634/0.3793, allocations: 0.807 MB / 407.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001246/0.3805, allocations: 1.399 MB / 408.8 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000734/0.3813, allocations: 0.6948 MB / 409.5 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00497/0.3863, allocations: 4.421 MB / 413.9 MB, free: 5.809 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.139e-05/0.3863, allocations: 8 kB / 413.9 MB, free: 5.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.3863, allocations: 4 kB / 413.9 MB, free: 5.797 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001823/0.3865, allocations: 0 / 413.9 MB, free: 5.797 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.006952/0.3935, allocations: 3.355 MB / 417.3 MB, free: 2.375 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.3935, allocations: 8.031 kB / 417.3 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006244/0.3998, allocations: 1.82 MB / 419.1 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004852/0.4047, allocations: 1.865 MB / 421 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001696/0.4049, allocations: 188.8 kB / 421.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005438/0.4054, allocations: 255.8 kB / 421.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01472/0.4201, allocations: 8.419 MB / 429.8 MB, free: 5.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001199/0.4203, allocations: 43.62 kB / 429.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000351/0.4207, allocations: 123.9 kB / 430 MB, free: 4.926 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002728/0.4234, allocations: 1.699 MB / 431.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01368/0.4371, allocations: 7.067 MB / 438.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0361/0.4733, allocations: 34.14 MB / 472.9 MB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006567/0.4799, allocations: 3.279 MB / 476.2 MB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001731/0.4816, allocations: 1.455 MB / 477.6 MB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005866/0.4875, allocations: 4.346 MB / 482 MB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.022e-05/0.4876, allocations: 55.06 kB / 482 MB, free: 15.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 3.707e-06/0.4876, allocations: 0 / 482 MB, free: 15.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.02485/0.5124, allocations: 11.47 MB / 493.5 MB, free: 3.875 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.743e-05/0.5125, allocations: 141.2 kB / 493.6 MB, free: 3.707 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00456/0.5171, allocations: 3.697 MB / 497.3 MB, free: 16 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001387/0.5173, allocations: 45.7 kB / 497.4 MB, free: 15.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001707/0.519, allocations: 2.748 MB / 0.4884 GB, free: 13.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004367/0.5194, allocations: 0.5171 MB / 0.4889 GB, free: 12.65 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/0.5196, allocations: 104 kB / 0.489 GB, free: 12.55 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002892/0.5199, allocations: 0.5331 MB / 0.4895 GB, free: 12.01 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00228/0.5222, allocations: 1.685 MB / 0.4912 GB, free: 10.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004334/0.5265, allocations: 5.112 MB / 0.4962 GB, free: 3.48 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003859/0.5304, allocations: 2.878 MB / 0.499 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.138e-05/0.5305, allocations: 36 kB / 0.499 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01029/0.5408, allocations: 6.686 MB / 0.5056 GB, free: 9.871 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.265e-05/0.5409, allocations: 56 kB / 0.5056 GB, free: 9.816 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001243/0.541, allocations: 124.1 kB / 0.5057 GB, free: 9.695 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005953/0.5416, allocations: 332.7 kB / 0.506 GB, free: 9.367 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003398/0.545, allocations: 1.248 MB / 0.5073 GB, free: 8.117 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002516/0.5476, allocations: 2.286 MB / 0.5095 GB, free: 5.691 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003577/0.5511, allocations: 291.5 kB / 0.5098 GB, free: 5.406 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003841/0.5515, allocations: 332 kB / 0.5101 GB, free: 5.082 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002645/0.5542, allocations: 1.779 MB / 0.5118 GB, free: 3.289 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004587/0.5547, allocations: 315.9 kB / 0.5121 GB, free: 2.977 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004208/0.5589, allocations: 2.355 MB / 0.5144 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.589e-05/0.5589, allocations: 15.98 kB / 0.5144 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/0.5589, allocations: 4 kB / 0.5144 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.664e-05/0.559, allocations: 7.984 kB / 0.5145 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009921/0.5689, allocations: 5.93 MB / 0.5202 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/0.5689, allocations: 11.98 kB / 0.5203 GB, free: 10.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007583/0.5697, allocations: 167.8 kB / 0.5204 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001888/0.5716, allocations: 0.7127 MB / 0.5211 GB, free: 9.695 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.067e-05/0.5717, allocations: 23.98 kB / 0.5211 GB, free: 9.672 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005341/0.577, allocations: 4.462 MB / 0.5255 GB, free: 5.07 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.577, allocations: 4.031 kB / 0.5255 GB, free: 5.066 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006297/0.5833, allocations: 4.313 MB / 0.5297 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008429/0.5842, allocations: 368.9 kB / 0.5301 GB, free: 344 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002835/0.5845, allocations: 27.92 kB / 0.5301 GB, free: 316 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009016/0.5854, allocations: 63.92 kB / 0.5301 GB, free: 252 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.5856, allocations: 64.56 kB / 0.5302 GB, free: 188 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.662e-05/0.5857, allocations: 39.94 kB / 0.5302 GB, free: 148 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.2057/0.7914, allocations: 2.295 MB / 0.5325 GB, free: 146.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.482e-06/0.7915, allocations: 0 / 0.5325 GB, free: 146.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006234/0.7977, allocations: 0.8206 MB / 0.5333 GB, free: 146.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004696/0.7982, allocations: 157.7 kB / 0.5334 GB, free: 146.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007515/0.8057, allocations: 4.009 MB / 0.5374 GB, free: 146 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.8058, allocations: 2.594 kB / 0.5374 GB, free: 146 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001729/0.8075, allocations: 1.103 MB / 0.5384 GB, free: 145.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002742/0.8102, allocations: 366.3 kB / 0.5388 GB, free: 145.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01836/0.8286, allocations: 8.624 MB / 0.5472 GB, free: 141.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003187/0.8319, allocations: 2.795 MB / 0.5499 GB, free: 139.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004304/0.8362, allocations: 1.656 MB / 0.5515 GB, free: 139.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006882/0.8369, allocations: 216.9 kB / 0.5518 GB, free: 139.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.953e-06/0.8369, allocations: 0 / 0.5518 GB, free: 139.7 MB / 446.1 MB Notification: Performance of Templates: time 0.0517/0.8886, allocations: 28.86 MB / 0.5799 GB, free: 117.7 MB / 446.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches