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.001076/0.001076, allocations: 85.17 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.00111/0.00111, allocations: 147.1 kB / 24.89 MB, free: 8.742 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.9477/0.9477, allocations: 173.4 MB / 201.5 MB, free: 8.746 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.353e-06/1.353e-06, allocations: 0 / 268.4 MB, free: 6.059 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.779e-05/2.915e-05, allocations: 10.05 kB / 268.5 MB, free: 6.051 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002809/0.002838, allocations: 1.6 MB / 270.1 MB, free: 4.438 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008185/0.003656, allocations: 0.4906 MB / 270.5 MB, free: 3.941 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.649e-05/0.003743, allocations: 7.938 kB / 270.5 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.606e-05/0.003799, allocations: 7.922 kB / 270.6 MB, free: 3.926 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001495/0.003948, allocations: 7.875 kB / 270.6 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002201/0.004169, allocations: 47.83 kB / 270.6 MB, free: 3.871 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001053/0.004274, allocations: 51.72 kB / 270.7 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.046e-05/0.004354, allocations: 12.17 kB / 270.7 MB, free: 3.809 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.475e-05/0.004439, allocations: 27.91 kB / 270.7 MB, free: 3.781 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.22e-05/0.004491, allocations: 23.91 kB / 270.7 MB, free: 3.758 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.125e-05/0.004513, allocations: 4 kB / 270.7 MB, free: 3.754 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.838e-06/0.004522, allocations: 4 kB / 270.7 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.268e-05/0.004565, allocations: 12 kB / 270.7 MB, free: 3.738 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.357e-05/0.004589, allocations: 15.92 kB / 270.8 MB, free: 3.723 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.004695, allocations: 35.83 kB / 270.8 MB, free: 3.688 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.004697, allocations: 0 / 270.8 MB, free: 3.688 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.004698, allocations: 0 / 270.8 MB, free: 3.688 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.176e-06/0.004701, allocations: 0 / 270.8 MB, free: 3.688 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.0003441/0.005045, allocations: 280.6 kB / 271.1 MB, free: 3.391 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.005083, allocations: 12.86 kB / 271.1 MB, free: 3.379 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.824e-05/0.005111, allocations: 4.938 kB / 271.1 MB, free: 3.375 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000162/0.005273, allocations: 137.7 kB / 271.2 MB, free: 3.215 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.005285, allocations: 8.375 kB / 271.2 MB, free: 3.207 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.005296, allocations: 384 / 271.2 MB, free: 3.207 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.005473, allocations: 114.2 kB / 271.3 MB, free: 3.074 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.00548, allocations: 192 / 271.3 MB, free: 3.074 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-06/0.005489, allocations: 8.125 kB / 271.3 MB, free: 3.066 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.005494, allocations: 0 / 271.3 MB, free: 3.066 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.711e-05/0.005511, allocations: 11.94 kB / 271.4 MB, free: 3.055 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001738/0.005685, allocations: 149.1 kB / 271.5 MB, free: 2.891 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.12e-05/0.005736, allocations: 37.12 kB / 271.5 MB, free: 2.836 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.949e-05/0.005756, allocations: 17.84 kB / 271.6 MB, free: 2.812 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.005767, allocations: 0 / 271.6 MB, free: 2.812 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.005791, allocations: 42.55 kB / 271.6 MB, free: 2.762 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 7.41e-07/0.005792, allocations: 0 / 271.6 MB, free: 2.762 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001136/0.005906, allocations: 45.56 kB / 271.6 MB, free: 2.711 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.00595, allocations: 85.3 kB / 271.7 MB, free: 2.609 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.593e-05/0.006036, allocations: 137.9 kB / 271.9 MB, free: 2.465 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/0.006046, allocations: 25.7 kB / 271.9 MB, free: 2.434 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.758e-05/0.006083, allocations: 92.11 kB / 272 MB, free: 2.34 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.255e-05/0.006096, allocations: 4 kB / 272 MB, free: 2.336 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-05/0.006125, allocations: 13.67 kB / 272 MB, free: 2.316 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.301e-05/0.006208, allocations: 314.8 kB / 272.3 MB, free: 2 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.176e-06/0.006216, allocations: 3.984 kB / 272.3 MB, free: 1.996 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.803e-06/0.006223, allocations: 3.938 kB / 272.3 MB, free: 1.992 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.938e-05/0.006242, allocations: 8.859 kB / 272.3 MB, free: 1.98 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.006244, allocations: 4.062 kB / 272.3 MB, free: 1.977 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.816e-05/0.006292, allocations: 37.7 kB / 272.4 MB, free: 1.934 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.006304, allocations: 10.95 kB / 272.4 MB, free: 1.926 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.00631, allocations: 3.938 kB / 272.4 MB, free: 1.922 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.006321, allocations: 0 / 272.4 MB, free: 1.922 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.337e-05/0.006374, allocations: 4 kB / 272.4 MB, free: 1.918 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.214e-06/0.006376, allocations: 0 / 272.4 MB, free: 1.918 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.86e-05/0.006395, allocations: 0 / 272.4 MB, free: 1.918 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-06/0.006399, allocations: 0 / 272.4 MB, free: 1.918 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.754e-05/0.006457, allocations: 120.6 kB / 272.5 MB, free: 1.789 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.511e-05/0.006502, allocations: 37.72 kB / 272.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.748e-05/0.006529, allocations: 15.75 kB / 272.5 MB, free: 1.73 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.006531, allocations: 0 / 272.5 MB, free: 1.73 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.006532, allocations: 0 / 272.5 MB, free: 1.73 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.006535, allocations: 0 / 272.5 MB, free: 1.73 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001162/0.006651, allocations: 73.88 kB / 272.6 MB, free: 1.641 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.006653, allocations: 4 kB / 272.6 MB, free: 1.637 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.327e-05/0.006676, allocations: 7.984 kB / 272.6 MB, free: 1.629 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.00668, allocations: 3.984 kB / 272.6 MB, free: 1.625 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.138e-06/0.006684, allocations: 0 / 272.6 MB, free: 1.625 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.006685, allocations: 4.031 kB / 272.6 MB, free: 1.621 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.006687, allocations: 3.938 kB / 272.6 MB, free: 1.617 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.529e-05/0.006762, allocations: 144.3 kB / 272.8 MB, free: 1.457 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.561e-05/0.006788, allocations: 7.953 kB / 272.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.01e-05/0.006798, allocations: 0 / 272.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.328e-05/0.006851, allocations: 7.984 kB / 272.8 MB, free: 1.441 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.272e-05/0.006874, allocations: 7.875 kB / 272.8 MB, free: 1.434 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.006877, allocations: 0 / 272.8 MB, free: 1.434 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.93e-05/0.006906, allocations: 28.83 kB / 272.8 MB, free: 1.402 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.006906, allocations: 0 / 272.8 MB, free: 1.402 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002041/0.00711, allocations: 12.03 kB / 272.8 MB, free: 1.391 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 7.207e-05/0.007182, allocations: 76.42 kB / 272.9 MB, free: 1.309 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.352e-05/0.007236, allocations: 16.78 kB / 272.9 MB, free: 1.289 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.007238, allocations: 0 / 272.9 MB, free: 1.289 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.301e-05/0.007251, allocations: 8.859 kB / 272.9 MB, free: 1.277 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002258/0.007477, allocations: 16.3 kB / 273 MB, free: 1.258 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003861/0.007863, allocations: 179.3 kB / 273.1 MB, free: 1.059 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.141e-05/0.007905, allocations: 59.34 kB / 273.2 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.13e-05/0.007926, allocations: 4 kB / 273.2 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.536e-05/0.007981, allocations: 55.38 kB / 273.3 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of SimCode: time 7.02e-07/0.007982, allocations: 0 / 273.3 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of Templates: time 0.002371/0.01035, allocations: 0.6724 MB / 273.9 MB, free: 268 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.513531108852476]