Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.76/1.76, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 47.92 kB / 373.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1684, allocations: 53.33 MB / 426.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004522/0.1729, allocations: 1.909 MB / 428.7 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003013/0.176, allocations: 1.301 MB / 430 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002245/0.1762, allocations: 3.938 kB / 430 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004005/0.1766, allocations: 75.66 kB / 430.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004828/0.1771, allocations: 135.4 kB / 430.2 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008335/0.1779, allocations: 222.1 kB / 430.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003653/0.1783, allocations: 179.5 kB / 430.6 MB, free: 480 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.1784, allocations: 17.55 kB / 430.6 MB, free: 464 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.1785, allocations: 91.56 kB / 430.7 MB, free: 372 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001369/0.1787, allocations: 83.67 kB / 430.8 MB, free: 288 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.402e-05/0.1787, allocations: 8 kB / 430.8 MB, free: 280 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.1789, allocations: 71.89 kB / 430.9 MB, free: 208 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.179, allocations: 51.83 kB / 430.9 MB, free: 156 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.557e-05/0.1791, allocations: 79.42 kB / 431 MB, free: 76 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2708/0.4499, allocations: 235.9 kB / 431.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.879e-06/0.4499, allocations: 3.047 kB / 431.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.4499, allocations: 0 / 431.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.4499, allocations: 0 / 431.2 MB, free: 8.441 MB / 350.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.0008819/0.4508, allocations: 0.5422 MB / 431.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.4508, allocations: 13 kB / 431.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.349e-05/0.4509, allocations: 23.86 kB / 431.8 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003914/0.4513, allocations: 295.8 kB / 432.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.4513, allocations: 8.094 kB / 432.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.057e-05/0.4514, allocations: 7.219 kB / 432.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003734/0.4517, allocations: 158.3 kB / 432.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.4517, allocations: 3.078 kB / 432.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.934e-05/0.4518, allocations: 5.5 kB / 432.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.4518, allocations: 3.5 kB / 432.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001335/0.4519, allocations: 34.31 kB / 432.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005329/0.4524, allocations: 386.9 kB / 432.7 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002631/0.4527, allocations: 114.2 kB / 432.8 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.39e-05/0.4528, allocations: 50.97 kB / 432.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.069e-05/0.4528, allocations: 2.281 kB / 432.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001759/0.453, allocations: 75.42 kB / 432.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.453, allocations: 2.625 kB / 432.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.000434/0.4534, allocations: 157.5 kB / 433.1 MB, free: 7.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.343e-05/0.4535, allocations: 160.7 kB / 433.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004009/0.4539, allocations: 332.9 kB / 433.6 MB, free: 6.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.4539, allocations: 30.52 kB / 433.6 MB, free: 6.832 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.429e-05/0.454, allocations: 130.5 kB / 433.7 MB, free: 6.746 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.136e-05/0.4541, allocations: 23.92 kB / 433.7 MB, free: 6.734 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.234e-05/0.4541, allocations: 29.34 kB / 433.8 MB, free: 6.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.836e-05/0.4542, allocations: 336.1 kB / 434.1 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.251e-05/0.4543, allocations: 31.19 kB / 434.1 MB, free: 6.402 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.8e-05/0.4544, allocations: 85 kB / 434.2 MB, free: 6.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001404/0.4545, allocations: 81.52 kB / 434.3 MB, free: 6.301 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4545, allocations: 0 / 434.3 MB, free: 6.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002334/0.4547, allocations: 135.1 kB / 434.4 MB, free: 6.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.4548, allocations: 5.344 kB / 434.4 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.4548, allocations: 4.188 kB / 434.4 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.4548, allocations: 2.375 kB / 434.4 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.4549, allocations: 21.44 kB / 434.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.4549, allocations: 3.688 kB / 434.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.453e-05/0.455, allocations: 5.812 kB / 434.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.455, allocations: 5.594 kB / 434.5 MB, free: 6.258 MB / 350.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.0001271/0.4552, allocations: 153.6 kB / 434.6 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.539e-05/0.4552, allocations: 72.05 kB / 434.7 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.832e-05/0.4553, allocations: 29.38 kB / 434.7 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.4553, allocations: 1.312 kB / 434.7 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.4553, allocations: 11.19 kB / 434.7 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.4553, allocations: 4.312 kB / 434.7 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001757/0.4555, allocations: 246.7 kB / 435 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.4555, allocations: 2.594 kB / 435 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.466e-05/0.4556, allocations: 12.31 kB / 435 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.4556, allocations: 1.25 kB / 435 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.248e-05/0.4556, allocations: 2.938 kB / 435 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.4556, allocations: 0 / 435 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4556, allocations: 1.969 kB / 435 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002696/0.4559, allocations: 173.4 kB / 435.2 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.573e-05/0.4559, allocations: 113.6 kB / 435.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.404e-05/0.456, allocations: 2.219 kB / 435.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.818e-05/0.456, allocations: 9.891 kB / 435.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.248e-05/0.4561, allocations: 5.438 kB / 435.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.4561, allocations: 8.312 kB / 435.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002281/0.4563, allocations: 251.7 kB / 435.5 MB, free: 5.605 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4563, allocations: 0 / 435.5 MB, free: 5.605 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002799/0.4566, allocations: 37.97 kB / 435.6 MB, free: 5.598 MB / 350.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.001568/0.4582, allocations: 432.6 kB / 436 MB, free: 5.457 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002511/0.4584, allocations: 72.58 kB / 436.1 MB, free: 5.457 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4584, allocations: 256 / 436.1 MB, free: 5.457 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.783e-05/0.4585, allocations: 33.56 kB / 436.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.459, allocations: 63.11 kB / 436.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006302/0.4596, allocations: 372.3 kB / 436.5 MB, free: 5.238 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001998/0.4598, allocations: 0.7414 MB / 437.3 MB, free: 4.539 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.133e-05/0.4599, allocations: 26.53 kB / 437.3 MB, free: 4.539 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.519e-05/0.46, allocations: 27.61 kB / 437.3 MB, free: 4.531 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.46, allocations: 0 / 437.3 MB, free: 4.531 MB / 350.1 MB Notification: Performance of Templates: time 0.00818/0.4681, allocations: 2.909 MB / 440.2 MB, free: 4.312 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.5334704630076885]