Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001122/0.001122, allocations: 113 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001197/0.001197, allocations: 208.9 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 59.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2574, allocations: 50.55 MB / 409.9 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003258/0.2607, allocations: 1.914 MB / 411.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002124/0.2628, allocations: 1.313 MB / 413.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001479/0.263, allocations: 7.938 kB / 413.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003356/0.2633, allocations: 63.67 kB / 413.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004216/0.2638, allocations: 143.4 kB / 413.4 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007412/0.2645, allocations: 234.8 kB / 413.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003092/0.2648, allocations: 187.5 kB / 413.8 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.265, allocations: 33.67 kB / 413.8 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.2651, allocations: 75.69 kB / 413.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.2653, allocations: 87.61 kB / 414 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.061e-05/0.2653, allocations: 8 kB / 414 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001967/0.2655, allocations: 71.91 kB / 414 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.661e-05/0.2657, allocations: 55.81 kB / 414.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.929e-05/0.2658, allocations: 83.42 kB / 414.2 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003784/0.2661, allocations: 260.3 kB / 414.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.2662, allocations: 0 / 414.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2662, allocations: 0 / 414.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.2662, allocations: 8 kB / 414.4 MB, free: 13.23 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007687/0.267, allocations: 0.5389 MB / 415 MB, free: 12.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.267, allocations: 8.031 kB / 415 MB, free: 12.63 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.865e-05/0.2671, allocations: 28.64 kB / 415 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004134/0.2675, allocations: 299.4 kB / 415.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.2675, allocations: 8.375 kB / 415.3 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.348e-05/0.2676, allocations: 20.06 kB / 415.3 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003633/0.2679, allocations: 172.4 kB / 415.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.268, allocations: 3.938 kB / 415.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.268, allocations: 8 kB / 415.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.268, allocations: 4 kB / 415.5 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001182/0.2681, allocations: 35.98 kB / 415.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005449/0.2687, allocations: 399.2 kB / 415.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002623/0.269, allocations: 146.5 kB / 416.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.673e-05/0.2691, allocations: 63.36 kB / 416.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.2691, allocations: 4 kB / 416.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000169/0.2693, allocations: 75.38 kB / 416.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 2.004e-06/0.2693, allocations: 0 / 416.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004098/0.2697, allocations: 177.5 kB / 416.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.2698, allocations: 187.9 kB / 416.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003446/0.2702, allocations: 347 kB / 416.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.004e-05/0.2702, allocations: 25.7 kB / 416.9 MB, free: 10.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.556e-05/0.2703, allocations: 132.4 kB / 417.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.2703, allocations: 15.81 kB / 417.1 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.96e-05/0.2704, allocations: 33.7 kB / 417.1 MB, free: 10.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.2705, allocations: 346.8 kB / 417.5 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.333e-05/0.2706, allocations: 23.98 kB / 417.5 MB, free: 9.848 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.2707, allocations: 92.58 kB / 417.6 MB, free: 9.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001716/0.2709, allocations: 114.1 kB / 417.7 MB, free: 9.594 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2709, allocations: 0 / 417.7 MB, free: 9.594 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002542/0.2712, allocations: 137.3 kB / 417.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.2712, allocations: 11.94 kB / 417.8 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2712, allocations: 0 / 417.8 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.2712, allocations: 4 kB / 417.8 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.2714, allocations: 23.92 kB / 417.9 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.2714, allocations: 4 kB / 417.9 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.882e-05/0.2715, allocations: 19.77 kB / 417.9 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.2715, allocations: 4 kB / 417.9 MB, free: 9.387 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000143/0.2716, allocations: 162 kB / 418 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.2717, allocations: 77.34 kB / 418.1 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.685e-05/0.2718, allocations: 29.73 kB / 418.2 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.2718, allocations: 7.938 kB / 418.2 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2718, allocations: 0 / 418.2 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.2718, allocations: 3.938 kB / 418.2 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002106/0.2721, allocations: 249.6 kB / 418.4 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2721, allocations: 96 / 418.4 MB, free: 8.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.54e-05/0.2721, allocations: 19.98 kB / 418.4 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.2722, allocations: 7.938 kB / 418.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.2722, allocations: 0 / 418.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.2722, allocations: 7.984 kB / 418.4 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.2722, allocations: 0 / 418.4 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002837/0.2725, allocations: 187.3 kB / 418.6 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.2726, allocations: 124.8 kB / 418.7 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.811e-05/0.2727, allocations: 3.984 kB / 418.8 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.291e-05/0.2727, allocations: 8 kB / 418.8 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.397e-05/0.2728, allocations: 7.984 kB / 418.8 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.938e-05/0.2728, allocations: 11.94 kB / 418.8 MB, free: 8.387 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002371/0.2731, allocations: 249.9 kB / 419 MB, free: 8.141 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2731, allocations: 0 / 419 MB, free: 8.141 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002832/0.2734, allocations: 40 kB / 419.1 MB, free: 8.102 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009318/0.2743, allocations: 420.3 kB / 419.5 MB, free: 7.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002458/0.2746, allocations: 87.78 kB / 419.6 MB, free: 7.734 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.2746, allocations: 0 / 419.6 MB, free: 7.734 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.412e-05/0.2747, allocations: 35.97 kB / 419.6 MB, free: 7.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004428/0.2751, allocations: 85.55 kB / 419.7 MB, free: 7.617 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006585/0.2758, allocations: 432.6 kB / 420.1 MB, free: 7.152 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.2761, allocations: 0.7557 MB / 420.9 MB, free: 6.371 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.611e-05/0.2762, allocations: 23.42 kB / 420.9 MB, free: 6.348 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2762, allocations: 0 / 420.9 MB, free: 6.348 MB / 334.1 MB Notification: Performance of Templates: time 0.005539/0.2817, allocations: 3.161 MB / 424 MB, free: 3.199 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches