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.001335/0.001335, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 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.001304/0.001304, allocations: 191.4 kB / 24.49 MB, free: 3.941 MB / 14.72 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.332/1.332, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 43.94 kB / 371.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2388, allocations: 52.18 MB / 423.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003582/0.2424, allocations: 1.946 MB / 425.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001944/0.2444, allocations: 1.13 MB / 426.4 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.2445, allocations: 7.938 kB / 426.4 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002959/0.2448, allocations: 71.59 kB / 426.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002734/0.245, allocations: 95.58 kB / 426.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007765/0.2458, allocations: 306.7 kB / 426.9 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000294/0.2461, allocations: 215.4 kB / 427.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.2462, allocations: 36.05 kB / 427.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.2464, allocations: 91.62 kB / 427.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.2465, allocations: 111.5 kB / 427.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.216e-05/0.2466, allocations: 12 kB / 427.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001623/0.2467, allocations: 79.94 kB / 427.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.964e-05/0.2468, allocations: 67.75 kB / 427.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.151e-05/0.2469, allocations: 71.48 kB / 427.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003928/0.2473, allocations: 302.8 kB / 427.9 MB, free: 9.844 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2473, allocations: 0 / 427.9 MB, free: 9.844 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2473, allocations: 0 / 427.9 MB, free: 9.844 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.2473, allocations: 0 / 427.9 MB, free: 9.844 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.0008324/0.2481, allocations: 0.5139 MB / 428.4 MB, free: 9.293 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.2482, allocations: 12.03 kB / 428.4 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.374e-05/0.2482, allocations: 4.188 kB / 428.4 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.675e-05/0.2482, allocations: 50.67 kB / 428.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.796e-05/0.2483, allocations: 28.75 kB / 428.5 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003773/0.2487, allocations: 250.5 kB / 428.7 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.2487, allocations: 20.06 kB / 428.7 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.2487, allocations: 12 kB / 428.7 MB, free: 8.895 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006139/0.2493, allocations: 378.1 kB / 429.1 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.2494, allocations: 0 / 429.1 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.2494, allocations: 4 kB / 429.1 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.2494, allocations: 4 kB / 429.1 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001866/0.2496, allocations: 79.88 kB / 429.2 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005254/0.2501, allocations: 361.4 kB / 429.5 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003848/0.2505, allocations: 195.9 kB / 429.7 MB, free: 7.781 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000166/0.2506, allocations: 90.53 kB / 429.8 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.2507, allocations: 4 kB / 429.8 MB, free: 7.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001593/0.2508, allocations: 79.31 kB / 429.9 MB, free: 7.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.723e-06/0.2508, allocations: 4 kB / 429.9 MB, free: 7.586 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.000546/0.2514, allocations: 253.6 kB / 430.2 MB, free: 7.332 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.2515, allocations: 178.1 kB / 430.3 MB, free: 7.121 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003681/0.2519, allocations: 344.2 kB / 430.7 MB, free: 6.773 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.2519, allocations: 41.69 kB / 430.7 MB, free: 6.727 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.46e-05/0.252, allocations: 128.6 kB / 430.8 MB, free: 6.598 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.471e-05/0.252, allocations: 31.84 kB / 430.9 MB, free: 6.566 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.398e-05/0.2521, allocations: 49.94 kB / 430.9 MB, free: 6.508 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.2523, allocations: 346.7 kB / 431.3 MB, free: 6.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.642e-05/0.2524, allocations: 40.45 kB / 431.3 MB, free: 6.121 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002537/0.2526, allocations: 269.2 kB / 431.6 MB, free: 5.777 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000286/0.2529, allocations: 211.2 kB / 431.8 MB, free: 5.516 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.2529, allocations: 4 kB / 431.8 MB, free: 5.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003923/0.2533, allocations: 241.4 kB / 432 MB, free: 5.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.2533, allocations: 12.09 kB / 432 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.2533, allocations: 4 kB / 432 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.2533, allocations: 7.938 kB / 432 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.2535, allocations: 44.28 kB / 432.1 MB, free: 5.203 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.2535, allocations: 4 kB / 432.1 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.2536, allocations: 19.89 kB / 432.1 MB, free: 5.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/0.2536, allocations: 12 kB / 432.1 MB, free: 5.168 MB / 334.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.0001665/0.2538, allocations: 187.9 kB / 432.3 MB, free: 4.977 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002214/0.254, allocations: 141.4 kB / 432.4 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002866/0.2543, allocations: 139.7 kB / 432.6 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.2543, allocations: 7.938 kB / 432.6 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2543, allocations: 0 / 432.6 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.2543, allocations: 3.984 kB / 432.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002189/0.2545, allocations: 208.7 kB / 432.8 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.2545, allocations: 3.984 kB / 432.8 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001306/0.2547, allocations: 31.92 kB / 432.8 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.2547, allocations: 4 kB / 432.8 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.2547, allocations: 4 kB / 432.8 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.2547, allocations: 11.94 kB / 432.8 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.2547, allocations: 0 / 432.8 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003977/0.2551, allocations: 246.5 kB / 433.1 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.583e-05/0.2552, allocations: 51.72 kB / 433.1 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.473e-05/0.2552, allocations: 11.98 kB / 433.1 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.742e-05/0.2553, allocations: 15.88 kB / 433.1 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.563e-05/0.2554, allocations: 11.97 kB / 433.2 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.342e-05/0.2554, allocations: 12 kB / 433.2 MB, free: 4.012 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002523/0.2557, allocations: 251 kB / 433.4 MB, free: 3.766 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2557, allocations: 0 / 433.4 MB, free: 3.766 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003041/0.256, allocations: 55.92 kB / 433.5 MB, free: 3.711 MB / 334.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 (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.002326/0.2583, allocations: 1.222 MB / 434.7 MB, free: 2.637 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003383/0.2586, allocations: 159.2 kB / 434.9 MB, free: 2.484 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2586, allocations: 320 / 434.9 MB, free: 2.484 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.867e-05/0.2587, allocations: 43.91 kB / 434.9 MB, free: 2.441 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004983/0.2592, allocations: 122.6 kB / 435 MB, free: 2.324 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003077/0.2623, allocations: 2.717 MB / 437.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001684/0.2625, allocations: 157.3 kB / 437.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.306e-05/0.2626, allocations: 38.78 kB / 437.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.2627, allocations: 79.41 kB / 438 MB, free: 15.12 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2627, allocations: 0 / 438 MB, free: 15.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02888/0.2916, allocations: 6.933 MB / 444.9 MB, free: 8.297 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.29, allocations: 11.91 kB / 444.9 MB, free: 8.285 MB / 350.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78784e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.613708545919508] Failed to read output from testmodel.py, exit status != 0: ['time', 'upSample1.y', 'upSample2.y', 'sum.y'] 11.508005870971829 11.5330884 11.281910632 Calling exit ...