Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001118/0.001118, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008683/0.0008682, allocations: 95.84 kB / 296.4 MB, free: 7.035 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002674/0.0002675, allocations: 8 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2749, allocations: 51.29 MB / 407.5 MB, free: 27.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.0294/0.3043, allocations: 31.37 MB / 438.9 MB, free: 12.41 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01829/0.3227, allocations: 7.464 MB / 446.3 MB, free: 4.938 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005212/0.3279, allocations: 151.6 kB / 446.5 MB, free: 4.789 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003221/0.3311, allocations: 1.571 MB / 448.1 MB, free: 3.211 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01124/0.3424, allocations: 4.837 MB / 452.9 MB, free: 14.36 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001625/0.344, allocations: 0.5031 MB / 453.4 MB, free: 13.85 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004819/0.3489, allocations: 3.834 MB / 457.2 MB, free: 10 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00415/0.353, allocations: 2.963 MB / 460.2 MB, free: 6.988 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001497/0.3546, allocations: 1.043 MB / 461.2 MB, free: 5.941 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001781/0.3563, allocations: 1.585 MB / 462.8 MB, free: 4.352 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002823/0.3566, allocations: 116 kB / 462.9 MB, free: 4.238 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.3581, allocations: 0.7918 MB / 463.7 MB, free: 3.445 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001092/0.3592, allocations: 1.391 MB / 465.1 MB, free: 2.051 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005726/0.3598, allocations: 0.7025 MB / 465.8 MB, free: 1.34 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003535/0.3634, allocations: 4.416 MB / 470.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/0.3634, allocations: 3.984 kB / 470.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3634, allocations: 0 / 470.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.933e-05/0.3635, allocations: 3.938 kB / 470.2 MB, free: 12.91 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.004903/0.3684, allocations: 3.355 MB / 473.6 MB, free: 9.484 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.3684, allocations: 16.02 kB / 473.6 MB, free: 9.469 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005477/0.3739, allocations: 1.812 MB / 475.4 MB, free: 7.648 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002908/0.3768, allocations: 1.853 MB / 477.3 MB, free: 5.734 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/0.377, allocations: 188.8 kB / 477.5 MB, free: 5.547 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003826/0.3774, allocations: 247.9 kB / 477.7 MB, free: 5.305 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01247/0.3898, allocations: 8.423 MB / 486.1 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.281e-05/0.39, allocations: 39.67 kB / 486.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003158/0.3903, allocations: 127.9 kB / 486.3 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002702/0.393, allocations: 1.703 MB / 488 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01253/0.4055, allocations: 7.071 MB / 495.1 MB, free: 3.262 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2439/0.6495, allocations: 34.11 MB / 0.5168 GB, free: 69.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006671/0.6562, allocations: 3.269 MB / 0.52 GB, free: 69.01 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001611/0.6578, allocations: 1.463 MB / 0.5214 GB, free: 68.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005209/0.6631, allocations: 4.361 MB / 0.5257 GB, free: 65.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.6631, allocations: 49.92 kB / 0.5257 GB, free: 65.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=121): time 3.326e-06/0.6631, allocations: 0 / 0.5257 GB, free: 65.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=129): time 0.02327/0.6864, allocations: 11.46 MB / 0.5369 GB, free: 58.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.6865, allocations: 137.2 kB / 0.537 GB, free: 58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003783/0.6903, allocations: 3.706 MB / 0.5407 GB, free: 54.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.46e-05/0.6904, allocations: 45.7 kB / 0.5407 GB, free: 54.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001146/0.6915, allocations: 2.752 MB / 0.5434 GB, free: 51.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003095/0.6918, allocations: 0.5198 MB / 0.5439 GB, free: 50.99 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.692, allocations: 104 kB / 0.544 GB, free: 50.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002025/0.6922, allocations: 0.5312 MB / 0.5445 GB, free: 50.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001835/0.6941, allocations: 1.685 MB / 0.5462 GB, free: 48.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002974/0.697, allocations: 5.102 MB / 0.5511 GB, free: 41.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002836/0.6999, allocations: 2.873 MB / 0.5539 GB, free: 39.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-05/0.6999, allocations: 36 kB / 0.554 GB, free: 39.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.007721/0.7077, allocations: 6.687 MB / 0.5605 GB, free: 32.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.253e-05/0.7077, allocations: 64.06 kB / 0.5606 GB, free: 32.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.151e-05/0.7078, allocations: 120 kB / 0.5607 GB, free: 32.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004892/0.7083, allocations: 332.7 kB / 0.561 GB, free: 31.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002885/0.7112, allocations: 1.244 MB / 0.5622 GB, free: 30.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001698/0.7129, allocations: 2.284 MB / 0.5644 GB, free: 28.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002758/0.7157, allocations: 294.8 kB / 0.5647 GB, free: 27.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002955/0.716, allocations: 332 kB / 0.565 GB, free: 27.61 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 (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.001954/0.7179, allocations: 1.799 MB / 0.5668 GB, free: 25.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000308/0.7183, allocations: 304 kB / 0.5671 GB, free: 25.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003503/0.7218, allocations: 2.357 MB / 0.5694 GB, free: 23.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.717e-05/0.7218, allocations: 16 kB / 0.5694 GB, free: 23.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.7218, allocations: 11.94 kB / 0.5694 GB, free: 23.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.7218, allocations: 3.984 kB / 0.5694 GB, free: 23.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008266/0.7301, allocations: 5.925 MB / 0.5752 GB, free: 17.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.7301, allocations: 3.984 kB / 0.5752 GB, free: 17.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006663/0.7308, allocations: 175.8 kB / 0.5754 GB, free: 16.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001818/0.7326, allocations: 0.7069 MB / 0.5761 GB, free: 16.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.336e-05/0.7327, allocations: 27.98 kB / 0.5761 GB, free: 16.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004391/0.7371, allocations: 4.464 MB / 0.5805 GB, free: 11.63 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.7371, allocations: 7.938 kB / 0.5805 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005328/0.7424, allocations: 4.309 MB / 0.5847 GB, free: 7.281 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005719/0.743, allocations: 364.9 kB / 0.585 GB, free: 6.902 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002534/0.7433, allocations: 24.69 kB / 0.585 GB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009154/0.7442, allocations: 69.44 kB / 0.5851 GB, free: 6.812 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.7443, allocations: 68.5 kB / 0.5852 GB, free: 6.746 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.053e-05/0.7444, allocations: 39.98 kB / 0.5852 GB, free: 6.707 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002369/0.7468, allocations: 2.303 MB / 0.5875 GB, free: 4.418 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7468, allocations: 0 / 0.5875 GB, free: 4.418 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003031/0.7498, allocations: 0.8233 MB / 0.5883 GB, free: 3.602 MB / 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 (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.0002959/0.7501, allocations: 147 kB / 0.5884 GB, free: 3.457 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005079/0.7552, allocations: 4.014 MB / 0.5923 GB, free: 15.46 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.7553, allocations: 3.938 kB / 0.5923 GB, free: 15.45 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001351/0.7566, allocations: 1.115 MB / 0.5934 GB, free: 14.33 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/0.7584, allocations: 371.1 kB / 0.5938 GB, free: 13.96 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0123/0.7707, allocations: 9.012 MB / 0.6026 GB, free: 4.91 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002747/0.7735, allocations: 2.789 MB / 0.6053 GB, free: 2.102 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008145/0.7743, allocations: 247.4 kB / 0.6055 GB, free: 1.859 MB / 394.7 MB Notification: Performance of SimCode: time 1.393e-06/0.7743, allocations: 0 / 0.6055 GB, free: 1.859 MB / 394.7 MB Notification: Performance of Templates: time 0.08689/0.8612, allocations: 63.41 MB / 0.6675 GB, free: 2.457 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches