Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 145.2 kB / 25.59 MB, free: 8.918 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9308/0.9308, allocations: 173.4 MB / 202.3 MB, free: 8.277 MB / 186.7 MB " [Timeout remaining time 179] 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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 269.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.204e-05/2.403e-05, allocations: 2.312 kB / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002792/0.002816, allocations: 1.592 MB / 270.8 MB, free: 8.195 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008217/0.003637, allocations: 483.4 kB / 271.2 MB, free: 7.719 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.781e-05/0.003725, allocations: 0 / 271.2 MB, free: 7.719 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.69e-05/0.003782, allocations: 17.89 kB / 271.3 MB, free: 7.703 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001525/0.003935, allocations: 3.938 kB / 271.3 MB, free: 7.699 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002557/0.00419, allocations: 51.77 kB / 271.3 MB, free: 7.648 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000106/0.004296, allocations: 47.78 kB / 271.4 MB, free: 7.602 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.137e-05/0.004388, allocations: 12.17 kB / 271.4 MB, free: 7.59 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.758e-05/0.004485, allocations: 33.09 kB / 271.4 MB, free: 7.559 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.254e-05/0.004538, allocations: 19.97 kB / 271.4 MB, free: 7.539 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.651e-05/0.004554, allocations: 0 / 271.4 MB, free: 7.539 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.254e-05/0.004567, allocations: 4.531 kB / 271.4 MB, free: 7.535 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.657e-05/0.004613, allocations: 12.62 kB / 271.4 MB, free: 7.523 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.707e-05/0.00464, allocations: 19.92 kB / 271.5 MB, free: 7.504 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001109/0.004751, allocations: 41.42 kB / 271.5 MB, free: 7.465 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.004754, allocations: 0 / 271.5 MB, free: 7.465 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.004754, allocations: 0 / 271.5 MB, free: 7.465 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.907e-06/0.004758, allocations: 0 / 271.5 MB, free: 7.465 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004139/0.005172, allocations: 405 kB / 271.9 MB, free: 7.035 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.005208, allocations: 8.031 kB / 271.9 MB, free: 7.027 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.98e-05/0.005248, allocations: 18 kB / 271.9 MB, free: 7.012 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000173/0.005421, allocations: 144.4 kB / 272.1 MB, free: 6.844 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.358e-06/0.00543, allocations: 1.062 kB / 272.1 MB, free: 6.844 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.005442, allocations: 12.36 kB / 272.1 MB, free: 6.832 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.005634, allocations: 115.7 kB / 272.2 MB, free: 6.695 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.005641, allocations: 192 / 272.2 MB, free: 6.695 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-06/0.005649, allocations: 4.125 kB / 272.2 MB, free: 6.691 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.005654, allocations: 0.5 kB / 272.2 MB, free: 6.691 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.031e-05/0.005674, allocations: 11.98 kB / 272.2 MB, free: 6.68 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002301/0.005904, allocations: 244.1 kB / 272.5 MB, free: 6.41 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.726e-05/0.005962, allocations: 50.12 kB / 272.5 MB, free: 6.336 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.339e-05/0.005985, allocations: 23.44 kB / 272.5 MB, free: 6.305 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.41e-05/0.005999, allocations: 7.969 kB / 272.5 MB, free: 6.297 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.006023, allocations: 41.39 kB / 272.6 MB, free: 6.246 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.006024, allocations: 0 / 272.6 MB, free: 6.246 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001385/0.006162, allocations: 49.53 kB / 272.6 MB, free: 6.191 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.006208, allocations: 81.36 kB / 272.7 MB, free: 6.094 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.006328, allocations: 197.8 kB / 272.9 MB, free: 5.883 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.058e-05/0.006339, allocations: 25.7 kB / 272.9 MB, free: 5.852 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.479e-05/0.006393, allocations: 138.8 kB / 273.1 MB, free: 5.711 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.481e-05/0.006408, allocations: 3.953 kB / 273.1 MB, free: 5.707 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.864e-05/0.006447, allocations: 23.36 kB / 273.1 MB, free: 5.676 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.006574, allocations: 0.4883 MB / 273.6 MB, free: 5.176 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.231e-05/0.006587, allocations: 8 kB / 273.6 MB, free: 5.168 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.474e-06/0.006594, allocations: 0 / 273.6 MB, free: 5.168 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.791e-05/0.006622, allocations: 11.62 kB / 273.6 MB, free: 5.152 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.006625, allocations: 8.062 kB / 273.6 MB, free: 5.145 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.058e-05/0.006685, allocations: 37.64 kB / 273.6 MB, free: 5.102 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.006699, allocations: 7.938 kB / 273.6 MB, free: 5.094 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.006705, allocations: 4 kB / 273.6 MB, free: 5.09 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.117e-06/0.006714, allocations: 0 / 273.6 MB, free: 5.09 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.81e-05/0.006772, allocations: 0 / 273.6 MB, free: 5.09 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.224e-06/0.006774, allocations: 0 / 273.6 MB, free: 5.09 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.212e-05/0.006796, allocations: 4 kB / 273.6 MB, free: 5.086 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.006801, allocations: 0 / 273.6 MB, free: 5.086 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 6.929e-05/0.006871, allocations: 156.6 kB / 273.8 MB, free: 4.922 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.027e-05/0.006921, allocations: 45.62 kB / 273.8 MB, free: 4.871 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.996e-05/0.006951, allocations: 19.7 kB / 273.9 MB, free: 4.852 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.006952, allocations: 0 / 273.9 MB, free: 4.852 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.006954, allocations: 0 / 273.9 MB, free: 4.852 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.006957, allocations: 0 / 273.9 MB, free: 4.852 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.007078, allocations: 105.2 kB / 274 MB, free: 4.723 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.007079, allocations: 0 / 274 MB, free: 4.723 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.238e-05/0.007112, allocations: 7.984 kB / 274 MB, free: 4.715 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.007117, allocations: 8 kB / 274 MB, free: 4.707 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.799e-06/0.007122, allocations: 0 / 274 MB, free: 4.707 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.007123, allocations: 4.031 kB / 274 MB, free: 4.703 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.007125, allocations: 3.938 kB / 274 MB, free: 4.699 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001101/0.007235, allocations: 203.5 kB / 274.2 MB, free: 4.477 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.95e-05/0.007265, allocations: 4 kB / 274.2 MB, free: 4.473 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.093e-05/0.007276, allocations: 0 / 274.2 MB, free: 4.473 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.351e-05/0.007339, allocations: 4 kB / 274.2 MB, free: 4.469 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.661e-05/0.007366, allocations: 11.92 kB / 274.2 MB, free: 4.457 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.00737, allocations: 0 / 274.2 MB, free: 4.457 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.572e-05/0.007435, allocations: 150.4 kB / 274.4 MB, free: 4.312 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.007436, allocations: 0 / 274.4 MB, free: 4.312 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002539/0.007689, allocations: 8.031 kB / 274.4 MB, free: 4.305 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 9.029e-05/0.00778, allocations: 95.23 kB / 274.5 MB, free: 4.203 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.613e-05/0.007846, allocations: 19.62 kB / 274.5 MB, free: 4.18 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.007848, allocations: 0 / 274.5 MB, free: 4.18 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.52e-05/0.007863, allocations: 15.62 kB / 274.5 MB, free: 4.16 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003305/0.008193, allocations: 16.3 kB / 274.5 MB, free: 4.141 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004568/0.00865, allocations: 177.5 kB / 274.7 MB, free: 3.938 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.425e-05/0.008694, allocations: 63.34 kB / 274.7 MB, free: 3.855 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.737e-05/0.008722, allocations: 0 / 274.7 MB, free: 3.855 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.796e-05/0.00879, allocations: 82.19 kB / 274.8 MB, free: 3.773 MB / 250.7 MB Notification: Performance of SimCode: time 7.62e-07/0.00879, allocations: 0 / 274.8 MB, free: 3.773 MB / 250.7 MB Notification: Performance of Templates: time 0.002817/0.01161, allocations: 0.6962 MB / 275.5 MB, free: 3.094 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.641940456815064]