Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.001022/0.001022, allocations: 79.91 kB / 21.18 MB, free: 3.395 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.0009556/0.0009556, allocations: 141.5 kB / 24.54 MB, free: 40 kB / 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 1.015/1.015, allocations: 173.4 MB / 201.1 MB, free: 9.355 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.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.508e-05/4.716e-05, allocations: 6.25 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.004242/0.00429, allocations: 2.002 MB / 270 MB, free: 4.441 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002705/0.006994, allocations: 1.18 MB / 271.2 MB, free: 3.254 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002655/0.00726, allocations: 7.938 kB / 271.2 MB, free: 3.246 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006301/0.00789, allocations: 63.66 kB / 271.2 MB, free: 3.184 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004778/0.008367, allocations: 99.45 kB / 271.3 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000979/0.009346, allocations: 310.8 kB / 271.6 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004409/0.009787, allocations: 227.3 kB / 271.9 MB, free: 2.559 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.01, allocations: 29.81 kB / 271.9 MB, free: 2.527 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002486/0.01025, allocations: 127.7 kB / 272 MB, free: 2.402 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.01048, allocations: 87.75 kB / 272.1 MB, free: 2.316 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.653e-05/0.01052, allocations: 12 kB / 272.1 MB, free: 2.305 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002565/0.01078, allocations: 79.81 kB / 272.2 MB, free: 2.227 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.01089, allocations: 63.77 kB / 272.3 MB, free: 2.164 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.01099, allocations: 59.77 kB / 272.3 MB, free: 2.105 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005147/0.01151, allocations: 215.2 kB / 272.5 MB, free: 1.895 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.518e-06/0.01152, allocations: 4 kB / 272.5 MB, free: 1.891 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.059e-06/0.01152, allocations: 3.938 kB / 272.5 MB, free: 1.887 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.791e-05/0.01154, allocations: 0 / 272.5 MB, free: 1.887 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009103/0.01245, allocations: 0.61 MB / 273.1 MB, free: 1.234 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.01249, allocations: 8.031 kB / 273.2 MB, free: 1.227 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.017e-05/0.01258, allocations: 44.73 kB / 273.2 MB, free: 1.184 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.01287, allocations: 244.6 kB / 273.4 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.0129, allocations: 12.38 kB / 273.4 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.117e-05/0.01292, allocations: 16.38 kB / 273.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000459/0.01338, allocations: 281 kB / 273.7 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.01339, allocations: 3.938 kB / 273.7 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.01341, allocations: 4 kB / 273.7 MB, free: 0.582 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.01342, allocations: 4 kB / 273.7 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.558e-05/0.01351, allocations: 43.89 kB / 273.8 MB, free: 0.5352 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004988/0.01401, allocations: 386.9 kB / 274.2 MB, free: 116 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003/0.01431, allocations: 165.4 kB / 274.3 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.01442, allocations: 79.16 kB / 274.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.189e-05/0.01445, allocations: 8 kB / 274.4 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001631/0.01462, allocations: 69.03 kB / 274.5 MB, free: 15.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 2.475e-06/0.01462, allocations: 0 / 274.5 MB, free: 15.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004203/0.01504, allocations: 205.9 kB / 274.7 MB, free: 15.53 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.476e-05/0.01513, allocations: 122.7 kB / 274.8 MB, free: 15.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002736/0.01541, allocations: 334.3 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.454e-05/0.01543, allocations: 29.7 kB / 275.2 MB, free: 15 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.01556, allocations: 191.2 kB / 275.3 MB, free: 14.81 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.791e-05/0.0156, allocations: 23.8 kB / 275.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.988e-05/0.01566, allocations: 51.34 kB / 275.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.01581, allocations: 0.504 MB / 275.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.923e-05/0.01585, allocations: 19.98 kB / 275.9 MB, free: 14.19 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.529e-05/0.01594, allocations: 107.5 kB / 276 MB, free: 14.05 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.391e-05/0.01603, allocations: 94 kB / 276.1 MB, free: 13.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.01603, allocations: 32 / 276.1 MB, free: 13.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001651/0.0162, allocations: 137.3 kB / 276.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.01621, allocations: 7.984 kB / 276.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.01622, allocations: 4 kB / 276.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.01624, allocations: 0 / 276.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.727e-05/0.01632, allocations: 16 kB / 276.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.01633, allocations: 4 kB / 276.3 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.254e-05/0.01638, allocations: 11.94 kB / 276.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.0164, allocations: 8.156 kB / 276.3 MB, free: 13.74 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 0.0001091/0.01651, allocations: 188.3 kB / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.01663, allocations: 129.5 kB / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001625/0.01679, allocations: 111.7 kB / 276.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.01679, allocations: 4 kB / 276.7 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.0168, allocations: 0 / 276.7 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.0168, allocations: 4 kB / 276.8 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001597/0.01696, allocations: 196.5 kB / 276.9 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.01697, allocations: 0 / 276.9 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.366e-05/0.01705, allocations: 35.97 kB / 277 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.01705, allocations: 8 kB / 277 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.01707, allocations: 4.125 kB / 277 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.01707, allocations: 4 kB / 277 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.01707, allocations: 3.938 kB / 277 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002251/0.0173, allocations: 237.8 kB / 277.2 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.468e-05/0.01737, allocations: 51.72 kB / 277.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.911e-05/0.0174, allocations: 8 kB / 277.3 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.764e-05/0.01745, allocations: 8 kB / 277.3 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.204e-05/0.0175, allocations: 11.92 kB / 277.3 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.788e-05/0.01752, allocations: 11.98 kB / 277.3 MB, free: 12.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001366/0.01766, allocations: 231 kB / 277.5 MB, free: 12.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01766, allocations: 0 / 277.5 MB, free: 12.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002031/0.01786, allocations: 39.94 kB / 277.6 MB, free: 12.39 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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 0.001045/0.0189, allocations: 420.8 kB / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002173/0.01912, allocations: 91.5 kB / 278.1 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.01912, allocations: 0 / 278.1 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.124e-05/0.01917, allocations: 31.67 kB / 278.1 MB, free: 11.99 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.01956, allocations: 108 kB / 278.2 MB, free: 11.88 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005913/0.02015, allocations: 423.2 kB / 278.6 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.469e-05/0.02023, allocations: 100.3 kB / 278.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.355e-05/0.0203, allocations: 22.33 kB / 278.8 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.302e-05/0.02035, allocations: 28.48 kB / 278.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of SimCode: time 6.92e-07/0.02035, allocations: 0 / 278.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of Templates: time 0.006695/0.02705, allocations: 3.761 MB / 282.5 MB, free: 7.547 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.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: 3.016970166005194]