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.001323/0.001323, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.001465/0.001465, allocations: 171.3 kB / 24.91 MB, free: 9.195 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.9127/0.9127, allocations: 177.1 MB / 205.3 MB, free: 5.484 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.302e-06/1.302e-06, allocations: 0 / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.187e-06/1.049e-05, allocations: 2.312 kB / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002258/0.002268, allocations: 2.021 MB / 275.5 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.003813, allocations: 1.324 MB / 276.8 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.003934, allocations: 7.938 kB / 276.8 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002774/0.004211, allocations: 79.47 kB / 276.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003304/0.004542, allocations: 135.3 kB / 277 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006157/0.005157, allocations: 271 kB / 277.3 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002694/0.005427, allocations: 231.2 kB / 277.5 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.031e-05/0.005517, allocations: 38.47 kB / 277.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001357/0.005653, allocations: 123.7 kB / 277.6 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001178/0.00577, allocations: 91.75 kB / 277.7 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.454e-05/0.005795, allocations: 12 kB / 277.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.005918, allocations: 75.88 kB / 277.8 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.071e-05/0.005979, allocations: 67.75 kB / 277.9 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.975e-05/0.006029, allocations: 59.78 kB / 277.9 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002389/0.006268, allocations: 239.1 kB / 278.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.142e-06/0.006269, allocations: 0 / 278.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.006269, allocations: 0 / 278.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.276e-06/0.006273, allocations: 0 / 278.2 MB, free: 12.54 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004922/0.006765, allocations: 0.489 MB / 278.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.006795, allocations: 8.031 kB / 278.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.768e-05/0.006843, allocations: 32.92 kB / 278.7 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002387/0.007082, allocations: 229.8 kB / 278.9 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.007101, allocations: 8.375 kB / 278.9 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.861e-05/0.007119, allocations: 16.36 kB / 279 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002987/0.007418, allocations: 266.9 kB / 279.2 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.007426, allocations: 3.938 kB / 279.2 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.255e-06/0.007434, allocations: 3.938 kB / 279.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.007439, allocations: 4 kB / 279.2 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.114e-05/0.00749, allocations: 37.56 kB / 279.3 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002547/0.007745, allocations: 222.3 kB / 279.5 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001516/0.007897, allocations: 180.2 kB / 279.7 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.091e-05/0.007948, allocations: 58.67 kB / 279.7 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.813e-05/0.007966, allocations: 7.938 kB / 279.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.318e-05/0.008039, allocations: 70.16 kB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.413e-06/0.00804, allocations: 0 / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0001699/0.00821, allocations: 137.5 kB / 279.9 MB, free: 10.62 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.323e-05/0.008263, allocations: 118.8 kB / 280 MB, free: 10.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/0.008424, allocations: 272.6 kB / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.008442, allocations: 33.7 kB / 280.3 MB, free: 10.17 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.142e-05/0.008483, allocations: 117 kB / 280.5 MB, free: 10.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.42e-05/0.008507, allocations: 27.83 kB / 280.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.818e-05/0.008546, allocations: 37.69 kB / 280.5 MB, free: 9.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.243e-05/0.008628, allocations: 338.8 kB / 280.9 MB, free: 9.641 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.998e-05/0.008648, allocations: 18.75 kB / 280.9 MB, free: 9.621 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.549e-05/0.008703, allocations: 83.69 kB / 281 MB, free: 9.512 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.728e-05/0.008771, allocations: 78.75 kB / 281 MB, free: 9.414 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.008774, allocations: 4 kB / 281 MB, free: 9.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 9.537e-05/0.008869, allocations: 108.5 kB / 281.1 MB, free: 9.297 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.008881, allocations: 4 kB / 281.1 MB, free: 9.293 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.008888, allocations: 8.062 kB / 281.2 MB, free: 9.285 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.905e-06/0.008896, allocations: 0 / 281.2 MB, free: 9.285 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.532e-05/0.008951, allocations: 19.92 kB / 281.2 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.107e-06/0.008955, allocations: 4.156 kB / 281.2 MB, free: 9.262 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.93e-05/0.008994, allocations: 11.95 kB / 281.2 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.009002, allocations: 8 kB / 281.2 MB, free: 9.242 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 7.737e-05/0.00908, allocations: 132.5 kB / 281.3 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.336e-05/0.009153, allocations: 89.53 kB / 281.4 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.403e-05/0.009247, allocations: 87.45 kB / 281.5 MB, free: 8.914 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.00925, allocations: 4 kB / 281.5 MB, free: 8.91 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.009252, allocations: 0 / 281.5 MB, free: 8.91 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.009256, allocations: 4 kB / 281.5 MB, free: 8.906 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.976e-05/0.009356, allocations: 129.7 kB / 281.6 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.009358, allocations: 3.984 kB / 281.6 MB, free: 8.758 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.548e-05/0.009424, allocations: 31.92 kB / 281.7 MB, free: 8.727 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.009426, allocations: 0 / 281.7 MB, free: 8.727 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-06/0.009435, allocations: 11.94 kB / 281.7 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.009437, allocations: 480 / 281.7 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.009437, allocations: 0 / 281.7 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.089e-05/0.009518, allocations: 119.2 kB / 281.8 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.028e-05/0.009569, allocations: 35.77 kB / 281.8 MB, free: 8.535 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.323e-05/0.009592, allocations: 11.94 kB / 281.8 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.28e-05/0.009635, allocations: 8 kB / 281.9 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.148e-05/0.009666, allocations: 15.98 kB / 281.9 MB, free: 8.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.00968, allocations: 7.984 kB / 281.9 MB, free: 8.492 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.641e-05/0.009757, allocations: 103.5 kB / 282 MB, free: 8.387 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009757, allocations: 0 / 282 MB, free: 8.387 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001567/0.009914, allocations: 43.95 kB / 282 MB, free: 8.344 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.001032/0.01095, allocations: 0.5379 MB / 282.6 MB, free: 8.035 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001139/0.01106, allocations: 80.75 kB / 282.6 MB, free: 7.953 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.01106, allocations: 4 kB / 282.6 MB, free: 7.949 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.359e-05/0.0111, allocations: 24.78 kB / 282.7 MB, free: 7.922 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00022/0.01132, allocations: 102 kB / 282.8 MB, free: 7.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003985/0.01172, allocations: 406.7 kB / 283.2 MB, free: 7.387 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.91e-05/0.01176, allocations: 100.3 kB / 283.3 MB, free: 7.27 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.974e-05/0.01181, allocations: 34.62 kB / 283.3 MB, free: 7.238 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.01191, allocations: 87.36 kB / 283.4 MB, free: 7.152 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01192, allocations: 3.938 kB / 283.4 MB, free: 7.148 MB / 266.7 MB Notification: Performance of Templates: time 0.005177/0.01709, allocations: 3.862 MB / 287.2 MB, free: 3.355 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 240] 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","",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.7036279146559536]