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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001334, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.501/1.501, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 108.6 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001342, allocations: 35.94 kB / 350 MB, free: 60 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3566, allocations: 49.44 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004575/0.3613, allocations: 1.924 MB / 401.4 MB, free: 31.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00256/0.3639, allocations: 1.126 MB / 402.5 MB, free: 30.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001979/0.3642, allocations: 5.25 kB / 402.5 MB, free: 30.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004514/0.3647, allocations: 55.8 kB / 402.6 MB, free: 30.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003309/0.365, allocations: 79.73 kB / 402.7 MB, free: 30.15 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001137/0.3662, allocations: 222.7 kB / 402.9 MB, free: 29.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003019/0.3665, allocations: 167.5 kB / 403 MB, free: 29.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.3667, allocations: 25.56 kB / 403.1 MB, free: 29.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.3668, allocations: 71.62 kB / 403.1 MB, free: 29.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001314/0.367, allocations: 75.69 kB / 403.2 MB, free: 29.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.112e-05/0.367, allocations: 4 kB / 403.2 MB, free: 29.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000196/0.3672, allocations: 47.97 kB / 403.3 MB, free: 29.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.3674, allocations: 59.69 kB / 403.3 MB, free: 29.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.525e-05/0.3675, allocations: 75.48 kB / 403.4 MB, free: 29.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003535/0.3678, allocations: 224.8 kB / 403.6 MB, free: 29.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3679, allocations: 0 / 403.6 MB, free: 29.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3679, allocations: 4 kB / 403.6 MB, free: 29.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.3679, allocations: 0 / 403.6 MB, free: 29.2 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008834/0.3688, allocations: 0.5274 MB / 404.1 MB, free: 28.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.3688, allocations: 8.031 kB / 404.2 MB, free: 28.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.625e-05/0.3689, allocations: 24.66 kB / 404.2 MB, free: 28.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003967/0.3693, allocations: 291.4 kB / 404.5 MB, free: 28.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.217e-05/0.3694, allocations: 4.375 kB / 404.5 MB, free: 28.26 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.815e-05/0.3694, allocations: 12.12 kB / 404.5 MB, free: 28.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004385/0.3699, allocations: 158.3 kB / 404.6 MB, free: 28.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.3699, allocations: 0 / 404.6 MB, free: 28.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.3699, allocations: 0 / 404.6 MB, free: 28.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.3699, allocations: 4 kB / 404.6 MB, free: 28.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001535/0.3701, allocations: 35.92 kB / 404.7 MB, free: 28.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006471/0.3708, allocations: 386.3 kB / 405 MB, free: 27.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003252/0.3711, allocations: 123.9 kB / 405.2 MB, free: 27.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.3712, allocations: 46.56 kB / 405.2 MB, free: 27.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.866e-05/0.3713, allocations: 4.078 kB / 405.2 MB, free: 27.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003208/0.3716, allocations: 91.3 kB / 405.3 MB, free: 27.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.924e-06/0.3717, allocations: 0 / 405.3 MB, free: 27.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005425/0.3722, allocations: 145.4 kB / 405.4 MB, free: 27.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.966e-05/0.3723, allocations: 158.2 kB / 405.6 MB, free: 26.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000408/0.3727, allocations: 330.6 kB / 405.9 MB, free: 26.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.168e-05/0.3727, allocations: 29.7 kB / 406 MB, free: 26.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.753e-05/0.3729, allocations: 128.4 kB / 406.1 MB, free: 26.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.384e-05/0.3729, allocations: 23.73 kB / 406.1 MB, free: 26.42 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.852e-05/0.373, allocations: 21.72 kB / 406.1 MB, free: 26.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.257e-05/0.3731, allocations: 338.8 kB / 406.5 MB, free: 26.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.978e-05/0.3732, allocations: 27.92 kB / 406.5 MB, free: 26.03 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/0.3733, allocations: 86.8 kB / 406.6 MB, free: 25.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002003/0.3736, allocations: 84.45 kB / 406.7 MB, free: 25.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.3736, allocations: 8 kB / 406.7 MB, free: 25.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003084/0.3739, allocations: 129.3 kB / 406.8 MB, free: 25.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.3739, allocations: 8 kB / 406.8 MB, free: 25.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.374, allocations: 0 / 406.8 MB, free: 25.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/0.374, allocations: 0 / 406.8 MB, free: 25.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.3742, allocations: 19.98 kB / 406.8 MB, free: 25.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.3742, allocations: 0 / 406.8 MB, free: 25.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/0.3743, allocations: 7.938 kB / 406.8 MB, free: 25.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.3743, allocations: 7.938 kB / 406.8 MB, free: 25.64 MB / 298.7 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.0001594/0.3745, allocations: 165.8 kB / 407 MB, free: 25.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.3747, allocations: 61.42 kB / 407 MB, free: 25.4 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.547e-05/0.3747, allocations: 29.7 kB / 407.1 MB, free: 25.37 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.3748, allocations: 0 / 407.1 MB, free: 25.37 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3748, allocations: 4 kB / 407.1 MB, free: 25.37 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.3748, allocations: 3.938 kB / 407.1 MB, free: 25.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002316/0.375, allocations: 237.6 kB / 407.3 MB, free: 25.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3751, allocations: 0 / 407.3 MB, free: 25.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.438e-05/0.3751, allocations: 11.94 kB / 407.3 MB, free: 25.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.3752, allocations: 4 kB / 407.3 MB, free: 25.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.3752, allocations: 8.047 kB / 407.3 MB, free: 25.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.3752, allocations: 0 / 407.3 MB, free: 25.06 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.3752, allocations: 4 kB / 407.3 MB, free: 25.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006745/0.3759, allocations: 0.7696 MB / 408.1 MB, free: 24.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/0.376, allocations: 120.7 kB / 408.2 MB, free: 24.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.654e-05/0.3761, allocations: 7.938 kB / 408.2 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.642e-05/0.3762, allocations: 3.984 kB / 408.2 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.493e-05/0.3763, allocations: 8.062 kB / 408.3 MB, free: 24.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.661e-05/0.3763, allocations: 15.92 kB / 408.3 MB, free: 24.05 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002878/0.3766, allocations: 241.9 kB / 408.5 MB, free: 23.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3767, allocations: 0 / 408.5 MB, free: 23.81 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006578/0.3773, allocations: 36 kB / 408.5 MB, free: 23.78 MB / 298.7 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.001431/0.3788, allocations: 428.1 kB / 409 MB, free: 23.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003223/0.3791, allocations: 67.91 kB / 409 MB, free: 23.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3791, allocations: 0 / 409 MB, free: 23.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.3793, allocations: 31.92 kB / 409.1 MB, free: 23.42 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006402/0.3799, allocations: 68.64 kB / 409.1 MB, free: 23.35 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009085/0.3808, allocations: 0.541 MB / 409.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002063/0.3811, allocations: 0.74 MB / 410.4 MB, free: 21.99 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.3812, allocations: 29.53 kB / 410.4 MB, free: 21.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.448e-05/0.3813, allocations: 23.42 kB / 410.5 MB, free: 21.94 MB / 298.7 MB Notification: Performance of SimCode: time 8.42e-07/0.3813, allocations: 0 / 410.5 MB, free: 21.94 MB / 298.7 MB Notification: Performance of Templates: time 0.008244/0.3895, allocations: 2.787 MB / 413.2 MB, free: 19.18 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches