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.0009492/0.0009492, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.0009305/0.0009305, allocations: 149.4 kB / 24.9 MB, free: 9.152 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.9264/0.9264, allocations: 173.4 MB / 201.5 MB, free: 9.199 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.583e-06/1.583e-06, allocations: 0 / 268.5 MB, free: 6.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.45e-05/2.608e-05, allocations: 6.25 kB / 268.5 MB, free: 6.164 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.00212/0.002146, allocations: 1.647 MB / 270.1 MB, free: 4.508 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006126/0.002758, allocations: 498.4 kB / 270.6 MB, free: 4.016 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.904e-05/0.002827, allocations: 4 kB / 270.6 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.227e-05/0.00287, allocations: 3.938 kB / 270.6 MB, free: 4.008 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001282/0.002998, allocations: 23.84 kB / 270.7 MB, free: 3.984 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001969/0.003195, allocations: 43.72 kB / 270.7 MB, free: 3.941 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.009e-05/0.003285, allocations: 47.84 kB / 270.8 MB, free: 3.895 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.004e-05/0.003355, allocations: 12.17 kB / 270.8 MB, free: 3.883 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.267e-05/0.003428, allocations: 35.84 kB / 270.8 MB, free: 3.848 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.541e-05/0.003473, allocations: 15.92 kB / 270.8 MB, free: 3.832 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.603e-05/0.003489, allocations: 4 kB / 270.8 MB, free: 3.828 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.766e-06/0.003498, allocations: 4 kB / 270.8 MB, free: 3.824 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.74e-05/0.003535, allocations: 19.92 kB / 270.8 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.788e-05/0.003553, allocations: 7.984 kB / 270.9 MB, free: 3.797 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.927e-05/0.003642, allocations: 47.77 kB / 270.9 MB, free: 3.75 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.003644, allocations: 0 / 270.9 MB, free: 3.75 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.003645, allocations: 0 / 270.9 MB, free: 3.75 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.003649, allocations: 0 / 270.9 MB, free: 3.75 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.0002799/0.003929, allocations: 272.6 kB / 271.2 MB, free: 3.461 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.00396, allocations: 8.922 kB / 271.2 MB, free: 3.453 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.365e-05/0.003984, allocations: 12.92 kB / 271.2 MB, free: 3.441 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.004124, allocations: 144.5 kB / 271.3 MB, free: 3.277 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.031e-06/0.00413, allocations: 384 / 271.3 MB, free: 3.277 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.215e-06/0.004138, allocations: 8.375 kB / 271.3 MB, free: 3.27 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001586/0.004297, allocations: 110.2 kB / 271.4 MB, free: 3.141 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.004305, allocations: 192 / 271.4 MB, free: 3.141 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.004312, allocations: 4.125 kB / 271.4 MB, free: 3.137 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.004317, allocations: 0 / 271.4 MB, free: 3.137 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.403e-05/0.004331, allocations: 4 kB / 271.4 MB, free: 3.133 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001577/0.004489, allocations: 165 kB / 271.6 MB, free: 2.953 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.86e-05/0.004527, allocations: 33.22 kB / 271.6 MB, free: 2.902 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.582e-05/0.004543, allocations: 17.66 kB / 271.7 MB, free: 2.879 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.004554, allocations: 0 / 271.7 MB, free: 2.879 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.004575, allocations: 38.61 kB / 271.7 MB, free: 2.832 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 5.61e-07/0.004575, allocations: 0 / 271.7 MB, free: 2.832 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 9.994e-05/0.004675, allocations: 45.58 kB / 271.7 MB, free: 2.781 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.004719, allocations: 85.09 kB / 271.8 MB, free: 2.68 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.493e-05/0.004794, allocations: 138.9 kB / 272 MB, free: 2.531 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.726e-06/0.004803, allocations: 25.7 kB / 272 MB, free: 2.5 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.277e-05/0.004836, allocations: 84.14 kB / 272.1 MB, free: 2.414 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.246e-05/0.004848, allocations: 0 / 272.1 MB, free: 2.414 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.421e-05/0.004873, allocations: 21.67 kB / 272.1 MB, free: 2.387 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.38e-05/0.004946, allocations: 318.8 kB / 272.4 MB, free: 2.066 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.975e-06/0.004954, allocations: 4 kB / 272.4 MB, free: 2.062 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.59e-06/0.00496, allocations: 0 / 272.4 MB, free: 2.062 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.155e-05/0.004981, allocations: 12.8 kB / 272.4 MB, free: 2.047 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.004983, allocations: 0 / 272.4 MB, free: 2.047 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.987e-05/0.005023, allocations: 41.75 kB / 272.5 MB, free: 2 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/0.005034, allocations: 4 kB / 272.5 MB, free: 1.996 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.005038, allocations: 3.938 kB / 272.5 MB, free: 1.992 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.005052, allocations: 4 kB / 272.5 MB, free: 1.988 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.755e-05/0.0051, allocations: 0 / 272.5 MB, free: 1.988 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.405e-06/0.005102, allocations: 0 / 272.5 MB, free: 1.988 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.499e-05/0.005117, allocations: 7.984 kB / 272.5 MB, free: 1.98 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.097e-06/0.005121, allocations: 0 / 272.5 MB, free: 1.98 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 4.573e-05/0.005167, allocations: 108.7 kB / 272.6 MB, free: 1.863 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.052e-05/0.005197, allocations: 41.67 kB / 272.6 MB, free: 1.816 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.34e-05/0.005221, allocations: 15.73 kB / 272.6 MB, free: 1.801 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.005222, allocations: 0 / 272.6 MB, free: 1.801 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-06/0.005223, allocations: 4 kB / 272.6 MB, free: 1.797 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.005225, allocations: 0 / 272.6 MB, free: 1.797 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.286e-05/0.005298, allocations: 73.88 kB / 272.7 MB, free: 1.707 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.005299, allocations: 0 / 272.7 MB, free: 1.707 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.81e-05/0.005317, allocations: 4 kB / 272.7 MB, free: 1.703 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.005319, allocations: 0 / 272.7 MB, free: 1.703 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.366e-06/0.005322, allocations: 3.938 kB / 272.7 MB, free: 1.699 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.005324, allocations: 4 kB / 272.7 MB, free: 1.695 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.005325, allocations: 7.969 kB / 272.7 MB, free: 1.688 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.939e-05/0.005385, allocations: 136.3 kB / 272.9 MB, free: 1.535 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.334e-05/0.005408, allocations: 23.92 kB / 272.9 MB, free: 1.512 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.424e-06/0.005416, allocations: 0 / 272.9 MB, free: 1.512 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.864e-05/0.005444, allocations: 0 / 272.9 MB, free: 1.512 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.076e-05/0.005465, allocations: 7.922 kB / 272.9 MB, free: 1.504 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-06/0.005467, allocations: 4 kB / 272.9 MB, free: 1.5 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.068e-05/0.005488, allocations: 27.41 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005488, allocations: 0 / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001052/0.005593, allocations: 4 kB / 272.9 MB, free: 1.469 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.76e-05/0.005661, allocations: 80.45 kB / 273 MB, free: 1.383 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 4.833e-05/0.005709, allocations: 12.86 kB / 273 MB, free: 1.367 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.005713, allocations: 4 kB / 273 MB, free: 1.363 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.011e-05/0.005723, allocations: 8.797 kB / 273 MB, free: 1.352 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001719/0.005895, allocations: 16.3 kB / 273.1 MB, free: 1.332 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000338/0.006233, allocations: 179.8 kB / 273.2 MB, free: 1.129 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.565e-05/0.006268, allocations: 59.34 kB / 273.3 MB, free: 1.051 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.995e-05/0.006288, allocations: 0 / 273.3 MB, free: 1.051 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.107e-05/0.006339, allocations: 59.36 kB / 273.3 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of SimCode: time 8.12e-07/0.00634, allocations: 0 / 273.3 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of Templates: time 0.002093/0.008433, allocations: 0.6714 MB / 274 MB, free: 344 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 -s gbode -gbm=radauIIA3 -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.399752671830356]