Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001031/0.00103, allocations: 96.08 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001295/0.001295, allocations: 202.2 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.7 MB / 246.8 MB, free: 11.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003264/0.0003264, allocations: 11.94 kB / 307.7 MB, free: 0.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09965/0.1, allocations: 51.52 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.2126/0.3126, allocations: 33.46 MB / 392.7 MB, free: 1.551 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01831/0.331, allocations: 7.759 MB / 400.5 MB, free: 12.54 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009826/0.3408, allocations: 146.8 kB / 400.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001515/0.3424, allocations: 367.4 kB / 401 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004737/0.3471, allocations: 1.535 MB / 402.5 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001539/0.3487, allocations: 0.5615 MB / 403.1 MB, free: 11.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005762/0.3545, allocations: 4.768 MB / 407.9 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004262/0.3588, allocations: 3.265 MB / 411.1 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001534/0.3603, allocations: 0.9412 MB / 412.1 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001995/0.3623, allocations: 1.604 MB / 413.7 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003069/0.3626, allocations: 116 kB / 413.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001744/0.3644, allocations: 0.9359 MB / 414.7 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001236/0.3656, allocations: 1.41 MB / 416.1 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001464/0.3671, allocations: 1.663 MB / 417.8 MB, free: 324 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004838/0.372, allocations: 5.381 MB / 423.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.289e-06/0.372, allocations: 0 / 423.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.372, allocations: 0 / 423.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.903e-05/0.3721, allocations: 0 / 423.2 MB, free: 10.91 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.005321/0.3774, allocations: 3.282 MB / 426.4 MB, free: 7.566 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3775, allocations: 12.03 kB / 426.5 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006286/0.3838, allocations: 1.817 MB / 428.3 MB, free: 5.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003211/0.387, allocations: 1.889 MB / 430.2 MB, free: 3.793 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001295/0.3871, allocations: 192.8 kB / 430.4 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000461/0.3876, allocations: 251.8 kB / 430.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01363/0.4012, allocations: 8.454 MB / 439.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001167/0.4014, allocations: 47.59 kB / 439.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003212/0.4017, allocations: 119.9 kB / 439.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002724/0.4045, allocations: 1.703 MB / 440.9 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01302/0.4175, allocations: 7.126 MB / 448 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03703/0.4546, allocations: 34.14 MB / 482.2 MB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007278/0.4619, allocations: 3.291 MB / 485.5 MB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001763/0.4637, allocations: 1.462 MB / 486.9 MB, free: 9.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005649/0.4693, allocations: 4.456 MB / 491.4 MB, free: 4.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/0.4694, allocations: 51.05 kB / 491.4 MB, free: 4.422 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 3.066e-06/0.4694, allocations: 7.938 kB / 491.5 MB, free: 4.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.02741/0.4968, allocations: 11.53 MB / 0.4912 GB, free: 8.738 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.513e-05/0.4969, allocations: 149.2 kB / 0.4913 GB, free: 8.562 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004625/0.5015, allocations: 3.701 MB / 0.495 GB, free: 4.867 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001716/0.5017, allocations: 45.7 kB / 0.495 GB, free: 4.816 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001722/0.5035, allocations: 2.748 MB / 0.4977 GB, free: 2.027 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004761/0.504, allocations: 0.5209 MB / 0.4982 GB, free: 1.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005038/0.5045, allocations: 461.7 kB / 0.4986 GB, free: 1.043 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.206e-05/0.5046, allocations: 313.1 kB / 0.4989 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002377/0.507, allocations: 1.709 MB / 0.5006 GB, free: 15.02 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004366/0.5113, allocations: 5.139 MB / 0.5056 GB, free: 8.152 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007719/0.5191, allocations: 7.425 MB / 0.5129 GB, free: 15.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.178e-05/0.5192, allocations: 36 kB / 0.5129 GB, free: 14.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01023/0.5294, allocations: 6.736 MB / 0.5195 GB, free: 8.242 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.262e-05/0.5295, allocations: 59.94 kB / 0.5195 GB, free: 8.184 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.941e-05/0.5296, allocations: 128 kB / 0.5197 GB, free: 8.059 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005922/0.5302, allocations: 320.7 kB / 0.52 GB, free: 7.742 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003338/0.5335, allocations: 1.244 MB / 0.5212 GB, free: 6.496 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002404/0.536, allocations: 2.286 MB / 0.5234 GB, free: 4.066 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003145/0.5391, allocations: 291.4 kB / 0.5237 GB, free: 3.781 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003791/0.5395, allocations: 336 kB / 0.524 GB, free: 3.453 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.00241/0.5419, allocations: 1.795 MB / 0.5258 GB, free: 1.645 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004373/0.5424, allocations: 308 kB / 0.5261 GB, free: 1.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1943/0.7367, allocations: 2.369 MB / 0.5284 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.169e-05/0.7368, allocations: 14.47 kB / 0.5284 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-05/0.7368, allocations: 3.094 kB / 0.5284 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.743e-05/0.7368, allocations: 6.969 kB / 0.5284 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01167/0.7485, allocations: 5.927 MB / 0.5342 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.315e-05/0.7485, allocations: 0.8438 kB / 0.5342 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008572/0.7494, allocations: 177.5 kB / 0.5343 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002317/0.7517, allocations: 0.7113 MB / 0.535 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001364/0.7519, allocations: 22.77 kB / 0.5351 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005756/0.7577, allocations: 4.474 MB / 0.5394 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.7577, allocations: 3 kB / 0.5394 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007069/0.7648, allocations: 4.338 MB / 0.5437 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008628/0.7657, allocations: 375.5 kB / 0.544 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002665/0.7659, allocations: 21.81 kB / 0.5441 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.767, allocations: 71.28 kB / 0.5441 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000227/0.7672, allocations: 66.88 kB / 0.5442 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.649e-05/0.7673, allocations: 44.42 kB / 0.5442 GB, free: 136.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003562/0.7709, allocations: 2.315 MB / 0.5465 GB, free: 136.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.7709, allocations: 0 / 0.5465 GB, free: 136.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004583/0.7755, allocations: 0.8039 MB / 0.5473 GB, free: 136 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.0003581/0.7758, allocations: 152.2 kB / 0.5474 GB, free: 135.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005291/0.7811, allocations: 4.044 MB / 0.5514 GB, free: 134.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.7812, allocations: 0 / 0.5514 GB, free: 134.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001222/0.7824, allocations: 1.122 MB / 0.5525 GB, free: 134 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00272/0.7851, allocations: 371.6 kB / 0.5528 GB, free: 133.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.7958, allocations: 9.02 MB / 0.5616 GB, free: 128.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002147/0.798, allocations: 2.773 MB / 0.5643 GB, free: 126 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003463/0.8014, allocations: 1.664 MB / 0.566 GB, free: 124.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005091/0.802, allocations: 203.4 kB / 0.5662 GB, free: 124.1 MB / 446.1 MB Notification: Performance of SimCode: time 6.91e-07/0.802, allocations: 4 kB / 0.5662 GB, free: 124.1 MB / 446.1 MB Notification: Performance of Templates: time 0.04267/0.8446, allocations: 29.28 MB / 0.5948 GB, free: 95.02 MB / 446.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches