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.0009664/0.0009664, 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.0008932/0.0008932, allocations: 145.8 kB / 25.59 MB, free: 8.605 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.8891/0.8891, allocations: 173.4 MB / 202.2 MB, free: 8.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.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.242e-06/1.242e-06, allocations: 0 / 269.2 MB, free: 9.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.397e-05/2.521e-05, allocations: 3.125 kB / 269.2 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.002418/0.002443, allocations: 1.587 MB / 270.8 MB, free: 8.191 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003806/0.006249, allocations: 460.7 kB / 271.2 MB, free: 7.738 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.006357, allocations: 7.938 kB / 271.2 MB, free: 7.73 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.099e-05/0.006418, allocations: 7.922 kB / 271.2 MB, free: 7.723 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.006564, allocations: 13.2 kB / 271.3 MB, free: 7.711 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002553/0.006819, allocations: 43.83 kB / 271.3 MB, free: 7.668 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001041/0.006923, allocations: 48.33 kB / 271.3 MB, free: 7.621 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.049e-05/0.007014, allocations: 11.98 kB / 271.4 MB, free: 7.609 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.519e-05/0.007109, allocations: 36.36 kB / 271.4 MB, free: 7.574 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.382e-05/0.007153, allocations: 8.688 kB / 271.4 MB, free: 7.566 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.697e-05/0.00717, allocations: 4 kB / 271.4 MB, free: 7.562 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.114e-05/0.007181, allocations: 4.625 kB / 271.4 MB, free: 7.559 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.315e-05/0.007224, allocations: 17.58 kB / 271.4 MB, free: 7.543 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.228e-05/0.007246, allocations: 15.92 kB / 271.4 MB, free: 7.527 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001018/0.007348, allocations: 35.83 kB / 271.5 MB, free: 7.492 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.007353, allocations: 4 kB / 271.5 MB, free: 7.488 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.007354, allocations: 0 / 271.5 MB, free: 7.488 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.007359, allocations: 1.344 kB / 271.5 MB, free: 7.488 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.0003661/0.007725, allocations: 400.3 kB / 271.9 MB, free: 7.062 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.007756, allocations: 8.031 kB / 271.9 MB, free: 7.055 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.174e-05/0.007788, allocations: 9.391 kB / 271.9 MB, free: 7.047 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.007958, allocations: 150.7 kB / 272 MB, free: 6.875 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/0.007971, allocations: 384 / 272 MB, free: 6.875 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.00798, allocations: 4.375 kB / 272 MB, free: 6.871 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.008159, allocations: 122.2 kB / 272.2 MB, free: 6.727 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.008166, allocations: 0.6875 kB / 272.2 MB, free: 6.727 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.652e-06/0.008172, allocations: 4.375 kB / 272.2 MB, free: 6.723 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.008178, allocations: 3.938 kB / 272.2 MB, free: 6.719 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.594e-05/0.008194, allocations: 4 kB / 272.2 MB, free: 6.715 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000209/0.008403, allocations: 252 kB / 272.4 MB, free: 6.438 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.166e-05/0.008455, allocations: 50.12 kB / 272.5 MB, free: 6.363 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.151e-05/0.008476, allocations: 23.44 kB / 272.5 MB, free: 6.332 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.185e-05/0.008488, allocations: 0 / 272.5 MB, free: 6.332 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.008511, allocations: 41.39 kB / 272.5 MB, free: 6.281 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.008512, allocations: 0 / 272.5 MB, free: 6.281 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001297/0.008642, allocations: 53.52 kB / 272.6 MB, free: 6.223 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.008686, allocations: 81.11 kB / 272.7 MB, free: 6.125 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.00879, allocations: 200.9 kB / 272.9 MB, free: 5.914 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.042e-05/0.0088, allocations: 25.7 kB / 272.9 MB, free: 5.883 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.802e-05/0.008848, allocations: 134.9 kB / 273 MB, free: 5.746 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.28e-05/0.008861, allocations: 0 / 273 MB, free: 5.746 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003037/0.0119, allocations: 23.33 kB / 273 MB, free: 5.715 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.01202, allocations: 0.4884 MB / 273.5 MB, free: 5.215 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.39e-05/0.01204, allocations: 0 / 273.5 MB, free: 5.215 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.167e-06/0.01205, allocations: 256 / 273.5 MB, free: 5.215 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.028e-05/0.01208, allocations: 23.69 kB / 273.5 MB, free: 5.188 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.01208, allocations: 0 / 273.5 MB, free: 5.188 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.19e-05/0.01214, allocations: 33.7 kB / 273.6 MB, free: 5.148 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.01215, allocations: 4 kB / 273.6 MB, free: 5.145 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.01216, allocations: 3.938 kB / 273.6 MB, free: 5.141 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.917e-06/0.01217, allocations: 0 / 273.6 MB, free: 5.141 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.023e-05/0.01223, allocations: 7.984 kB / 273.6 MB, free: 5.133 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.254e-06/0.01223, allocations: 0 / 273.6 MB, free: 5.133 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.048e-05/0.01225, allocations: 0 / 273.6 MB, free: 5.133 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.989e-06/0.01226, allocations: 3.938 kB / 273.6 MB, free: 5.129 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.525e-05/0.01232, allocations: 160.6 kB / 273.8 MB, free: 4.961 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.634e-05/0.01237, allocations: 41.59 kB / 273.8 MB, free: 4.914 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.002e-05/0.0124, allocations: 19.69 kB / 273.8 MB, free: 4.895 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.0124, allocations: 0 / 273.8 MB, free: 4.895 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.0124, allocations: 4 kB / 273.8 MB, free: 4.891 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.0124, allocations: 0 / 273.8 MB, free: 4.891 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001254/0.01253, allocations: 105.2 kB / 273.9 MB, free: 4.762 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.01253, allocations: 0 / 273.9 MB, free: 4.762 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.058e-05/0.01256, allocations: 8 kB / 273.9 MB, free: 4.754 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.01256, allocations: 4.031 kB / 273.9 MB, free: 4.75 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-06/0.01257, allocations: 3.984 kB / 273.9 MB, free: 4.746 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.01257, allocations: 4 kB / 273.9 MB, free: 4.742 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.01258, allocations: 3.938 kB / 273.9 MB, free: 4.738 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001057/0.01268, allocations: 199.5 kB / 274.1 MB, free: 4.52 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.396e-05/0.01271, allocations: 19.88 kB / 274.2 MB, free: 4.5 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.034e-05/0.01272, allocations: 0 / 274.2 MB, free: 4.5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.917e-05/0.01277, allocations: 0 / 274.2 MB, free: 4.5 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.922e-05/0.0128, allocations: 7.938 kB / 274.2 MB, free: 4.492 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-06/0.01281, allocations: 0 / 274.2 MB, free: 4.492 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.825e-05/0.01286, allocations: 147.2 kB / 274.3 MB, free: 4.348 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01286, allocations: 4 kB / 274.3 MB, free: 4.344 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000203/0.01307, allocations: 4 kB / 274.3 MB, free: 4.34 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.119e-05/0.01316, allocations: 95.25 kB / 274.4 MB, free: 4.238 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.187e-05/0.01322, allocations: 11.69 kB / 274.4 MB, free: 4.223 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01322, allocations: 0 / 274.4 MB, free: 4.223 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.476e-05/0.01324, allocations: 11.62 kB / 274.4 MB, free: 4.207 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.01354, allocations: 23.92 kB / 274.5 MB, free: 4.184 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004112/0.01395, allocations: 173.5 kB / 274.6 MB, free: 3.984 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.008e-05/0.01399, allocations: 59.34 kB / 274.7 MB, free: 3.906 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.432e-05/0.01401, allocations: 4 kB / 274.7 MB, free: 3.902 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.488e-05/0.01407, allocations: 74.19 kB / 274.8 MB, free: 3.828 MB / 250.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01407, allocations: 0 / 274.8 MB, free: 3.828 MB / 250.7 MB Notification: Performance of Templates: time 0.005345/0.01941, allocations: 0.639 MB / 275.4 MB, free: 3.203 MB / 250.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.548370416276157]