Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.0006998/0.0006998, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009956/0.001695, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006305/0.0006305, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009926/0.001623, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8035/0.8035, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1287/0.9323, allocations: 52.48 MB / 238.5 MB, free: 7.629 MB / 234.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 239.7 MB, free: 6.375 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.054e-05/1.192e-05, allocations: 3.719 kB / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.002582/0.002594, allocations: 1.647 MB / 241.4 MB, free: 4.734 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.000669/0.003263, allocations: 470.6 kB / 241.8 MB, free: 4.27 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.397e-05/0.003327, allocations: 3.938 kB / 241.8 MB, free: 4.266 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.551e-05/0.003363, allocations: 7.922 kB / 241.8 MB, free: 4.258 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.761e-05/0.00343, allocations: 13.34 kB / 241.9 MB, free: 4.246 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001827/0.003613, allocations: 47.77 kB / 241.9 MB, free: 4.199 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.003713, allocations: 39.86 kB / 241.9 MB, free: 4.16 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.275e-05/0.003786, allocations: 20.59 kB / 242 MB, free: 4.141 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.788e-05/0.003884, allocations: 36.44 kB / 242 MB, free: 4.105 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.898e-05/0.003933, allocations: 7.938 kB / 242 MB, free: 4.098 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.146e-05/0.003954, allocations: 4.562 kB / 242 MB, free: 4.094 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.286e-05/0.003967, allocations: 5.656 kB / 242 MB, free: 4.09 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.656e-05/0.004004, allocations: 15.92 kB / 242 MB, free: 4.074 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.178e-05/0.004026, allocations: 15.98 kB / 242.1 MB, free: 4.059 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 9.803e-05/0.004124, allocations: 31.8 kB / 242.1 MB, free: 4.027 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.798e-06/0.004133, allocations: 0 / 242.1 MB, free: 4.027 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.42e-07/0.004134, allocations: 1.188 kB / 242.1 MB, free: 4.027 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.004145, allocations: 0 / 242.1 MB, free: 4.027 MB / 234.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.0003464/0.004492, allocations: 292.2 kB / 242.4 MB, free: 3.719 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.004524, allocations: 12.98 kB / 242.4 MB, free: 3.707 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.357e-05/0.004558, allocations: 8.938 kB / 242.4 MB, free: 3.699 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.004722, allocations: 134.6 kB / 242.5 MB, free: 3.543 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.364e-06/0.004729, allocations: 1.125 kB / 242.5 MB, free: 3.543 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.004742, allocations: 8.375 kB / 242.5 MB, free: 3.535 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001767/0.004919, allocations: 111.7 kB / 242.6 MB, free: 3.406 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.004926, allocations: 4.875 kB / 242.6 MB, free: 3.402 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.032e-06/0.004932, allocations: 384 / 242.6 MB, free: 3.402 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.004939, allocations: 6.438 kB / 242.7 MB, free: 3.398 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.957e-05/0.004959, allocations: 11.92 kB / 242.7 MB, free: 3.387 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001734/0.005132, allocations: 153.1 kB / 242.8 MB, free: 3.219 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.155e-05/0.005173, allocations: 29.16 kB / 242.8 MB, free: 3.172 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.145e-05/0.005195, allocations: 25.75 kB / 242.9 MB, free: 3.141 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.288e-05/0.005208, allocations: 1.438 kB / 242.9 MB, free: 3.141 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.005232, allocations: 34.56 kB / 242.9 MB, free: 3.098 MB / 234.7 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.005233, allocations: 0 / 242.9 MB, free: 3.098 MB / 234.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001145/0.005348, allocations: 50.38 kB / 243 MB, free: 3.043 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/0.00539, allocations: 81.11 kB / 243 MB, free: 2.945 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.037e-05/0.005481, allocations: 139 kB / 243.2 MB, free: 2.801 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.478e-06/0.00549, allocations: 25.7 kB / 243.2 MB, free: 2.77 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.219e-05/0.005522, allocations: 80.14 kB / 243.3 MB, free: 2.688 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.349e-05/0.005536, allocations: 7.125 kB / 243.3 MB, free: 2.684 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.2e-05/0.005568, allocations: 25.64 kB / 243.3 MB, free: 2.652 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.783e-05/0.005646, allocations: 314.8 kB / 243.6 MB, free: 2.336 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.523e-06/0.005652, allocations: 0 / 243.6 MB, free: 2.336 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.841e-06/0.005658, allocations: 0 / 243.6 MB, free: 2.336 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.146e-05/0.00568, allocations: 12.8 kB / 243.6 MB, free: 2.32 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.005681, allocations: 0 / 243.6 MB, free: 2.32 MB / 234.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.355e-05/0.005735, allocations: 34.66 kB / 243.7 MB, free: 2.281 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.005746, allocations: 8 kB / 243.7 MB, free: 2.273 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.536e-06/0.00575, allocations: 0.9062 kB / 243.7 MB, free: 2.273 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.005762, allocations: 3.938 kB / 243.7 MB, free: 2.27 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.095e-05/0.005812, allocations: 5.781 kB / 243.7 MB, free: 2.266 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.828e-06/0.005816, allocations: 3.984 kB / 243.7 MB, free: 2.262 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.981e-05/0.005836, allocations: 0 / 243.7 MB, free: 2.262 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-06/0.005841, allocations: 0 / 243.7 MB, free: 2.262 MB / 234.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.599e-05/0.005897, allocations: 113.3 kB / 243.8 MB, free: 2.141 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.863e-05/0.005946, allocations: 37.62 kB / 243.8 MB, free: 2.098 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.723e-05/0.005973, allocations: 16.48 kB / 243.8 MB, free: 2.078 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.005977, allocations: 5.906 kB / 243.8 MB, free: 2.074 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.005978, allocations: 0 / 243.8 MB, free: 2.074 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.005981, allocations: 0 / 243.8 MB, free: 2.074 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.006095, allocations: 73.88 kB / 243.9 MB, free: 1.984 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.006096, allocations: 0 / 243.9 MB, free: 1.984 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.804e-05/0.006124, allocations: 7.938 kB / 243.9 MB, free: 1.977 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.934e-05/0.006153, allocations: 20.42 kB / 243.9 MB, free: 1.957 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.006155, allocations: 0.8438 kB / 243.9 MB, free: 1.957 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.927e-06/0.006159, allocations: 0 / 243.9 MB, free: 1.957 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.482e-05/0.006194, allocations: 9.562 kB / 244 MB, free: 1.949 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.006195, allocations: 0 / 244 MB, free: 1.949 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.833e-05/0.006273, allocations: 140.3 kB / 244.1 MB, free: 1.793 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.006286, allocations: 4 kB / 244.1 MB, free: 1.789 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.626e-05/0.006342, allocations: 4.406 kB / 244.1 MB, free: 1.785 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.062e-05/0.006363, allocations: 7.938 kB / 244.1 MB, free: 1.777 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-06/0.006367, allocations: 3.984 kB / 244.1 MB, free: 1.773 MB / 234.7 MB Notification: Performance of sorting global known variables: time 2.882e-05/0.006396, allocations: 20.84 kB / 244.1 MB, free: 1.75 MB / 234.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.006396, allocations: 4 kB / 244.1 MB, free: 1.746 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001965/0.006593, allocations: 4 kB / 244.1 MB, free: 1.742 MB / 234.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.352e-05/0.006656, allocations: 72.42 kB / 244.2 MB, free: 1.664 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 5.667e-05/0.006713, allocations: 20.84 kB / 244.2 MB, free: 1.641 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.006717, allocations: 0 / 244.2 MB, free: 1.641 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 2.343e-05/0.006741, allocations: 16.94 kB / 244.3 MB, free: 1.621 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.007002, allocations: 101.3 kB / 244.3 MB, free: 1.5 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008231/0.007825, allocations: 167.5 kB / 244.5 MB, free: 1.305 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.254e-05/0.007868, allocations: 63.28 kB / 244.6 MB, free: 1.223 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 2.288e-05/0.007891, allocations: 4 kB / 244.6 MB, free: 1.219 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.541e-05/0.007946, allocations: 51.38 kB / 244.6 MB, free: 1.168 MB / 234.7 MB Notification: Performance of SimCode: time 5.71e-07/0.007947, allocations: 4.219 kB / 244.6 MB, free: 1.164 MB / 234.7 MB Notification: Performance of Templates: time 0.002398/0.01034, allocations: 0.613 MB / 245.2 MB, free: 0.5703 MB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.0999770360067487]