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.001355/0.001355, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.001557/0.001557, allocations: 164.2 kB / 24.91 MB, free: 8.762 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 0.99/0.99, allocations: 177 MB / 205.2 MB, free: 5.039 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.152e-06/1.152e-06, allocations: 0 / 273.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.684e-05/1.799e-05, allocations: 2.312 kB / 273.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002348/0.002366, allocations: 1.712 MB / 275.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004115/0.002778, allocations: 183.2 kB / 275.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.461e-05/0.002853, allocations: 4 kB / 275.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.528e-05/0.002948, allocations: 15.86 kB / 275.3 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.003063, allocations: 27.73 kB / 275.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001836/0.003247, allocations: 43.88 kB / 275.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001081/0.003355, allocations: 67.78 kB / 275.5 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.923e-05/0.003444, allocations: 27.91 kB / 275.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.833e-05/0.003493, allocations: 35.89 kB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.472e-05/0.003567, allocations: 27.91 kB / 275.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.144e-05/0.003589, allocations: 8 kB / 275.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.095e-05/0.0036, allocations: 4 kB / 275.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.619e-05/0.003636, allocations: 27.91 kB / 275.6 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.648e-05/0.003662, allocations: 19.94 kB / 275.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.003774, allocations: 75.66 kB / 275.7 MB, free: 14.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.003775, allocations: 0 / 275.7 MB, free: 14.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.003776, allocations: 0 / 275.7 MB, free: 14.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.00378, allocations: 4 kB / 275.7 MB, free: 14.74 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.0003241/0.004104, allocations: 304.4 kB / 276 MB, free: 14.42 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.004141, allocations: 15.98 kB / 276 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.669e-05/0.004177, allocations: 12.92 kB / 276 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.004357, allocations: 153.5 kB / 276.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.004367, allocations: 4.375 kB / 276.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.00438, allocations: 12.38 kB / 276.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000244/0.004624, allocations: 164.7 kB / 276.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.004635, allocations: 4.172 kB / 276.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.356e-06/0.004643, allocations: 384 / 276.3 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.00465, allocations: 4.375 kB / 276.4 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.461e-05/0.004684, allocations: 26.69 kB / 276.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002681/0.004953, allocations: 264.1 kB / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001071/0.00506, allocations: 94.67 kB / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.542e-05/0.005105, allocations: 42.56 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.005124, allocations: 7.984 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.005149, allocations: 42.5 kB / 276.8 MB, free: 13.46 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.00515, allocations: 0 / 276.8 MB, free: 13.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001625/0.005312, allocations: 85.48 kB / 276.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/0.005369, allocations: 110.8 kB / 277 MB, free: 13.24 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.467e-05/0.005453, allocations: 152.2 kB / 277.2 MB, free: 13.08 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.005465, allocations: 33.7 kB / 277.2 MB, free: 13.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.42e-05/0.005499, allocations: 88.39 kB / 277.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.494e-06/0.005506, allocations: 4 kB / 277.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.93e-05/0.005536, allocations: 29.64 kB / 277.3 MB, free: 12.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.663e-05/0.005602, allocations: 318.8 kB / 277.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.64e-06/0.005608, allocations: 3.938 kB / 277.6 MB, free: 12.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.397e-05/0.005622, allocations: 13.72 kB / 277.6 MB, free: 12.57 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.99e-05/0.005642, allocations: 17.7 kB / 277.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.005643, allocations: 4.062 kB / 277.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 3.804e-05/0.005681, allocations: 37.64 kB / 277.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.005693, allocations: 11.98 kB / 277.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.005697, allocations: 0 / 277.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/0.005706, allocations: 3.938 kB / 277.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.459e-05/0.005741, allocations: 4 kB / 277.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.284e-06/0.005743, allocations: 0 / 277.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.412e-05/0.005757, allocations: 4 kB / 277.7 MB, free: 12.47 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.005763, allocations: 0 / 277.7 MB, free: 12.47 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 5.913e-05/0.005822, allocations: 116.7 kB / 277.8 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.534e-05/0.005887, allocations: 65.61 kB / 277.9 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.817e-05/0.005915, allocations: 20.77 kB / 277.9 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.005919, allocations: 3.938 kB / 277.9 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.00592, allocations: 0 / 277.9 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.005923, allocations: 4 kB / 277.9 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.006046, allocations: 85.81 kB / 278 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.006047, allocations: 0 / 278 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.119e-05/0.006098, allocations: 23.92 kB / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.0061, allocations: 7.938 kB / 278 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.949e-06/0.006105, allocations: 0 / 278 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.006107, allocations: 8 kB / 278 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.006108, allocations: 0 / 278 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.799e-05/0.006196, allocations: 226.4 kB / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.088e-05/0.006227, allocations: 23.89 kB / 278.3 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.018e-05/0.006237, allocations: 4 kB / 278.3 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.205e-05/0.006289, allocations: 4 kB / 278.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.315e-05/0.006312, allocations: 11.86 kB / 278.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/0.006316, allocations: 4 kB / 278.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.649e-05/0.006343, allocations: 34.25 kB / 278.4 MB, free: 11.78 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006343, allocations: 0 / 278.4 MB, free: 11.78 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001352/0.006478, allocations: 12.03 kB / 278.4 MB, free: 11.77 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 6.736e-05/0.006546, allocations: 80.42 kB / 278.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 5.6e-05/0.006602, allocations: 28.78 kB / 278.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.006605, allocations: 4 kB / 278.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.538e-06/0.006615, allocations: 4.859 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002341/0.006849, allocations: 53.53 kB / 278.5 MB, free: 11.59 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003349/0.007184, allocations: 231.6 kB / 278.8 MB, free: 11.33 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.592e-05/0.007229, allocations: 79.27 kB / 278.8 MB, free: 11.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.864e-05/0.007248, allocations: 4 kB / 278.8 MB, free: 11.23 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.521e-05/0.007303, allocations: 59.36 kB / 278.9 MB, free: 11.17 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.007304, allocations: 0 / 278.9 MB, free: 11.17 MB / 266.7 MB Notification: Performance of Templates: time 0.002331/0.009635, allocations: 0.9717 MB / 279.9 MB, free: 10.22 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 -s gbode -gbm=radauIIA3 -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.637814737856388]