Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.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.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows") translateModel(Modelica.Mechanics.Translational.Examples.WhyArrows,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia2.s|inertia2.v|mass1.s|mass1.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001045/0.001045, allocations: 195.7 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 226.5 MB / 245.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007709/0.0007709, allocations: 102.4 kB / 297.4 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00025/0.00025, allocations: 4 kB / 357.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.246, allocations: 51.29 MB / 408.7 MB, free: 27.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08971/0.3358, allocations: 77.45 MB / 486.1 MB, free: 14.12 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.336, allocations: 69.44 kB / 486.2 MB, free: 14.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009183/0.3452, allocations: 3.577 MB / 489.7 MB, free: 10.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3453, allocations: 0 / 489.7 MB, free: 10.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.3453, allocations: 4 kB / 489.7 MB, free: 10.46 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0006186/0.3459, allocations: 479.3 kB / 490.2 MB, free: 9.941 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.824e-05/0.346, allocations: 8.031 kB / 490.2 MB, free: 9.934 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.697e-05/0.346, allocations: 24.66 kB / 490.2 MB, free: 9.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001729/0.3462, allocations: 192 kB / 490.4 MB, free: 9.684 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.3463, allocations: 16.94 kB / 490.5 MB, free: 9.668 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/0.3463, allocations: 20.38 kB / 490.5 MB, free: 9.648 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004018/0.3467, allocations: 232.8 kB / 490.7 MB, free: 9.406 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.3467, allocations: 4.094 kB / 490.7 MB, free: 9.402 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.812e-05/0.3468, allocations: 23.92 kB / 490.7 MB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.3468, allocations: 4 kB / 490.7 MB, free: 9.375 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002399/0.347, allocations: 123.9 kB / 490.9 MB, free: 9.254 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.3482, allocations: 0.8713 MB / 491.7 MB, free: 8.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002334/0.3484, allocations: 156.7 kB / 491.9 MB, free: 8.141 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.375e-05/0.3485, allocations: 66.5 kB / 491.9 MB, free: 8.066 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.3486, allocations: 4 kB / 491.9 MB, free: 8.062 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.3486, allocations: 42.75 kB / 492 MB, free: 8.012 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.583e-06/0.3486, allocations: 0 / 492 MB, free: 8.012 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003789/0.349, allocations: 165.4 kB / 492.1 MB, free: 7.844 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.694e-05/0.3491, allocations: 106.8 kB / 492.3 MB, free: 7.715 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002072/0.3493, allocations: 191.2 kB / 492.4 MB, free: 7.516 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.3493, allocations: 29.7 kB / 492.5 MB, free: 7.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.3495, allocations: 171.8 kB / 492.6 MB, free: 7.309 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.444e-05/0.3495, allocations: 63.11 kB / 492.7 MB, free: 7.246 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.02e-05/0.3496, allocations: 4 kB / 492.7 MB, free: 7.242 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.3497, allocations: 330.8 kB / 493 MB, free: 6.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.931e-05/0.3498, allocations: 44.55 kB / 493.1 MB, free: 6.863 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.35, allocations: 160.5 kB / 493.2 MB, free: 6.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002838/0.3503, allocations: 222.2 kB / 493.4 MB, free: 6.395 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3503, allocations: 4 kB / 493.4 MB, free: 6.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003784/0.3507, allocations: 241.4 kB / 493.7 MB, free: 6.148 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.3508, allocations: 11.94 kB / 493.7 MB, free: 6.137 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.3508, allocations: 0 / 493.7 MB, free: 6.137 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.233e-05/0.3508, allocations: 11.98 kB / 493.7 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.351, allocations: 55.92 kB / 493.8 MB, free: 6.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.351, allocations: 4 kB / 493.8 MB, free: 6.066 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.3512, allocations: 27.69 kB / 493.8 MB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.3512, allocations: 16 kB / 493.8 MB, free: 6.023 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * 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.0001493/0.3514, allocations: 153.7 kB / 494 MB, free: 5.863 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.548e-05/0.3514, allocations: 23.66 kB / 494 MB, free: 5.84 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.138e-05/0.3515, allocations: 21.41 kB / 494 MB, free: 5.824 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3515, allocations: 4 kB / 494 MB, free: 5.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3515, allocations: 0 / 494 MB, free: 5.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.3515, allocations: 3.984 kB / 494 MB, free: 5.816 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007592/0.3523, allocations: 412.9 kB / 494.4 MB, free: 5.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.87e-06/0.3523, allocations: 8.094 kB / 494.4 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002256/0.3526, allocations: 39.92 kB / 494.5 MB, free: 5.301 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.3526, allocations: 4 kB / 494.5 MB, free: 5.297 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.3526, allocations: 0 / 494.5 MB, free: 5.297 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.837e-06/0.3526, allocations: 7.984 kB / 494.5 MB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3526, allocations: 3.938 kB / 494.5 MB, free: 5.285 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005002/0.3531, allocations: 382.2 kB / 494.8 MB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.318e-05/0.3532, allocations: 92.86 kB / 494.9 MB, free: 4.777 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.714e-05/0.3533, allocations: 8 kB / 494.9 MB, free: 4.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.3534, allocations: 0 / 494.9 MB, free: 4.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.081e-05/0.3535, allocations: 23.97 kB / 495 MB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.3535, allocations: 4 kB / 495 MB, free: 4.742 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000139/0.3536, allocations: 148.3 kB / 495.1 MB, free: 4.598 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.3536, allocations: 0 / 495.1 MB, free: 4.598 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004046/0.354, allocations: 51.84 kB / 495.2 MB, free: 4.547 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (inertia2.s,inertia2.v,mass1.s,mass1.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 (17): * Single equations (assignments): 17 * Array equations: 0 * 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.0002022/0.3542, allocations: 107.2 kB / 495.3 MB, free: 4.434 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002789/0.3545, allocations: 135.3 kB / 495.4 MB, free: 4.305 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3545, allocations: 4.188 kB / 495.4 MB, free: 4.301 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.828e-05/0.3546, allocations: 59.91 kB / 495.5 MB, free: 4.242 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004894/0.3551, allocations: 30.09 kB / 495.5 MB, free: 4.215 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.3565, allocations: 0.7538 MB / 496.3 MB, free: 3.422 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004423/0.357, allocations: 0.7362 MB / 497 MB, free: 2.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.227e-05/0.3571, allocations: 19.44 kB / 497 MB, free: 2.641 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3571, allocations: 0 / 497 MB, free: 2.641 MB / 362.7 MB Notification: Performance of Templates: time 0.004193/0.3613, allocations: 2.234 MB / 499.2 MB, free: 420 kB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/WhyArrows/WhyArrows.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.WhyArrows.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches