Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009201/0.0009201, allocations: 80.8 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009445/0.0009445, allocations: 174.5 kB / 24.92 MB, free: 8.77 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9395/0.9395, allocations: 177.1 MB / 205.3 MB, free: 5.09 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 273.5 MB, free: 1.125 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.276e-05/1.386e-05, allocations: 2.312 kB / 273.5 MB, free: 1.121 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.001951/0.001965, allocations: 1.717 MB / 275.2 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003485/0.002314, allocations: 187.2 kB / 275.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.857e-05/0.002382, allocations: 7.938 kB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.021e-05/0.002473, allocations: 11.86 kB / 275.4 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001023/0.002575, allocations: 11.88 kB / 275.4 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001637/0.002739, allocations: 55.81 kB / 275.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.712e-05/0.002836, allocations: 63.83 kB / 275.5 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.069e-05/0.002916, allocations: 27.86 kB / 275.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.688e-05/0.002963, allocations: 39.89 kB / 275.6 MB, free: 15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.75e-05/0.003031, allocations: 27.91 kB / 275.6 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.83e-05/0.003049, allocations: 8 kB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.819e-06/0.003059, allocations: 4 kB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.394e-05/0.003093, allocations: 31.84 kB / 275.7 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.619e-05/0.003119, allocations: 19.92 kB / 275.7 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 9.655e-05/0.003216, allocations: 63.73 kB / 275.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.523e-06/0.003217, allocations: 0 / 275.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.003219, allocations: 8 kB / 275.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.427e-06/0.003222, allocations: 0 / 275.8 MB, free: 14.84 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.0002758/0.003498, allocations: 304.4 kB / 276.1 MB, free: 14.51 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.58e-05/0.003524, allocations: 12.03 kB / 276.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.616e-05/0.00355, allocations: 12.92 kB / 276.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.003682, allocations: 156.7 kB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.971e-06/0.003688, allocations: 384 / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.678e-06/0.003698, allocations: 12.38 kB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.00389, allocations: 172.7 kB / 276.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.003896, allocations: 4.125 kB / 276.4 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.534e-06/0.003904, allocations: 4.375 kB / 276.4 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.003908, allocations: 384 / 276.4 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.758e-05/0.003935, allocations: 18.77 kB / 276.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001908/0.004126, allocations: 260.1 kB / 276.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.346e-05/0.00421, allocations: 98.66 kB / 276.8 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.876e-05/0.004248, allocations: 42.67 kB / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.00426, allocations: 4 kB / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.808e-05/0.004279, allocations: 38.5 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 8.92e-07/0.004279, allocations: 0 / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001299/0.004409, allocations: 89.53 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.249e-05/0.004452, allocations: 114.8 kB / 277.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.84e-05/0.00452, allocations: 146.6 kB / 277.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.012e-05/0.00453, allocations: 33.7 kB / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.948e-05/0.00456, allocations: 84.66 kB / 277.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.885e-06/0.004568, allocations: 11.98 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.326e-05/0.004591, allocations: 21.66 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.805e-05/0.004659, allocations: 326.8 kB / 277.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.518e-06/0.004664, allocations: 0 / 277.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.23e-05/0.004676, allocations: 13.72 kB / 277.7 MB, free: 12.67 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2e-05/0.004696, allocations: 21.66 kB / 277.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.004698, allocations: 0 / 277.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 3.576e-05/0.004733, allocations: 37.78 kB / 277.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.377e-06/0.004743, allocations: 12.03 kB / 277.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.004746, allocations: 0 / 277.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.718e-06/0.004756, allocations: 3.938 kB / 277.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.268e-05/0.004789, allocations: 7.938 kB / 277.8 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.004792, allocations: 3.984 kB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.303e-05/0.004805, allocations: 4 kB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.118e-06/0.00481, allocations: 4 kB / 277.8 MB, free: 12.57 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.344e-05/0.004863, allocations: 112.7 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.399e-05/0.004927, allocations: 65.61 kB / 278 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.709e-05/0.004954, allocations: 16.78 kB / 278 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.004956, allocations: 7.938 kB / 278 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.004958, allocations: 0 / 278 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.004961, allocations: 4 kB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001129/0.005074, allocations: 85.8 kB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.005075, allocations: 0 / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.836e-05/0.005123, allocations: 20 kB / 278.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.005125, allocations: 7.984 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.005131, allocations: 3.984 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.005134, allocations: 4 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.005135, allocations: 0 / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001211/0.005256, allocations: 226.4 kB / 278.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.584e-05/0.005292, allocations: 23.89 kB / 278.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.097e-05/0.005302, allocations: 3.984 kB / 278.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.71e-05/0.00537, allocations: 8 kB / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.175e-05/0.005391, allocations: 3.938 kB / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.005397, allocations: 4 kB / 278.4 MB, free: 11.92 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.506e-05/0.005422, allocations: 35.45 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005422, allocations: 0 / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001394/0.005561, allocations: 15.94 kB / 278.4 MB, free: 11.87 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.796e-05/0.005629, allocations: 91.91 kB / 278.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 5.827e-05/0.005687, allocations: 28.84 kB / 278.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.00569, allocations: 0 / 278.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.095e-05/0.005701, allocations: 12.8 kB / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002244/0.005925, allocations: 46.28 kB / 278.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002481/0.006173, allocations: 231.2 kB / 278.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.902e-05/0.006212, allocations: 75.58 kB / 278.9 MB, free: 11.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.439e-05/0.006227, allocations: 4 kB / 278.9 MB, free: 11.34 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.688e-05/0.006274, allocations: 55.38 kB / 279 MB, free: 11.28 MB / 266.7 MB Notification: Performance of SimCode: time 5.11e-07/0.006274, allocations: 0 / 279 MB, free: 11.28 MB / 266.7 MB Notification: Performance of Templates: time 0.002124/0.008398, allocations: 0.9746 MB / 279.9 MB, free: 10.32 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.5563436429947615]