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/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.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/Complex trunk/package.mo): time 0.001909/0.001909, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.591/1.591, allocations: 226.8 MB / 245.5 MB, free: 6.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001046/0.001046, allocations: 113.2 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009987/0.000999, allocations: 51.91 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2854, allocations: 50.45 MB / 407.1 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003109/0.2885, allocations: 1.982 MB / 409 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.2904, allocations: 1.312 MB / 410.3 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.2905, allocations: 7.938 kB / 410.4 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003982/0.291, allocations: 55.8 kB / 410.4 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002589/0.2912, allocations: 123.1 kB / 410.5 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006275/0.2919, allocations: 233.3 kB / 410.8 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000194/0.2921, allocations: 179.5 kB / 410.9 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.2922, allocations: 37.66 kB / 411 MB, free: 23.9 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.927e-05/0.2923, allocations: 75.58 kB / 411 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.833e-05/0.2924, allocations: 79.67 kB / 411.1 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.041e-05/0.2924, allocations: 4 kB / 411.1 MB, free: 23.74 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.2926, allocations: 59.89 kB / 411.2 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.724e-05/0.2927, allocations: 47.78 kB / 411.2 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.23e-05/0.2927, allocations: 83.41 kB / 411.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002446/0.293, allocations: 240.8 kB / 411.5 MB, free: 23.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.293, allocations: 4 kB / 411.6 MB, free: 23.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.293, allocations: 0 / 411.6 MB, free: 23.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.293, allocations: 0 / 411.6 MB, free: 23.32 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006817/0.2937, allocations: 0.5544 MB / 412.1 MB, free: 22.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.2937, allocations: 8.031 kB / 412.1 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.694e-05/0.2938, allocations: 24.66 kB / 412.1 MB, free: 22.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002881/0.2941, allocations: 295.5 kB / 412.4 MB, free: 22.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.2941, allocations: 4.375 kB / 412.4 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.974e-05/0.2941, allocations: 12.12 kB / 412.4 MB, free: 22.33 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.2945, allocations: 184.3 kB / 412.6 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.2945, allocations: 3.938 kB / 412.6 MB, free: 22.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.2945, allocations: 8 kB / 412.6 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.2945, allocations: 4 kB / 412.6 MB, free: 22.11 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001066/0.2946, allocations: 43.92 kB / 412.7 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004356/0.2951, allocations: 399.1 kB / 413.1 MB, free: 21.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/0.2953, allocations: 142.5 kB / 413.2 MB, free: 21.44 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.119e-05/0.2954, allocations: 55.42 kB / 413.3 MB, free: 21.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.2954, allocations: 8 kB / 413.3 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002167/0.2957, allocations: 79.31 kB / 413.3 MB, free: 21.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.713e-06/0.2957, allocations: 0 / 413.3 MB, free: 21.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003537/0.296, allocations: 169.5 kB / 413.5 MB, free: 21.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.014e-05/0.2961, allocations: 192 kB / 413.7 MB, free: 20.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002551/0.2964, allocations: 343 kB / 414 MB, free: 20.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.2964, allocations: 29.7 kB / 414.1 MB, free: 20.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.429e-05/0.2965, allocations: 132.3 kB / 414.2 MB, free: 20.35 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.101e-05/0.2965, allocations: 15.97 kB / 414.2 MB, free: 20.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.777e-05/0.2965, allocations: 41.61 kB / 414.3 MB, free: 20.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.347e-05/0.2966, allocations: 346.7 kB / 414.6 MB, free: 19.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.532e-05/0.2967, allocations: 23.98 kB / 414.6 MB, free: 19.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.733e-05/0.2968, allocations: 96.52 kB / 414.7 MB, free: 19.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001335/0.2969, allocations: 105.9 kB / 414.8 MB, free: 19.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2969, allocations: 0 / 414.8 MB, free: 19.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002024/0.2971, allocations: 145.2 kB / 415 MB, free: 19.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.2972, allocations: 4 kB / 415 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.2972, allocations: 0 / 415 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.2972, allocations: 4 kB / 415 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.2973, allocations: 19.98 kB / 415 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.2973, allocations: 4 kB / 415 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.817e-05/0.2974, allocations: 16.17 kB / 415 MB, free: 19.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.2974, allocations: 15.88 kB / 415 MB, free: 19.45 MB / 298.7 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.0001009/0.2975, allocations: 164 kB / 415.2 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.961e-05/0.2976, allocations: 77.34 kB / 415.3 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.844e-05/0.2977, allocations: 29.73 kB / 415.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2977, allocations: 4 kB / 415.3 MB, free: 19.17 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.2977, allocations: 0 / 415.3 MB, free: 19.17 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.309e-06/0.2977, allocations: 3.938 kB / 415.3 MB, free: 19.17 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001579/0.2979, allocations: 249.5 kB / 415.5 MB, free: 18.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2979, allocations: 0 / 415.5 MB, free: 18.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.583e-05/0.298, allocations: 24.02 kB / 415.6 MB, free: 18.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.298, allocations: 4 kB / 415.6 MB, free: 18.85 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.298, allocations: 0 / 415.6 MB, free: 18.85 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.298, allocations: 4 kB / 415.6 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.298, allocations: 3.984 kB / 415.6 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004331/0.2984, allocations: 0.8044 MB / 416.4 MB, free: 17.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.946e-05/0.2985, allocations: 120.8 kB / 416.5 MB, free: 17.83 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.97e-05/0.2986, allocations: 7.922 kB / 416.5 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.223e-05/0.2986, allocations: 4 kB / 416.5 MB, free: 17.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.155e-05/0.2987, allocations: 11.98 kB / 416.5 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.2987, allocations: 4 kB / 416.5 MB, free: 17.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001794/0.2989, allocations: 253.9 kB / 416.8 MB, free: 17.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2989, allocations: 4 kB / 416.8 MB, free: 17.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003537/0.2993, allocations: 32 kB / 416.8 MB, free: 17.52 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: 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.0008778/0.3002, allocations: 438.2 kB / 417.2 MB, free: 17.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002062/0.3004, allocations: 79.84 kB / 417.3 MB, free: 17.15 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3004, allocations: 384 / 417.3 MB, free: 17.15 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.489e-05/0.3005, allocations: 39.92 kB / 417.3 MB, free: 17.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.3009, allocations: 72.86 kB / 417.4 MB, free: 17.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000692/0.3016, allocations: 0.5778 MB / 418 MB, free: 16.42 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001652/0.3018, allocations: 0.7518 MB / 418.7 MB, free: 15.64 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.951e-05/0.3019, allocations: 21.55 kB / 418.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.698e-05/0.3019, allocations: 27.42 kB / 418.8 MB, free: 15.59 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3019, allocations: 0 / 418.8 MB, free: 15.59 MB / 298.7 MB Notification: Performance of Templates: time 0.005647/0.3076, allocations: 3.029 MB / 421.8 MB, free: 12.59 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches