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.001274/0.001274, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 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.001474/0.001474, allocations: 205.2 kB / 24.52 MB, free: 4.156 MB / 14.72 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 1.38/1.38, allocations: 230.6 MB / 258.3 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 43.94 kB / 378.6 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2266, allocations: 53.37 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.00322/0.2298, allocations: 1.999 MB / 433.9 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002074/0.2319, allocations: 1.371 MB / 435.3 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.232, allocations: 11.88 kB / 435.3 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002745/0.2322, allocations: 67.59 kB / 435.4 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003472/0.2326, allocations: 151.4 kB / 435.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006742/0.2333, allocations: 266.2 kB / 435.8 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002787/0.2335, allocations: 231.4 kB / 436 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.2337, allocations: 32.58 kB / 436 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.2338, allocations: 103.5 kB / 436.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001591/0.2339, allocations: 107.6 kB / 436.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.524e-05/0.234, allocations: 12 kB / 436.3 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000159/0.2341, allocations: 87.92 kB / 436.3 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.541e-05/0.2342, allocations: 71.69 kB / 436.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.576e-05/0.2343, allocations: 95.3 kB / 436.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003689/0.2347, allocations: 299.2 kB / 436.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2347, allocations: 0 / 436.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2347, allocations: 3.938 kB / 436.8 MB, free: 1.965 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2347, allocations: 3.938 kB / 436.8 MB, free: 1.961 MB / 334.1 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.0007875/0.2355, allocations: 0.5217 MB / 437.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.2355, allocations: 8.031 kB / 437.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.308e-05/0.2355, allocations: 8.188 kB / 437.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.346e-05/0.2356, allocations: 46.73 kB / 437.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.603e-05/0.2356, allocations: 32.75 kB / 437.4 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003657/0.236, allocations: 254.4 kB / 437.7 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/0.236, allocations: 16.11 kB / 437.7 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.598e-05/0.2361, allocations: 16 kB / 437.7 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005676/0.2366, allocations: 326.8 kB / 438 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.2366, allocations: 0 / 438 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.2366, allocations: 0 / 438 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.2366, allocations: 4 kB / 438 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001623/0.2368, allocations: 67.91 kB / 438.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005202/0.2373, allocations: 393.3 kB / 438.5 MB, free: 156 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003721/0.2377, allocations: 180 kB / 438.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.2379, allocations: 86.53 kB / 438.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.2379, allocations: 12.22 kB / 438.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001563/0.238, allocations: 83.31 kB / 438.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.352e-06/0.238, allocations: 0 / 438.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005308/0.2386, allocations: 253.3 kB / 439.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.2387, allocations: 174.2 kB / 439.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003544/0.239, allocations: 364 kB / 439.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.2391, allocations: 29.7 kB / 439.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.446e-05/0.2392, allocations: 132.6 kB / 439.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.2392, allocations: 27.83 kB / 439.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.611e-05/0.2393, allocations: 62.25 kB / 439.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.2394, allocations: 338.8 kB / 440.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.45e-05/0.2395, allocations: 44.45 kB / 440.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.2397, allocations: 194.9 kB / 440.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002679/0.24, allocations: 211.1 kB / 440.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.24, allocations: 4 kB / 440.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000402/0.2404, allocations: 233.3 kB / 440.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.2404, allocations: 4 kB / 440.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.2404, allocations: 4.312 kB / 440.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.2404, allocations: 11.94 kB / 440.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.2405, allocations: 39.92 kB / 440.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.2406, allocations: 19.92 kB / 440.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.2407, allocations: 15.89 kB / 440.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.2407, allocations: 12.31 kB / 441 MB, free: 13.42 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * 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 (28): * Single equations (assignments): 28 * 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.00017/0.2409, allocations: 179.8 kB / 441.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000205/0.2411, allocations: 137.4 kB / 441.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002705/0.2413, allocations: 127.8 kB / 441.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.2413, allocations: 7.938 kB / 441.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2413, allocations: 0 / 441.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.2414, allocations: 0 / 441.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002338/0.2416, allocations: 240.5 kB / 441.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2416, allocations: 4 kB / 441.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.2417, allocations: 31.92 kB / 441.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.2417, allocations: 0 / 441.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.882e-05/0.2417, allocations: 11.98 kB / 441.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.2417, allocations: 7.922 kB / 441.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2417, allocations: 0 / 441.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003854/0.2421, allocations: 248.2 kB / 441.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.2422, allocations: 55.7 kB / 442 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.884e-05/0.2423, allocations: 8 kB / 442 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.4e-05/0.2424, allocations: 8 kB / 442 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.865e-05/0.2424, allocations: 15.92 kB / 442 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-05/0.2424, allocations: 7.984 kB / 442 MB, free: 12.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002558/0.2427, allocations: 259 kB / 442.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2427, allocations: 0 / 442.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003011/0.243, allocations: 47.94 kB / 442.3 MB, free: 11.96 MB / 350.1 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 (22): * Single equations (assignments): 20 * 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.002196/0.2452, allocations: 1.19 MB / 443.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003245/0.2455, allocations: 159.6 kB / 443.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2455, allocations: 0 / 443.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.76e-05/0.2456, allocations: 23.98 kB / 443.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004854/0.2461, allocations: 134.1 kB / 443.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002983/0.249, allocations: 2.732 MB / 446.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.2494, allocations: 0.7714 MB / 447.3 MB, free: 6.855 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.952e-05/0.2495, allocations: 34.52 kB / 447.4 MB, free: 6.824 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001231/0.2496, allocations: 79.41 kB / 447.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2496, allocations: 0 / 447.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02773/0.2774, allocations: 6.775 MB / 454.2 MB, free: 72 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.01, allocations: 15.92 kB / 454.2 MB, free: 56 kB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78784e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.368824545992538] Failed to read output from testmodel.py, exit status != 0: ['time', 'upSample1.y', 'upSample2.y', 'sum.y'] 11.216770450002514 11.23453988 10.996281106 Calling exit ...