Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_trunk_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009862/0.0009863, allocations: 196.5 kB / 17.05 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007539/0.0007539, allocations: 105 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002408/0.000241, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2027/0.2029, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.02332/0.2263, allocations: 34.98 MB / 442.5 MB, free: 8.742 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0168/0.2431, allocations: 8.039 MB / 450.5 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006511/0.2497, allocations: 163.6 kB / 450.7 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005615/0.2553, allocations: 1.796 MB / 452.5 MB, free: 14.73 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01357/0.2689, allocations: 5.479 MB / 458 MB, free: 9.227 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00248/0.2714, allocations: 0.6202 MB / 458.6 MB, free: 8.605 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006093/0.2775, allocations: 4.798 MB / 463.4 MB, free: 3.801 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004891/0.2825, allocations: 3.34 MB / 466.7 MB, free: 412 kB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002219/0.2847, allocations: 1.265 MB / 468 MB, free: 15.13 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002904/0.2876, allocations: 2.006 MB / 470 MB, free: 13.12 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008111/0.2885, allocations: 144 kB / 470.1 MB, free: 12.98 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001879/0.2903, allocations: 0.706 MB / 470.8 MB, free: 12.27 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001898/0.2923, allocations: 1.625 MB / 472.5 MB, free: 10.64 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001449/0.2937, allocations: 0.7843 MB / 473.2 MB, free: 9.852 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004984/0.2987, allocations: 4.833 MB / 478.1 MB, free: 5.008 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2987, allocations: 0 / 478.1 MB, free: 5.008 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.572e-06/0.2988, allocations: 0 / 478.1 MB, free: 5.008 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000228/0.299, allocations: 3.938 kB / 478.1 MB, free: 5.004 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.007757/0.3068, allocations: 3.854 MB / 481.9 MB, free: 1.082 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.3068, allocations: 12.03 kB / 481.9 MB, free: 1.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006989/0.3138, allocations: 1.96 MB / 483.9 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00426/0.3181, allocations: 2.16 MB / 486.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002046/0.3183, allocations: 229.6 kB / 486.3 MB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007964/0.3191, allocations: 291.8 kB / 486.6 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01512/0.3342, allocations: 9.639 MB / 496.2 MB, free: 1.965 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001397/0.3344, allocations: 47.58 kB / 496.3 MB, free: 1.918 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000571/0.335, allocations: 143.9 kB / 496.4 MB, free: 1.777 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002631/0.3376, allocations: 1.923 MB / 498.3 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01369/0.3513, allocations: 7.606 MB / 0.4941 GB, free: 8.223 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2282/0.5796, allocations: 37.72 MB / 0.5309 GB, free: 63.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005729/0.5854, allocations: 2.887 MB / 0.5337 GB, free: 62.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001118/0.5865, allocations: 0.8609 MB / 0.5346 GB, free: 61.95 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004999/0.5915, allocations: 3.773 MB / 0.5382 GB, free: 59.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.5916, allocations: 43.16 kB / 0.5383 GB, free: 59.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 3.617e-06/0.5916, allocations: 3.812 kB / 0.5383 GB, free: 59.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.01853/0.6101, allocations: 9.027 MB / 0.5471 GB, free: 52.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.6102, allocations: 145.5 kB / 0.5472 GB, free: 52.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00407/0.6143, allocations: 3.897 MB / 0.551 GB, free: 48.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001414/0.6145, allocations: 45.7 kB / 0.5511 GB, free: 48.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001226/0.6157, allocations: 3.078 MB / 0.5541 GB, free: 45.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003546/0.6161, allocations: 0.6059 MB / 0.5547 GB, free: 44.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.6162, allocations: 125.6 kB / 0.5548 GB, free: 44.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002166/0.6165, allocations: 0.5501 MB / 0.5553 GB, free: 44.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001928/0.6184, allocations: 1.554 MB / 0.5569 GB, free: 42.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003152/0.6216, allocations: 5.335 MB / 0.5621 GB, free: 35.22 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003223/0.6248, allocations: 2.813 MB / 0.5648 GB, free: 32.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.277e-05/0.6249, allocations: 36 kB / 0.5649 GB, free: 32.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009099/0.634, allocations: 6.619 MB / 0.5713 GB, free: 25.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.856e-05/0.6341, allocations: 67.95 kB / 0.5714 GB, free: 25.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001102/0.6342, allocations: 135.9 kB / 0.5715 GB, free: 25.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001483/0.6343, allocations: 196.8 kB / 0.5717 GB, free: 25.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003513/0.6379, allocations: 1.38 MB / 0.573 GB, free: 23.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001326/0.638, allocations: 263 kB / 0.5733 GB, free: 23.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003473/0.6415, allocations: 292.9 kB / 0.5736 GB, free: 23.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003608/0.6419, allocations: 360 kB / 0.5739 GB, free: 23.08 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00273/0.6446, allocations: 1.98 MB / 0.5759 GB, free: 21.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005042/0.6451, allocations: 335.6 kB / 0.5762 GB, free: 20.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/0.6468, allocations: 1.242 MB / 0.5774 GB, free: 19.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.015e-05/0.6468, allocations: 16.14 kB / 0.5774 GB, free: 19.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.6468, allocations: 7.984 kB / 0.5774 GB, free: 19.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.6469, allocations: 13.19 kB / 0.5774 GB, free: 19.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006706/0.6536, allocations: 5.741 MB / 0.583 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.621e-05/0.6536, allocations: 20 kB / 0.583 GB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008413/0.6545, allocations: 271.5 kB / 0.5833 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.875e-05/0.6545, allocations: 28 kB / 0.5833 GB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-05/0.6546, allocations: 55.5 kB / 0.5834 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-05/0.6546, allocations: 35.86 kB / 0.5834 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.281e-05/0.6546, allocations: 27.88 kB / 0.5834 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002704/0.6573, allocations: 3.206 MB / 0.5866 GB, free: 9.543 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005496/0.6579, allocations: 416.6 kB / 0.587 GB, free: 9.113 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002466/0.6581, allocations: 47.98 kB / 0.587 GB, free: 9.066 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009556/0.6591, allocations: 55.97 kB / 0.5871 GB, free: 9.012 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.6592, allocations: 151.4 kB / 0.5872 GB, free: 8.863 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.386e-05/0.6593, allocations: 69.31 kB / 0.5873 GB, free: 8.797 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002622/0.6619, allocations: 2.411 MB / 0.5896 GB, free: 6.406 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6619, allocations: 4 kB / 0.5896 GB, free: 6.402 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003647/0.6656, allocations: 0.8662 MB / 0.5905 GB, free: 5.543 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000323/0.6659, allocations: 194.9 kB / 0.5907 GB, free: 5.352 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004579/0.6705, allocations: 3.622 MB / 0.5942 GB, free: 1.762 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.428e-06/0.6705, allocations: 4 kB / 0.5942 GB, free: 1.758 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007804/0.6713, allocations: 0.7316 MB / 0.5949 GB, free: 1.031 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002239/0.6736, allocations: 446.3 kB / 0.5954 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01647/0.69, allocations: 10.58 MB / 0.6057 GB, free: 5.734 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003908/0.694, allocations: 3.095 MB / 0.6087 GB, free: 2.609 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008673/0.6949, allocations: 279.4 kB / 0.609 GB, free: 2.336 MB / 394.7 MB Notification: Performance of SimCode: time 8.41e-07/0.6949, allocations: 0 / 0.609 GB, free: 2.336 MB / 394.7 MB Notification: Performance of Templates: time 0.07131/0.7662, allocations: 50.65 MB / 0.6584 GB, free: 15.75 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches