Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001466/0.001466, allocations: 84.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001263/0.001263, allocations: 165.8 kB / 24.91 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.006/1.006, allocations: 177 MB / 205.2 MB, free: 5.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 273.4 MB, free: 1.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.288e-05/2.456e-05, allocations: 2.312 kB / 273.4 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002153/0.002178, allocations: 1.684 MB / 275.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004027/0.00258, allocations: 179.2 kB / 275.2 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.629e-05/0.002657, allocations: 4 kB / 275.2 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001003/0.002757, allocations: 11.86 kB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001121/0.002869, allocations: 27.73 kB / 275.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001772/0.003046, allocations: 47.88 kB / 275.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.955e-05/0.003146, allocations: 59.78 kB / 275.4 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.226e-05/0.003238, allocations: 39.91 kB / 275.4 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.899e-05/0.003287, allocations: 31.91 kB / 275.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.23e-05/0.003359, allocations: 31.89 kB / 275.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.663e-05/0.003386, allocations: 4 kB / 275.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.292e-05/0.003399, allocations: 4 kB / 275.5 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.875e-05/0.003438, allocations: 27.92 kB / 275.5 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.608e-05/0.003464, allocations: 19.92 kB / 275.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001103/0.003574, allocations: 71.67 kB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.003576, allocations: 0 / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.003577, allocations: 0 / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.586e-06/0.003581, allocations: 0 / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.000311/0.003892, allocations: 312.4 kB / 275.9 MB, free: 14.63 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.003928, allocations: 15.97 kB / 275.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.713e-05/0.003955, allocations: 8.938 kB / 275.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.004099, allocations: 153.5 kB / 276.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.004108, allocations: 8.375 kB / 276.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.00412, allocations: 12.3 kB / 276.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002262/0.004346, allocations: 175.8 kB / 276.3 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.004353, allocations: 192 / 276.3 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.004362, allocations: 384 / 276.3 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.004367, allocations: 4.375 kB / 276.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.116e-05/0.004399, allocations: 26.69 kB / 276.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002272/0.004626, allocations: 248.1 kB / 276.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001128/0.004739, allocations: 94.53 kB / 276.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.047e-05/0.004779, allocations: 46.75 kB / 276.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.004796, allocations: 8 kB / 276.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.004817, allocations: 34.56 kB / 276.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.004818, allocations: 0 / 276.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001509/0.004969, allocations: 89.47 kB / 276.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.974e-05/0.005019, allocations: 114.8 kB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.934e-05/0.005098, allocations: 160 kB / 277.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.949e-06/0.005108, allocations: 25.7 kB / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.039e-05/0.005139, allocations: 84.42 kB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.047e-06/0.005148, allocations: 3.984 kB / 277.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.616e-05/0.005174, allocations: 29.91 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.456e-05/0.005248, allocations: 322.8 kB / 277.5 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.525e-06/0.005256, allocations: 4 kB / 277.5 MB, free: 12.81 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.279e-05/0.005269, allocations: 13.66 kB / 277.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.943e-05/0.005298, allocations: 17.72 kB / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.0053, allocations: 0 / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.791e-05/0.005348, allocations: 45.62 kB / 277.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.005362, allocations: 4 kB / 277.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.005366, allocations: 128 / 277.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.005377, allocations: 11.94 kB / 277.6 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.597e-05/0.005423, allocations: 7.984 kB / 277.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.354e-06/0.005426, allocations: 0 / 277.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.364e-05/0.005439, allocations: 0 / 277.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-06/0.005444, allocations: 0 / 277.6 MB, free: 12.69 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 6.415e-05/0.005509, allocations: 116.7 kB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.338e-05/0.005572, allocations: 61.61 kB / 277.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.281e-05/0.005605, allocations: 16.78 kB / 277.8 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.005609, allocations: 7.938 kB / 277.8 MB, free: 12.47 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.005611, allocations: 0 / 277.8 MB, free: 12.47 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.005616, allocations: 7.984 kB / 277.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.005745, allocations: 89.8 kB / 277.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.005747, allocations: 0 / 277.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.556e-05/0.005802, allocations: 27.92 kB / 278 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.005805, allocations: 0 / 278 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-06/0.005811, allocations: 0 / 278 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.005813, allocations: 4 kB / 278 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.005814, allocations: 3.938 kB / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001026/0.005917, allocations: 222.5 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.783e-05/0.005954, allocations: 19.89 kB / 278.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.091e-05/0.005965, allocations: 8.031 kB / 278.2 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.992e-05/0.006015, allocations: 4 kB / 278.2 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.695e-05/0.006042, allocations: 7.875 kB / 278.2 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-06/0.006046, allocations: 4 kB / 278.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.958e-05/0.006076, allocations: 38.44 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006076, allocations: 0 / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001461/0.006222, allocations: 8 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (sample1.u,hold1.y,sample1.y,hold1.u,sample2.y,sum1.u[1],sum1.u[2],sum1.y,sum2.u[1],sum2.u[2],sum2.y,integerConstant.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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 8.564e-05/0.006308, allocations: 84.42 kB / 278.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.067e-05/0.006368, allocations: 28.78 kB / 278.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.006372, allocations: 4 kB / 278.4 MB, free: 11.87 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.03e-05/0.006382, allocations: 8.859 kB / 278.4 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002408/0.006623, allocations: 48.69 kB / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002782/0.006901, allocations: 224.1 kB / 278.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.65e-05/0.006948, allocations: 79.2 kB / 278.7 MB, free: 11.47 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.999e-05/0.006968, allocations: 8.234 kB / 278.7 MB, free: 11.46 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.578e-05/0.007024, allocations: 67.36 kB / 278.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.007024, allocations: 0 / 278.8 MB, free: 11.39 MB / 266.7 MB Notification: Performance of Templates: time 0.002724/0.009748, allocations: 0.9651 MB / 279.8 MB, free: 10.45 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.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.689810852985829]