Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.001164/0.001164, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003782/0.003782, allocations: 160.2 kB / 24.7 MB, free: 9.418 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.8322/0.8322, allocations: 177.1 MB / 205 MB, free: 5.73 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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.672e-05/1.841e-05, allocations: 2.281 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002164/0.002182, allocations: 1.963 MB / 327.8 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001345/0.003527, allocations: 1.285 MB / 329.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.003634, allocations: 7.938 kB / 329.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002883/0.003923, allocations: 75.48 kB / 329.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002798/0.004202, allocations: 139.4 kB / 329.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004383/0.004641, allocations: 279.5 kB / 329.6 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002091/0.00485, allocations: 223.3 kB / 329.8 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001024/0.004952, allocations: 40.48 kB / 329.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.005071, allocations: 131.6 kB / 329.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.005193, allocations: 91.75 kB / 330 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.005213, allocations: 12 kB / 330 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001123/0.005326, allocations: 75.89 kB / 330.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.248e-05/0.005388, allocations: 71.75 kB / 330.2 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.409e-05/0.005442, allocations: 59.77 kB / 330.2 MB, free: 11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002785/0.005721, allocations: 303 kB / 330.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.005724, allocations: 4 kB / 330.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.005725, allocations: 0 / 330.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.00573, allocations: 0 / 330.5 MB, free: 10.7 MB / 298.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.0005861/0.006316, allocations: 0.521 MB / 331.1 MB, free: 10.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.958e-05/0.006345, allocations: 8.031 kB / 331.1 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.947e-05/0.006395, allocations: 32.75 kB / 331.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002535/0.006648, allocations: 249.8 kB / 331.4 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.006665, allocations: 8.375 kB / 331.4 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.656e-05/0.006681, allocations: 16.38 kB / 331.4 MB, free: 9.812 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005353/0.007217, allocations: 344 kB / 331.7 MB, free: 9.449 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.007227, allocations: 3.938 kB / 331.7 MB, free: 9.445 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.007242, allocations: 11.98 kB / 331.7 MB, free: 9.434 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.007247, allocations: 0 / 331.7 MB, free: 9.434 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000117/0.007364, allocations: 71.91 kB / 331.8 MB, free: 9.363 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003389/0.007703, allocations: 338 kB / 332.1 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000219/0.007922, allocations: 203.8 kB / 332.3 MB, free: 8.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.125e-05/0.008013, allocations: 82.55 kB / 332.4 MB, free: 8.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.008034, allocations: 7.984 kB / 332.4 MB, free: 8.672 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001084/0.008143, allocations: 79.56 kB / 332.5 MB, free: 8.582 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.283e-06/0.008144, allocations: 0 / 332.5 MB, free: 8.582 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003461/0.00849, allocations: 265.3 kB / 332.8 MB, free: 8.316 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.466e-05/0.008555, allocations: 148.4 kB / 332.9 MB, free: 8.141 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002275/0.008782, allocations: 360.1 kB / 333.2 MB, free: 7.777 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.008798, allocations: 33.7 kB / 333.3 MB, free: 7.738 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.313e-05/0.008861, allocations: 128.6 kB / 333.4 MB, free: 7.609 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.008882, allocations: 23.84 kB / 333.4 MB, free: 7.586 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-05/0.008922, allocations: 41.7 kB / 333.5 MB, free: 7.539 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.739e-05/0.009009, allocations: 334.8 kB / 333.8 MB, free: 7.203 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.925e-05/0.009058, allocations: 35.92 kB / 333.8 MB, free: 7.168 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.293e-05/0.009141, allocations: 149.1 kB / 334 MB, free: 6.988 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001024/0.009244, allocations: 117 kB / 334.1 MB, free: 6.855 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.009246, allocations: 0 / 334.1 MB, free: 6.855 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001512/0.009397, allocations: 157.3 kB / 334.2 MB, free: 6.695 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.009409, allocations: 8 kB / 334.3 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.009413, allocations: 0 / 334.3 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/0.009423, allocations: 0 / 334.3 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.989e-05/0.009483, allocations: 19.98 kB / 334.3 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.009488, allocations: 4.156 kB / 334.3 MB, free: 6.664 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.181e-05/0.00953, allocations: 8 kB / 334.3 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.009536, allocations: 4 kB / 334.3 MB, free: 6.652 MB / 298.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.0001013/0.009638, allocations: 173.6 kB / 334.5 MB, free: 6.473 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.009755, allocations: 145.7 kB / 334.6 MB, free: 6.324 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001649/0.00992, allocations: 135.4 kB / 334.7 MB, free: 6.188 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.009923, allocations: 4 kB / 334.7 MB, free: 6.184 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.009927, allocations: 0 / 334.7 MB, free: 6.184 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.00993, allocations: 0 / 334.7 MB, free: 6.184 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000123/0.01005, allocations: 205 kB / 334.9 MB, free: 5.953 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.01005, allocations: 0 / 334.9 MB, free: 5.953 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.674e-05/0.01012, allocations: 28.3 kB / 335 MB, free: 5.926 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.01012, allocations: 4 kB / 335 MB, free: 5.922 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.01013, allocations: 8 kB / 335 MB, free: 5.914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.01014, allocations: 4 kB / 335 MB, free: 5.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.01014, allocations: 3.938 kB / 335 MB, free: 5.906 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002118/0.01035, allocations: 258.8 kB / 335.2 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.135e-05/0.01041, allocations: 47.77 kB / 335.3 MB, free: 5.582 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.349e-05/0.01044, allocations: 8 kB / 335.3 MB, free: 5.574 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.929e-05/0.01047, allocations: 8 kB / 335.3 MB, free: 5.566 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/0.01051, allocations: 11.98 kB / 335.3 MB, free: 5.555 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.01053, allocations: 7.984 kB / 335.3 MB, free: 5.547 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000156/0.01068, allocations: 259 kB / 335.6 MB, free: 5.293 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01068, allocations: 0 / 335.6 MB, free: 5.293 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001785/0.01086, allocations: 47.95 kB / 335.6 MB, free: 5.246 MB / 298.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.0006467/0.01151, allocations: 470.1 kB / 336.1 MB, free: 4.961 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001789/0.01169, allocations: 119.8 kB / 336.2 MB, free: 4.844 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.644e-06/0.01169, allocations: 0 / 336.2 MB, free: 4.844 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.298e-05/0.01173, allocations: 27.98 kB / 336.2 MB, free: 4.816 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/0.01202, allocations: 123.8 kB / 336.3 MB, free: 4.695 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004853/0.01251, allocations: 0.4998 MB / 336.8 MB, free: 4.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.511e-05/0.0126, allocations: 161.8 kB / 337 MB, free: 3.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.27e-05/0.01265, allocations: 28.48 kB / 337 MB, free: 3.953 MB / 298.7 MB Notification: Performance of SimCode: time 7.31e-07/0.01265, allocations: 3.938 kB / 337 MB, free: 3.949 MB / 298.7 MB Notification: Performance of Templates: time 0.003761/0.01641, allocations: 3.636 MB / 340.7 MB, free: 316 kB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.815475891344249]