Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001341/0.001341, allocations: 117.7 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.001475/0.001475, allocations: 200.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2604, allocations: 50.55 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003152/0.2636, allocations: 1.887 MB / 411.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001958/0.2656, allocations: 1.278 MB / 413.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.2658, allocations: 3.938 kB / 413.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003224/0.2661, allocations: 71.66 kB / 413.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003358/0.2665, allocations: 143.4 kB / 413.3 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005909/0.2671, allocations: 222.8 kB / 413.5 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002268/0.2673, allocations: 179.5 kB / 413.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.2674, allocations: 29.55 kB / 413.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.2675, allocations: 79.62 kB / 413.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.2677, allocations: 75.69 kB / 413.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.593e-05/0.2677, allocations: 8 kB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001548/0.2679, allocations: 67.95 kB / 413.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.978e-05/0.2679, allocations: 55.77 kB / 414 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.711e-05/0.268, allocations: 83.42 kB / 414.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003096/0.2684, allocations: 239.1 kB / 414.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.2684, allocations: 3.984 kB / 414.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2684, allocations: 0 / 414.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.812e-06/0.2684, allocations: 4 kB / 414.3 MB, free: 13.17 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.0006841/0.2691, allocations: 0.5401 MB / 414.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.2691, allocations: 8.031 kB / 414.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.184e-05/0.2692, allocations: 24.66 kB / 414.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003889/0.2696, allocations: 287.6 kB / 415.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.2696, allocations: 4.375 kB / 415.2 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.2696, allocations: 16.12 kB / 415.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003159/0.27, allocations: 163.4 kB / 415.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.27, allocations: 0 / 415.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.27, allocations: 3.984 kB / 415.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.27, allocations: 8 kB / 415.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001076/0.2701, allocations: 31.98 kB / 415.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000464/0.2706, allocations: 382.4 kB / 415.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000236/0.2708, allocations: 119.9 kB / 415.9 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.614e-05/0.2709, allocations: 42.56 kB / 415.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.271, allocations: 4.062 kB / 415.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001579/0.2711, allocations: 87.31 kB / 416 MB, free: 11.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 2.736e-06/0.2712, allocations: 0 / 416 MB, free: 11.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003807/0.2715, allocations: 153.2 kB / 416.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.248e-05/0.2716, allocations: 166.1 kB / 416.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003344/0.272, allocations: 330.7 kB / 416.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.272, allocations: 33.95 kB / 416.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001649/0.2722, allocations: 132 kB / 416.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.2722, allocations: 19.75 kB / 416.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.036e-05/0.2723, allocations: 33.7 kB / 416.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.2725, allocations: 330.8 kB / 417.2 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.796e-05/0.2725, allocations: 23.98 kB / 417.2 MB, free: 9.973 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.2727, allocations: 90.84 kB / 417.3 MB, free: 9.859 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001478/0.2728, allocations: 80.47 kB / 417.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.2728, allocations: 7.938 kB / 417.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002351/0.2731, allocations: 133.3 kB / 417.5 MB, free: 9.621 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.2731, allocations: 10.95 kB / 417.5 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.2731, allocations: 0 / 417.5 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.2731, allocations: 4 kB / 417.5 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.2732, allocations: 12 kB / 417.6 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.2732, allocations: 4 kB / 417.6 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.568e-05/0.2733, allocations: 15.86 kB / 417.6 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.2733, allocations: 4 kB / 417.6 MB, free: 9.574 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,table.y,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.000131/0.2735, allocations: 161.9 kB / 417.7 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-05/0.2736, allocations: 69.34 kB / 417.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.332e-05/0.2736, allocations: 29.7 kB / 417.8 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.2736, allocations: 0 / 417.8 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.2736, allocations: 0 / 417.8 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.2737, allocations: 7.875 kB / 417.8 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000208/0.2739, allocations: 245.5 kB / 418.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.2739, allocations: 0 / 418.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.252e-05/0.274, allocations: 8.062 kB / 418.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.274, allocations: 4 kB / 418.1 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.274, allocations: 4 kB / 418.1 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.274, allocations: 3.984 kB / 418.1 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.274, allocations: 4 kB / 418.1 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002528/0.2743, allocations: 162.4 kB / 418.3 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.59e-05/0.2744, allocations: 116.8 kB / 418.4 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.498e-05/0.2744, allocations: 8 kB / 418.4 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.674e-05/0.2745, allocations: 7.984 kB / 418.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.359e-05/0.2745, allocations: 4.062 kB / 418.4 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/0.2746, allocations: 19.92 kB / 418.4 MB, free: 8.625 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002192/0.2748, allocations: 241.9 kB / 418.6 MB, free: 8.391 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.472e-06/0.2748, allocations: 0 / 418.6 MB, free: 8.391 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002611/0.275, allocations: 35.94 kB / 418.7 MB, free: 8.355 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,table.y,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.0009578/0.276, allocations: 424.8 kB / 419.1 MB, free: 8.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002224/0.2762, allocations: 67.91 kB / 419.2 MB, free: 8.004 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2763, allocations: 0 / 419.2 MB, free: 8.004 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.759e-05/0.2763, allocations: 31.92 kB / 419.2 MB, free: 7.973 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004003/0.2767, allocations: 74.84 kB / 419.3 MB, free: 7.898 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000598/0.2774, allocations: 407.3 kB / 419.7 MB, free: 7.461 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.2777, allocations: 0.7436 MB / 420.4 MB, free: 6.691 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.985e-05/0.2778, allocations: 23.44 kB / 420.4 MB, free: 6.668 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2778, allocations: 0 / 420.4 MB, free: 6.668 MB / 334.1 MB Notification: Performance of Templates: time 0.004768/0.2825, allocations: 2.981 MB / 423.4 MB, free: 3.699 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches