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.001364/0.001364, allocations: 72.08 kB / 21.69 MB, free: 2.855 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.001057/0.001057, allocations: 143.7 kB / 24.97 MB, free: 8.816 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.9614/0.9614, allocations: 173.3 MB / 201.5 MB, free: 9.32 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.432e-06/1.432e-06, allocations: 0 / 268.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.841e-05/1.985e-05, allocations: 6.25 kB / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.001816/0.001836, allocations: 1.595 MB / 269.7 MB, free: 5.125 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006229/0.002459, allocations: 490.5 kB / 270.1 MB, free: 4.641 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.775e-05/0.002547, allocations: 3.938 kB / 270.1 MB, free: 4.637 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.165e-05/0.002599, allocations: 7.922 kB / 270.1 MB, free: 4.629 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001478/0.002746, allocations: 19.88 kB / 270.2 MB, free: 4.609 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002605/0.003007, allocations: 43.81 kB / 270.2 MB, free: 4.566 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.609e-05/0.003103, allocations: 51.73 kB / 270.3 MB, free: 4.516 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.533e-05/0.003198, allocations: 12.17 kB / 270.3 MB, free: 4.504 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.976e-05/0.003268, allocations: 35.89 kB / 270.3 MB, free: 4.469 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.437e-05/0.003312, allocations: 15.92 kB / 270.3 MB, free: 4.453 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.003332, allocations: 4 kB / 270.3 MB, free: 4.449 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.458e-06/0.003341, allocations: 4 kB / 270.3 MB, free: 4.445 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.873e-05/0.00338, allocations: 8 kB / 270.3 MB, free: 4.438 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.191e-05/0.003402, allocations: 7.938 kB / 270.3 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.609e-05/0.003498, allocations: 43.83 kB / 270.4 MB, free: 4.387 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.0035, allocations: 0 / 270.4 MB, free: 4.387 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.003501, allocations: 4 kB / 270.4 MB, free: 4.383 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.126e-06/0.003504, allocations: 0 / 270.4 MB, free: 4.383 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.0003461/0.00385, allocations: 412.2 kB / 270.8 MB, free: 3.945 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.003882, allocations: 8.922 kB / 270.8 MB, free: 3.938 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.745e-05/0.003919, allocations: 20.78 kB / 270.8 MB, free: 3.918 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001438/0.004063, allocations: 135.6 kB / 271 MB, free: 3.762 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.004074, allocations: 4.375 kB / 271 MB, free: 3.758 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/0.004086, allocations: 8.375 kB / 271 MB, free: 3.75 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00021/0.004296, allocations: 121.6 kB / 271.1 MB, free: 3.605 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.501e-06/0.004301, allocations: 192 / 271.1 MB, free: 3.605 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-06/0.004311, allocations: 8.125 kB / 271.1 MB, free: 3.598 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.004317, allocations: 0 / 271.1 MB, free: 3.598 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.932e-05/0.004336, allocations: 7.938 kB / 271.1 MB, free: 3.59 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002271/0.004563, allocations: 259.5 kB / 271.4 MB, free: 3.297 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.012e-05/0.004614, allocations: 66.05 kB / 271.4 MB, free: 3.207 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.408e-05/0.004638, allocations: 27.5 kB / 271.4 MB, free: 3.172 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.004652, allocations: 0 / 271.4 MB, free: 3.172 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.004672, allocations: 37.33 kB / 271.5 MB, free: 3.125 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 8.22e-07/0.004672, allocations: 4 kB / 271.5 MB, free: 3.121 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001299/0.004802, allocations: 49.58 kB / 271.5 MB, free: 3.066 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.031e-05/0.004843, allocations: 85.05 kB / 271.6 MB, free: 2.965 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.436e-05/0.004937, allocations: 193.9 kB / 271.8 MB, free: 2.758 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.245e-06/0.004945, allocations: 25.7 kB / 271.8 MB, free: 2.727 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.817e-05/0.004993, allocations: 143 kB / 272 MB, free: 2.582 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.311e-05/0.005006, allocations: 7.953 kB / 272 MB, free: 2.574 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.799e-05/0.005034, allocations: 19.38 kB / 272 MB, free: 2.547 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.993e-05/0.005134, allocations: 0.4884 MB / 272.5 MB, free: 2.047 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.337e-06/0.005144, allocations: 0 / 272.5 MB, free: 2.047 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.664e-06/0.005151, allocations: 7.922 kB / 272.5 MB, free: 2.039 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.13e-05/0.005173, allocations: 11.69 kB / 272.5 MB, free: 2.023 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.005175, allocations: 0 / 272.5 MB, free: 2.023 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.98e-05/0.005214, allocations: 37.59 kB / 272.5 MB, free: 1.98 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.005228, allocations: 8 kB / 272.5 MB, free: 1.973 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.005233, allocations: 4.094 kB / 272.6 MB, free: 1.969 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.005244, allocations: 0 / 272.6 MB, free: 1.969 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.589e-05/0.0053, allocations: 7.984 kB / 272.6 MB, free: 1.961 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/0.005304, allocations: 0 / 272.6 MB, free: 1.961 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.364e-05/0.005317, allocations: 0 / 272.6 MB, free: 1.961 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.499e-06/0.005322, allocations: 0 / 272.6 MB, free: 1.961 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 5.899e-05/0.005381, allocations: 164.5 kB / 272.7 MB, free: 1.789 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.171e-05/0.005413, allocations: 41.59 kB / 272.8 MB, free: 1.742 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.57e-05/0.005438, allocations: 11.8 kB / 272.8 MB, free: 1.73 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.00544, allocations: 0 / 272.8 MB, free: 1.73 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.005445, allocations: 8.031 kB / 272.8 MB, free: 1.723 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.005447, allocations: 0 / 272.8 MB, free: 1.723 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.277e-05/0.00554, allocations: 124.6 kB / 272.9 MB, free: 1.566 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.005541, allocations: 0 / 272.9 MB, free: 1.566 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.86e-05/0.00556, allocations: 7.984 kB / 272.9 MB, free: 1.559 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.005562, allocations: 4 kB / 272.9 MB, free: 1.555 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.014e-06/0.005569, allocations: 3.938 kB / 272.9 MB, free: 1.551 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.00557, allocations: 0 / 272.9 MB, free: 1.551 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.005571, allocations: 0 / 272.9 MB, free: 1.551 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.84e-05/0.005659, allocations: 203.5 kB / 273.1 MB, free: 1.328 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.334e-05/0.005683, allocations: 23.97 kB / 273.1 MB, free: 1.305 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.005695, allocations: 7.922 kB / 273.1 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.092e-05/0.005726, allocations: 4 kB / 273.2 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.509e-05/0.005751, allocations: 3.938 kB / 273.2 MB, free: 1.289 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.005753, allocations: 0 / 273.2 MB, free: 1.289 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.446e-05/0.005808, allocations: 146.1 kB / 273.3 MB, free: 1.148 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.005808, allocations: 0 / 273.3 MB, free: 1.148 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001399/0.005948, allocations: 8 kB / 273.3 MB, free: 1.141 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 6.612e-05/0.006014, allocations: 99.23 kB / 273.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.701e-05/0.006081, allocations: 19.62 kB / 273.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.006082, allocations: 0 / 273.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.25e-05/0.006095, allocations: 7.688 kB / 273.4 MB, free: 1 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002325/0.006327, allocations: 27.2 kB / 273.5 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003928/0.00672, allocations: 173.2 kB / 273.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.437e-05/0.006754, allocations: 59.34 kB / 273.7 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.905e-05/0.006773, allocations: 4.219 kB / 273.7 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.674e-05/0.0068, allocations: 12.5 kB / 273.7 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of SimCode: time 8.72e-07/0.006801, allocations: 0 / 273.7 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of Templates: time 0.002006/0.008807, allocations: 0.6298 MB / 274.3 MB, free: 56 kB / 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.639398816972971]