Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000897/0.0008971, allocations: 91.19 kB / 17.31 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009818/0.0009819, allocations: 180.9 kB / 18.21 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.265/1.265, allocations: 223.3 MB / 242.3 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002218/0.0002219, allocations: 7.938 kB / 302.1 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07272/0.07296, allocations: 50.42 MB / 352.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002414/0.0754, allocations: 1.582 MB / 354.1 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001787/0.07721, allocations: 1.095 MB / 355.2 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.672e-05/0.07733, allocations: 4 kB / 355.2 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002661/0.0776, allocations: 59.8 kB / 355.2 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001993/0.07781, allocations: 75.73 kB / 355.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006269/0.07845, allocations: 234.3 kB / 355.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001977/0.07866, allocations: 163.5 kB / 355.7 MB, free: 500 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.354e-05/0.07876, allocations: 25.55 kB / 355.7 MB, free: 476 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.25e-05/0.07886, allocations: 59.7 kB / 355.8 MB, free: 416 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.07898, allocations: 75.62 kB / 355.9 MB, free: 340 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.705e-05/0.079, allocations: 0 / 355.9 MB, free: 340 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001236/0.07914, allocations: 59.97 kB / 355.9 MB, free: 280 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.881e-05/0.07921, allocations: 43.83 kB / 356 MB, free: 236 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.35e-05/0.0793, allocations: 101.1 kB / 356.1 MB, free: 128 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.07952, allocations: 168.1 kB / 356.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.07953, allocations: 0 / 356.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.07954, allocations: 4 kB / 356.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.087e-06/0.07955, allocations: 0 / 356.2 MB, free: 15.95 MB / 302.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.0005852/0.08014, allocations: 0.4961 MB / 356.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.08017, allocations: 8.031 kB / 356.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.175e-05/0.08023, allocations: 32.59 kB / 356.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002896/0.08053, allocations: 279.6 kB / 357 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.08056, allocations: 16.31 kB / 357 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.719e-05/0.08058, allocations: 8.125 kB / 357.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003025/0.08089, allocations: 155.6 kB / 357.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.862e-06/0.08091, allocations: 0 / 357.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.08093, allocations: 4 kB / 357.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.08094, allocations: 4 kB / 357.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001085/0.08105, allocations: 31.92 kB / 357.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004582/0.08152, allocations: 386.4 kB / 357.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002326/0.08176, allocations: 115.9 kB / 357.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.868e-05/0.08186, allocations: 50.5 kB / 357.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.0819, allocations: 3.984 kB / 357.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001769/0.08208, allocations: 79.38 kB / 357.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.214e-06/0.0821, allocations: 0 / 357.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003646/0.08247, allocations: 149.2 kB / 358 MB, free: 13.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.63e-05/0.08255, allocations: 170.5 kB / 358.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003141/0.08287, allocations: 330.6 kB / 358.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.0829, allocations: 25.7 kB / 358.5 MB, free: 13.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.05e-05/0.08299, allocations: 128.1 kB / 358.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.08302, allocations: 19.8 kB / 358.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.812e-05/0.08305, allocations: 13.72 kB / 358.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.897e-05/0.08316, allocations: 338.8 kB / 359 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.178e-05/0.08324, allocations: 27.98 kB / 359 MB, free: 12.83 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.841e-05/0.08334, allocations: 78.86 kB / 359.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001492/0.0835, allocations: 88.22 kB / 359.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.08351, allocations: 0 / 359.2 MB, free: 12.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002219/0.08374, allocations: 121.6 kB / 359.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.08376, allocations: 11.94 kB / 359.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.08377, allocations: 64 / 359.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.08379, allocations: 4 kB / 359.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.0839, allocations: 23.92 kB / 359.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.08392, allocations: 8.125 kB / 359.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.438e-05/0.08402, allocations: 15.84 kB / 359.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.08404, allocations: 4 kB / 359.4 MB, free: 12.44 MB / 302.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.0001204/0.08416, allocations: 145.8 kB / 359.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.831e-05/0.08425, allocations: 69.44 kB / 359.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.984e-05/0.08431, allocations: 25.7 kB / 359.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.08432, allocations: 0 / 359.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.08433, allocations: 8.062 kB / 359.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.08434, allocations: 3.938 kB / 359.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001857/0.08453, allocations: 241.5 kB / 359.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.08455, allocations: 3.938 kB / 359.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.633e-05/0.08462, allocations: 11.98 kB / 359.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.08463, allocations: 4 kB / 359.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.08465, allocations: 4 kB / 359.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.08465, allocations: 4 kB / 359.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.08466, allocations: 3.938 kB / 359.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002499/0.08491, allocations: 162.5 kB / 360.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.012e-05/0.08502, allocations: 120.8 kB / 360.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.917e-05/0.08505, allocations: 0 / 360.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.319e-05/0.08513, allocations: 7.984 kB / 360.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.226e-05/0.08518, allocations: 11.98 kB / 360.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.0852, allocations: 7.938 kB / 360.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002202/0.08543, allocations: 245.9 kB / 360.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08544, allocations: 0 / 360.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002663/0.08571, allocations: 28 kB / 360.5 MB, free: 11.25 MB / 302.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.0009043/0.08662, allocations: 425 kB / 360.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002056/0.08683, allocations: 71.91 kB / 361 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.08685, allocations: 4 kB / 361 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.889e-05/0.08694, allocations: 36.17 kB / 361 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000401/0.08735, allocations: 67.31 kB / 361.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005746/0.08793, allocations: 450 kB / 361.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.08819, allocations: 0.74 MB / 362.2 MB, free: 9.566 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.956e-05/0.08825, allocations: 23.44 kB / 362.3 MB, free: 9.543 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.08826, allocations: 0 / 362.3 MB, free: 9.543 MB / 302.1 MB Notification: Performance of Templates: time 0.004557/0.09282, allocations: 2.861 MB / 365.1 MB, free: 6.691 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches