Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007531/0.0007531, allocations: 92.89 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000855/0.0008551, allocations: 203.3 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.7 MB / 246.8 MB, free: 9.797 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002208/0.0002208, allocations: 11.98 kB / 307.7 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09678/0.09702, allocations: 51.52 MB / 359.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2153/0.3123, allocations: 37.32 MB / 396.6 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02048/0.3329, allocations: 8.349 MB / 404.9 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007296/0.3402, allocations: 166.8 kB / 405.1 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001608/0.3418, allocations: 419.8 kB / 405.5 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005035/0.3469, allocations: 1.682 MB / 407.2 MB, free: 7.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001608/0.3485, allocations: 0.6548 MB / 407.8 MB, free: 7.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007764/0.3563, allocations: 5.941 MB / 413.8 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005886/0.3622, allocations: 3.684 MB / 417.5 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002328/0.3646, allocations: 1.144 MB / 418.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00282/0.3674, allocations: 2.017 MB / 420.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005493/0.368, allocations: 140 kB / 420.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001928/0.3699, allocations: 0.8111 MB / 421.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001726/0.3717, allocations: 1.663 MB / 423.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001909/0.3736, allocations: 1.919 MB / 425.2 MB, free: 8.875 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005553/0.3792, allocations: 5.887 MB / 431 MB, free: 2.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3792, allocations: 4 kB / 431 MB, free: 2.965 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3792, allocations: 0 / 431 MB, free: 2.965 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000107/0.3793, allocations: 0 / 431 MB, free: 2.965 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.006303/0.3856, allocations: 3.765 MB / 434.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.3857, allocations: 12.03 kB / 434.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007264/0.3929, allocations: 1.972 MB / 436.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003653/0.3966, allocations: 2.191 MB / 439 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001622/0.3968, allocations: 225.6 kB / 439.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005152/0.3973, allocations: 299.7 kB / 439.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01462/0.4119, allocations: 9.67 MB / 449.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.825e-05/0.4121, allocations: 55.47 kB / 449.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003696/0.4125, allocations: 143.8 kB / 449.4 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002796/0.4153, allocations: 1.923 MB / 451.3 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01529/0.4306, allocations: 7.66 MB / 459 MB, free: 6.129 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04129/0.4719, allocations: 37.77 MB / 496.7 MB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006753/0.4787, allocations: 2.901 MB / 499.6 MB, free: 12.13 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001228/0.4799, allocations: 0.8691 MB / 0.4888 GB, free: 11.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0054/0.4853, allocations: 3.853 MB / 0.4925 GB, free: 7.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/0.4854, allocations: 51.2 kB / 0.4926 GB, free: 7.121 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.517e-06/0.4854, allocations: 0 / 0.4926 GB, free: 7.121 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02169/0.5071, allocations: 9.076 MB / 0.5014 GB, free: 13.92 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.832e-05/0.5072, allocations: 153.5 kB / 0.5016 GB, free: 13.74 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004992/0.5122, allocations: 3.904 MB / 0.5054 GB, free: 9.855 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001325/0.5124, allocations: 45.7 kB / 0.5054 GB, free: 9.805 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002003/0.5144, allocations: 3.081 MB / 0.5084 GB, free: 6.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005236/0.5149, allocations: 0.6057 MB / 0.509 GB, free: 6.066 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005245/0.5155, allocations: 0.499 MB / 0.5095 GB, free: 5.559 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.244e-05/0.5156, allocations: 305.1 kB / 0.5098 GB, free: 5.258 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002424/0.518, allocations: 1.589 MB / 0.5114 GB, free: 3.664 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004569/0.5226, allocations: 5.358 MB / 0.5166 GB, free: 12.41 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007667/0.5303, allocations: 7.56 MB / 0.524 GB, free: 2.973 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.413e-05/0.5303, allocations: 36 kB / 0.524 GB, free: 2.938 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.2136/0.744, allocations: 6.665 MB / 0.5305 GB, free: 139.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000192/0.7442, allocations: 62.34 kB / 0.5306 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003515/0.7446, allocations: 136.4 kB / 0.5307 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003626/0.745, allocations: 179.8 kB / 0.5309 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00723/0.7522, allocations: 1.392 MB / 0.5322 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000377/0.7526, allocations: 260.4 kB / 0.5325 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005037/0.7577, allocations: 286 kB / 0.5328 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001132/0.7588, allocations: 365.1 kB / 0.5331 GB, free: 138.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (746): * Single equations (assignments): 743 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005039/0.7639, allocations: 1.985 MB / 0.5351 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008714/0.7648, allocations: 333.8 kB / 0.5354 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001083/0.7659, allocations: 403.6 kB / 0.5358 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.858e-05/0.7659, allocations: 16.22 kB / 0.5358 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/0.766, allocations: 11.41 kB / 0.5358 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-05/0.766, allocations: 7.797 kB / 0.5358 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01377/0.7798, allocations: 5.767 MB / 0.5414 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.974e-05/0.7798, allocations: 20 kB / 0.5414 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009781/0.7808, allocations: 275.5 kB / 0.5417 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.471e-05/0.7809, allocations: 25.97 kB / 0.5417 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.435e-05/0.781, allocations: 51.7 kB / 0.5418 GB, free: 136 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.903e-05/0.781, allocations: 41.42 kB / 0.5418 GB, free: 136 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-05/0.781, allocations: 28.34 kB / 0.5418 GB, free: 136 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003711/0.7847, allocations: 3.229 MB / 0.545 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007697/0.7855, allocations: 424.1 kB / 0.5454 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002785/0.7858, allocations: 54.12 kB / 0.5455 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.7868, allocations: 60.81 kB / 0.5455 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001633/0.787, allocations: 148.6 kB / 0.5457 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.64e-05/0.7871, allocations: 66.58 kB / 0.5457 GB, free: 133.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003063/0.7902, allocations: 2.432 MB / 0.5481 GB, free: 133 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.7902, allocations: 0 / 0.5481 GB, free: 133 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003908/0.7941, allocations: 0.8551 MB / 0.5489 GB, free: 132.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * 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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002991/0.7944, allocations: 198.3 kB / 0.5491 GB, free: 132.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004575/0.799, allocations: 3.65 MB / 0.5527 GB, free: 131.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.799, allocations: 3 kB / 0.5527 GB, free: 131.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008147/0.7998, allocations: 0.7417 MB / 0.5534 GB, free: 131.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01065/0.8105, allocations: 454.8 kB / 0.5538 GB, free: 131.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01102/0.8215, allocations: 10.59 MB / 0.5642 GB, free: 122.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002513/0.8241, allocations: 3.089 MB / 0.5672 GB, free: 120.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003695/0.8278, allocations: 1.77 MB / 0.5689 GB, free: 118.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004309/0.8283, allocations: 235.4 kB / 0.5692 GB, free: 118.7 MB / 446.1 MB Notification: Performance of SimCode: time 7.22e-07/0.8283, allocations: 0 / 0.5692 GB, free: 118.7 MB / 446.1 MB Notification: Performance of Templates: time 0.04192/0.8702, allocations: 25.84 MB / 0.5944 GB, free: 93.02 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches