Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.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.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001011/0.001011, allocations: 195.3 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 226.5 MB / 244.7 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008795/0.0008798, allocations: 102.1 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002572/0.0002574, allocations: 4 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2714, allocations: 51.31 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.001618/0.2731, allocations: 1.292 MB / 409.3 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007197/0.2739, allocations: 491.2 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.062e-05/0.274, allocations: 7.938 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.387e-05/0.274, allocations: 0.75 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001403/0.2742, allocations: 7.922 kB / 409.8 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002767/0.2745, allocations: 44.78 kB / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.209e-05/0.2746, allocations: 47.73 kB / 409.9 MB, free: 25.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.2747, allocations: 22.03 kB / 410 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.2748, allocations: 15.92 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.324e-05/0.2749, allocations: 21.47 kB / 410 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.5e-05/0.2749, allocations: 0 / 410 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.49e-05/0.2749, allocations: 4 kB / 410 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.054e-05/0.275, allocations: 19.91 kB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.357e-05/0.275, allocations: 46.3 kB / 410.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.476e-05/0.2751, allocations: 39.92 kB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.256e-06/0.2751, allocations: 5.312 kB / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2751, allocations: 0 / 410.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.2752, allocations: 0 / 410.1 MB, free: 25.64 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004251/0.2756, allocations: 369.7 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.2756, allocations: 8.031 kB / 410.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.2758, allocations: 21.7 kB / 410.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.276, allocations: 203.6 kB / 410.7 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.276, allocations: 384 / 410.7 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.2761, allocations: 8.359 kB / 410.7 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002519/0.2763, allocations: 117.5 kB / 410.8 MB, free: 24.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.2763, allocations: 3.984 kB / 410.8 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.2764, allocations: 0 / 410.8 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.2764, allocations: 0 / 410.8 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.159e-05/0.2764, allocations: 31.92 kB / 410.8 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002864/0.2767, allocations: 270.6 kB / 411.1 MB, free: 24.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.87e-05/0.2769, allocations: 75.78 kB / 411.2 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.238e-05/0.2769, allocations: 34.64 kB / 411.2 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.277, allocations: 3.984 kB / 411.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.14e-05/0.277, allocations: 42.5 kB / 411.3 MB, free: 24.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.143e-06/0.277, allocations: 0 / 411.3 MB, free: 24.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.000248/0.2772, allocations: 85.52 kB / 411.3 MB, free: 24.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.2773, allocations: 111.2 kB / 411.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.626e-05/0.2774, allocations: 141.8 kB / 411.6 MB, free: 23.9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.078e-05/0.2774, allocations: 25.7 kB / 411.6 MB, free: 23.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.829e-05/0.2775, allocations: 92.08 kB / 411.7 MB, free: 23.78 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.424e-05/0.2775, allocations: 7.906 kB / 411.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-06/0.2775, allocations: 0 / 411.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.528e-05/0.2776, allocations: 322.8 kB / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.976e-05/0.2776, allocations: 8 kB / 412 MB, free: 23.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.067e-05/0.2776, allocations: 39.42 kB / 412.1 MB, free: 23.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.896e-05/0.2777, allocations: 55.36 kB / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2777, allocations: 0 / 412.1 MB, free: 23.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001142/0.2779, allocations: 69.61 kB / 412.2 MB, free: 23.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.2779, allocations: 4 kB / 412.2 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.2779, allocations: 0 / 412.2 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.2779, allocations: 4 kB / 412.2 MB, free: 23.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.141e-05/0.278, allocations: 20.12 kB / 412.2 MB, free: 23.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.278, allocations: 11.86 kB / 412.2 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.884e-05/0.2781, allocations: 7.938 kB / 412.2 MB, free: 23.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.2781, allocations: 3.938 kB / 412.3 MB, free: 23.2 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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 5.834e-05/0.2781, allocations: 121.8 kB / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.119e-05/0.2782, allocations: 49.59 kB / 412.4 MB, free: 23.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.301e-05/0.2782, allocations: 11.97 kB / 412.4 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.2783, allocations: 11.98 kB / 412.4 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2783, allocations: 4 kB / 412.4 MB, free: 22.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2783, allocations: 3.984 kB / 412.5 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001279/0.2784, allocations: 173.6 kB / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2784, allocations: 4 kB / 412.6 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.489e-05/0.2785, allocations: 8 kB / 412.6 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2785, allocations: 0 / 412.6 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.836e-06/0.2785, allocations: 3.984 kB / 412.6 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.2785, allocations: 4 kB / 412.6 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2785, allocations: 0 / 412.6 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001476/0.2787, allocations: 189 kB / 412.8 MB, free: 22.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.436e-05/0.2787, allocations: 89 kB / 412.9 MB, free: 22.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.629e-05/0.2787, allocations: 4 kB / 412.9 MB, free: 22.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.515e-05/0.2788, allocations: 8 kB / 412.9 MB, free: 22.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.418e-05/0.2789, allocations: 4 kB / 412.9 MB, free: 22.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-06/0.2789, allocations: 3.984 kB / 412.9 MB, free: 22.4 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.238e-05/0.2789, allocations: 106.4 kB / 413 MB, free: 22.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2789, allocations: 4 kB / 413 MB, free: 22.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002113/0.2791, allocations: 4 kB / 413 MB, free: 22.29 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (4): * Single equations (assignments): 4 * 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 8.992e-05/0.2792, allocations: 95.25 kB / 413.1 MB, free: 22.19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001381/0.2794, allocations: 39.91 kB / 413.2 MB, free: 22.15 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.2794, allocations: 8 kB / 413.2 MB, free: 22.14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.5e-05/0.2794, allocations: 4 kB / 413.2 MB, free: 22.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003671/0.2798, allocations: 27.95 kB / 413.2 MB, free: 22.11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003233/0.2801, allocations: 244.6 kB / 413.5 MB, free: 21.83 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001336/0.2803, allocations: 0.6887 MB / 414.1 MB, free: 21.12 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.809e-05/0.2803, allocations: 11.44 kB / 414.2 MB, free: 21.11 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.2803, allocations: 0 / 414.2 MB, free: 21.11 MB / 298.7 MB Notification: Performance of Templates: time 0.001964/0.2823, allocations: 0.8318 MB / 415 MB, free: 20.29 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches