Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009869/0.000987, allocations: 190.9 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 226.6 MB / 244.7 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008106/0.0008106, allocations: 100.2 kB / 296.8 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002605/0.0002605, allocations: 4 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.28, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.001537/0.2816, allocations: 1.321 MB / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007128/0.2824, allocations: 0.4998 MB / 409.9 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.193e-05/0.2824, allocations: 6.781 kB / 409.9 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.547e-05/0.2825, allocations: 7.922 kB / 409.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001349/0.2826, allocations: 11.92 kB / 409.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002699/0.2829, allocations: 51.83 kB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.995e-05/0.283, allocations: 43.86 kB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.2831, allocations: 21.02 kB / 410 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001072/0.2832, allocations: 32.59 kB / 410 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.428e-05/0.2833, allocations: 19.86 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.416e-05/0.2833, allocations: 1.562 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.958e-05/0.2834, allocations: 4 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.708e-05/0.2834, allocations: 11.94 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.435e-05/0.2835, allocations: 57.48 kB / 410.1 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.748e-05/0.2836, allocations: 45.36 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.2836, allocations: 0 / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2836, allocations: 4 kB / 410.2 MB, free: 25.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.2836, allocations: 0 / 410.2 MB, free: 25.54 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004112/0.284, allocations: 377.3 kB / 410.6 MB, free: 25.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.2841, allocations: 8.562 kB / 410.6 MB, free: 25.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001408/0.2842, allocations: 25.52 kB / 410.6 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001703/0.2844, allocations: 205.9 kB / 410.8 MB, free: 24.86 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.2844, allocations: 4.375 kB / 410.8 MB, free: 24.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.461e-05/0.2844, allocations: 5.562 kB / 410.8 MB, free: 24.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.2847, allocations: 149.1 kB / 410.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.2847, allocations: 0.6562 kB / 410.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.2847, allocations: 0 / 410.9 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.2847, allocations: 7.938 kB / 411 MB, free: 24.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.499e-05/0.2848, allocations: 39.91 kB / 411 MB, free: 24.63 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002684/0.2851, allocations: 287.4 kB / 411.3 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001203/0.2852, allocations: 90.42 kB / 411.4 MB, free: 24.17 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.575e-05/0.2853, allocations: 55.42 kB / 411.4 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.2854, allocations: 4 kB / 411.4 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.996e-05/0.2854, allocations: 38.55 kB / 411.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.2854, allocations: 0 / 411.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002585/0.2856, allocations: 105.7 kB / 411.6 MB, free: 23.94 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.2857, allocations: 132.5 kB / 411.7 MB, free: 23.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.54e-05/0.2858, allocations: 151.2 kB / 411.8 MB, free: 23.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.218e-06/0.2858, allocations: 33.64 kB / 411.9 MB, free: 23.58 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.433e-05/0.2859, allocations: 96.34 kB / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.473e-05/0.2859, allocations: 7.906 kB / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.238e-06/0.2859, allocations: 4 kB / 412 MB, free: 23.47 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.535e-05/0.2859, allocations: 318.8 kB / 412.3 MB, free: 23.15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.995e-05/0.286, allocations: 12 kB / 412.3 MB, free: 23.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.457e-05/0.286, allocations: 57.14 kB / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.539e-05/0.2861, allocations: 69.08 kB / 412.4 MB, free: 22.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2861, allocations: 0 / 412.4 MB, free: 22.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001289/0.2863, allocations: 89.45 kB / 412.5 MB, free: 22.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.2863, allocations: 4 kB / 412.5 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.2863, allocations: 4 kB / 412.5 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.2863, allocations: 192 / 412.5 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.517e-05/0.2864, allocations: 23.92 kB / 412.5 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.2864, allocations: 4 kB / 412.5 MB, free: 22.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.301e-05/0.2865, allocations: 4 kB / 412.5 MB, free: 22.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.2865, allocations: 0 / 412.5 MB, free: 22.85 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * 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 6.336e-05/0.2866, allocations: 129.8 kB / 412.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.459e-05/0.2866, allocations: 61.53 kB / 412.7 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.066e-05/0.2867, allocations: 15.97 kB / 412.8 MB, free: 22.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.2867, allocations: 0 / 412.8 MB, free: 22.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.2867, allocations: 4 kB / 412.8 MB, free: 22.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2867, allocations: 0 / 412.8 MB, free: 22.62 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/0.2868, allocations: 181.6 kB / 412.9 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2869, allocations: 7.875 kB / 412.9 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.242e-05/0.2869, allocations: 19.92 kB / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.2869, allocations: 7.984 kB / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.275e-06/0.2869, allocations: 0 / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2869, allocations: 0 / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.287, allocations: 4 kB / 413 MB, free: 22.35 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001523/0.2871, allocations: 198 kB / 413.2 MB, free: 22.13 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.413e-05/0.2872, allocations: 104.8 kB / 413.3 MB, free: 22.01 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.738e-05/0.2872, allocations: 11.92 kB / 413.3 MB, free: 22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.728e-05/0.2873, allocations: 4 kB / 413.3 MB, free: 22 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.13e-05/0.2873, allocations: 4 kB / 413.3 MB, free: 21.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.2873, allocations: 0 / 413.3 MB, free: 21.99 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.436e-05/0.2874, allocations: 115.2 kB / 413.4 MB, free: 21.88 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2874, allocations: 0 / 413.4 MB, free: 21.88 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002183/0.2876, allocations: 8 kB / 413.4 MB, free: 21.87 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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.754e-05/0.2877, allocations: 99.12 kB / 413.5 MB, free: 21.77 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001427/0.2878, allocations: 51.91 kB / 413.6 MB, free: 21.72 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2879, allocations: 0 / 413.6 MB, free: 21.72 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.554e-05/0.2879, allocations: 8 kB / 413.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003906/0.2883, allocations: 50.97 kB / 413.6 MB, free: 21.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003213/0.2886, allocations: 261.3 kB / 413.9 MB, free: 21.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001467/0.2888, allocations: 0.6965 MB / 414.6 MB, free: 20.64 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.788e-05/0.2888, allocations: 11.44 kB / 414.6 MB, free: 20.63 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2888, allocations: 0 / 414.6 MB, free: 20.63 MB / 298.7 MB Notification: Performance of Templates: time 0.001997/0.2908, allocations: 1.01 MB / 415.6 MB, free: 19.63 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches