Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001525/0.001525, allocations: 113.1 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001952/0.001952, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 63.88 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2605, allocations: 50.53 MB / 409.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003145/0.2636, allocations: 1.902 MB / 411.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001785/0.2654, allocations: 1.208 MB / 413 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.62e-05/0.2656, allocations: 4 kB / 413 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005267/0.2661, allocations: 147.5 kB / 413.2 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003365/0.2664, allocations: 151.4 kB / 413.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004149/0.2669, allocations: 175.1 kB / 413.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002415/0.2671, allocations: 195.5 kB / 413.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.2672, allocations: 37.45 kB / 413.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.2673, allocations: 71.7 kB / 413.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001161/0.2675, allocations: 71.69 kB / 413.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.767e-05/0.2675, allocations: 16 kB / 413.9 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001278/0.2676, allocations: 51.91 kB / 413.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.575e-05/0.2677, allocations: 47.83 kB / 414 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.317e-05/0.2678, allocations: 75.48 kB / 414 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002818/0.2681, allocations: 219 kB / 414.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2681, allocations: 0 / 414.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2681, allocations: 0 / 414.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.2681, allocations: 0 / 414.3 MB, free: 13.27 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007618/0.2689, allocations: 0.5053 MB / 414.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.2689, allocations: 12.03 kB / 414.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.376e-05/0.269, allocations: 20.75 kB / 414.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003277/0.2693, allocations: 278.7 kB / 415.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/0.2693, allocations: 4.375 kB / 415.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.839e-05/0.2694, allocations: 12.12 kB / 415.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003155/0.2697, allocations: 142.7 kB / 415.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.2697, allocations: 3.984 kB / 415.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.2697, allocations: 4 kB / 415.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.2697, allocations: 0 / 415.2 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.667e-05/0.2698, allocations: 31.92 kB / 415.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004597/0.2703, allocations: 362.5 kB / 415.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002136/0.2705, allocations: 103.9 kB / 415.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.912e-05/0.2706, allocations: 50.56 kB / 415.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.2707, allocations: 3.938 kB / 415.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001504/0.2708, allocations: 79.38 kB / 415.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 3.216e-06/0.2708, allocations: 0 / 415.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003454/0.2712, allocations: 153.5 kB / 416 MB, free: 11.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.485e-05/0.2713, allocations: 132.5 kB / 416.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/0.2715, allocations: 269 kB / 416.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/0.2716, allocations: 37.64 kB / 416.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.992e-05/0.2717, allocations: 120 kB / 416.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.79e-05/0.2717, allocations: 7.891 kB / 416.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.715e-05/0.2717, allocations: 33.62 kB / 416.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.2719, allocations: 338.8 kB / 416.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.897e-05/0.2719, allocations: 23.98 kB / 416.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.866e-05/0.272, allocations: 62 kB / 417 MB, free: 10.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001217/0.2721, allocations: 80.25 kB / 417.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.2722, allocations: 4 kB / 417.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002104/0.2724, allocations: 109.4 kB / 417.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2724, allocations: 10.8 kB / 417.2 MB, free: 9.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.2724, allocations: 4 kB / 417.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.2724, allocations: 0 / 417.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.847e-05/0.2725, allocations: 20.06 kB / 417.2 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.2725, allocations: 0 / 417.2 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.577e-05/0.2726, allocations: 15.86 kB / 417.2 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.2726, allocations: 7.984 kB / 417.2 MB, free: 9.941 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.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 (11): * Single equations (assignments): 11 * 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.0001198/0.2727, allocations: 149.8 kB / 417.4 MB, free: 9.785 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.461e-05/0.2728, allocations: 65.36 kB / 417.5 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.619e-05/0.2729, allocations: 21.7 kB / 417.5 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.2729, allocations: 8.062 kB / 417.5 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2729, allocations: 320 / 417.5 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.2729, allocations: 3.938 kB / 417.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001903/0.2731, allocations: 241.6 kB / 417.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2731, allocations: 0 / 417.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.681e-05/0.2731, allocations: 4 kB / 417.7 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.2731, allocations: 3.938 kB / 417.7 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.2732, allocations: 4 kB / 417.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2732, allocations: 0 / 417.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2732, allocations: 0 / 417.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002303/0.2734, allocations: 166.4 kB / 417.9 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.534e-05/0.2735, allocations: 104.8 kB / 418 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.279e-05/0.2735, allocations: 11.98 kB / 418 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.971e-05/0.2736, allocations: 0 / 418 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.529e-05/0.2736, allocations: 7.938 kB / 418 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.2737, allocations: 11.92 kB / 418 MB, free: 9.043 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000184/0.2739, allocations: 200.6 kB / 418.2 MB, free: 8.848 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2739, allocations: 7.938 kB / 418.2 MB, free: 8.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000242/0.2741, allocations: 27.98 kB / 418.3 MB, free: 8.812 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (9): * Single equations (assignments): 7 * 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.0009092/0.275, allocations: 400.9 kB / 418.7 MB, free: 8.551 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000195/0.2752, allocations: 67.91 kB / 418.7 MB, free: 8.484 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2753, allocations: 256 / 418.7 MB, free: 8.484 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.781e-05/0.2753, allocations: 31.92 kB / 418.8 MB, free: 8.453 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/0.2757, allocations: 66.11 kB / 418.8 MB, free: 8.395 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005345/0.2763, allocations: 350.4 kB / 419.2 MB, free: 8.012 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/0.2766, allocations: 0.7321 MB / 419.9 MB, free: 7.254 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.407e-05/0.2766, allocations: 23.42 kB / 419.9 MB, free: 7.23 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2766, allocations: 0 / 419.9 MB, free: 7.23 MB / 334.1 MB Notification: Performance of Templates: time 0.004347/0.281, allocations: 2.676 MB / 422.6 MB, free: 4.57 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches