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.001439/0.001439, allocations: 191.8 kB / 17.37 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.557/1.557, allocations: 226.5 MB / 244.7 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008023/0.0008025, allocations: 99.19 kB / 296.8 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002414/0.0002414, allocations: 8 kB / 356.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.22, allocations: 51.3 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.WhyArrows): time 0.001638/0.2217, allocations: 1.878 MB / 409.9 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002691/0.222, allocations: 209.9 kB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.853e-05/0.2221, allocations: 4 kB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.281e-05/0.2221, allocations: 23.83 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001146/0.2223, allocations: 53.02 kB / 410.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001167/0.2224, allocations: 33.75 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000152/0.2225, allocations: 219 kB / 410.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000177/0.2227, allocations: 94.28 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.885e-05/0.2228, allocations: 76.23 kB / 410.6 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.2229, allocations: 88.34 kB / 410.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.777e-05/0.2229, allocations: 15.94 kB / 410.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.85e-05/0.223, allocations: 12.66 kB / 410.7 MB, free: 25.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.6e-05/0.223, allocations: 35.84 kB / 410.8 MB, free: 25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.134e-05/0.2231, allocations: 118.2 kB / 410.9 MB, free: 24.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001378/0.2232, allocations: 192.4 kB / 411.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2232, allocations: 0 / 411.1 MB, free: 24.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2233, allocations: 4 kB / 411.1 MB, free: 24.69 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.2233, allocations: 0 / 411.1 MB, free: 24.69 MB / 298.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.0004925/0.2238, allocations: 479.3 kB / 411.5 MB, free: 24.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.2238, allocations: 8.031 kB / 411.5 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.239e-05/0.2238, allocations: 28.66 kB / 411.6 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.224, allocations: 216 kB / 411.8 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.224, allocations: 16.94 kB / 411.8 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.655e-05/0.2241, allocations: 24.38 kB / 411.8 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002969/0.2244, allocations: 236.8 kB / 412.1 MB, free: 23.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.2244, allocations: 192 / 412.1 MB, free: 23.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.026e-05/0.2244, allocations: 15.94 kB / 412.1 MB, free: 23.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.2244, allocations: 8 kB / 412.1 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001921/0.2246, allocations: 127.9 kB / 412.2 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00082/0.2255, allocations: 0.8598 MB / 413.1 MB, free: 22.53 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/0.2256, allocations: 155.7 kB / 413.2 MB, free: 22.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.169e-05/0.2257, allocations: 62.56 kB / 413.3 MB, free: 22.28 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.2257, allocations: 0 / 413.3 MB, free: 22.28 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.355e-05/0.2258, allocations: 46.44 kB / 413.3 MB, free: 22.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.543e-06/0.2258, allocations: 3.984 kB / 413.3 MB, free: 22.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002947/0.2261, allocations: 173.9 kB / 413.5 MB, free: 22.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.63e-05/0.2261, allocations: 106.8 kB / 413.6 MB, free: 21.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.2262, allocations: 199.1 kB / 413.8 MB, free: 21.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.2262, allocations: 29.7 kB / 413.8 MB, free: 21.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.511e-05/0.2263, allocations: 159.8 kB / 414 MB, free: 21.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.144e-05/0.2263, allocations: 59.11 kB / 414 MB, free: 21.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.087e-06/0.2264, allocations: 4 kB / 414 MB, free: 21.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.814e-05/0.2264, allocations: 330.8 kB / 414.4 MB, free: 21.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.111e-05/0.2265, allocations: 48.55 kB / 414.4 MB, free: 21.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.2266, allocations: 156.5 kB / 414.6 MB, free: 20.87 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001876/0.2268, allocations: 217.5 kB / 414.8 MB, free: 20.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2268, allocations: 0 / 414.8 MB, free: 20.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002773/0.2271, allocations: 245 kB / 415 MB, free: 20.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.2271, allocations: 15.92 kB / 415 MB, free: 20.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2271, allocations: 4 kB / 415 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.2272, allocations: 4 kB / 415 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.2274, allocations: 60.3 kB / 415.1 MB, free: 20.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.2274, allocations: 8 kB / 415.1 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.2275, allocations: 27.69 kB / 415.1 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.2275, allocations: 19.98 kB / 415.2 MB, free: 20.23 MB / 298.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 7.409e-05/0.2276, allocations: 137.8 kB / 415.3 MB, free: 20.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.534e-05/0.2277, allocations: 19.75 kB / 415.3 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.654e-05/0.2277, allocations: 21.41 kB / 415.3 MB, free: 20.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.2277, allocations: 7.938 kB / 415.3 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2277, allocations: 3.984 kB / 415.3 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2277, allocations: 4 kB / 415.3 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003827/0.2281, allocations: 416.8 kB / 415.8 MB, free: 19.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.2281, allocations: 4 kB / 415.8 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000175/0.2283, allocations: 39.98 kB / 415.8 MB, free: 19.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.297e-06/0.2283, allocations: 4 kB / 415.8 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.2284, allocations: 7.984 kB / 415.8 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.2284, allocations: 3.938 kB / 415.8 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2284, allocations: 4.094 kB / 415.8 MB, free: 19.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002589/0.2286, allocations: 374.1 kB / 416.2 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.124e-05/0.2287, allocations: 96.8 kB / 416.3 MB, free: 18.99 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.63e-05/0.2287, allocations: 8 kB / 416.3 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.2288, allocations: 8.031 kB / 416.3 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.158e-05/0.2289, allocations: 19.88 kB / 416.3 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.2289, allocations: 7.984 kB / 416.3 MB, free: 18.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.413e-05/0.229, allocations: 136.3 kB / 416.5 MB, free: 18.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.229, allocations: 0 / 416.5 MB, free: 18.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003281/0.2293, allocations: 51.91 kB / 416.5 MB, free: 18.77 MB / 298.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 7.962e-05/0.2294, allocations: 107.2 kB / 416.6 MB, free: 18.65 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002009/0.2296, allocations: 138.7 kB / 416.7 MB, free: 18.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2296, allocations: 3.938 kB / 416.7 MB, free: 18.51 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.073e-05/0.2297, allocations: 56.06 kB / 416.8 MB, free: 18.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004359/0.2301, allocations: 29.05 kB / 416.8 MB, free: 18.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007576/0.2309, allocations: 0.7517 MB / 417.6 MB, free: 17.63 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000128/0.231, allocations: 0.7323 MB / 418.3 MB, free: 16.88 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.773e-05/0.2311, allocations: 19.44 kB / 418.3 MB, free: 16.86 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2311, allocations: 3.938 kB / 418.3 MB, free: 16.85 MB / 298.7 MB Notification: Performance of Templates: time 0.002875/0.234, allocations: 2.252 MB / 420.6 MB, free: 14.61 MB / 298.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/jenkins/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