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.001515/0.001515, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001681/0.001681, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.393/1.393, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.001418/0.001418, allocations: 43.92 kB / 378.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2513, allocations: 53.35 MB / 431.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003462/0.2548, allocations: 1.956 MB / 433.8 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002184/0.257, allocations: 1.274 MB / 435.1 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.2571, allocations: 7.938 kB / 435.1 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002917/0.2574, allocations: 67.59 kB / 435.2 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003627/0.2577, allocations: 155.3 kB / 435.3 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007362/0.2585, allocations: 270.5 kB / 435.6 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003116/0.2588, allocations: 227.4 kB / 435.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.2589, allocations: 34.69 kB / 435.8 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.2591, allocations: 95.61 kB / 435.9 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.2592, allocations: 111.5 kB / 436 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.621e-05/0.2593, allocations: 12 kB / 436 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001699/0.2594, allocations: 83.88 kB / 436.1 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.2595, allocations: 75.73 kB / 436.2 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.2e-05/0.2596, allocations: 71.48 kB / 436.3 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004178/0.2601, allocations: 298.8 kB / 436.6 MB, free: 1.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.237e-06/0.2601, allocations: 4 kB / 436.6 MB, free: 1.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2601, allocations: 3.938 kB / 436.6 MB, free: 1.926 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.2601, allocations: 0 / 436.6 MB, free: 1.926 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.0008798/0.261, allocations: 0.5178 MB / 437.1 MB, free: 1.371 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.261, allocations: 8.031 kB / 437.1 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.461e-05/0.261, allocations: 4.188 kB / 437.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.777e-05/0.2611, allocations: 46.73 kB / 437.1 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.355e-05/0.2611, allocations: 32.75 kB / 437.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003967/0.2615, allocations: 266.4 kB / 437.4 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.2615, allocations: 20.11 kB / 437.4 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.947e-05/0.2616, allocations: 12 kB / 437.5 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006348/0.2622, allocations: 372.3 kB / 437.8 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.2622, allocations: 0 / 437.8 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.2622, allocations: 7.984 kB / 437.8 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.2622, allocations: 4 kB / 437.8 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000181/0.2624, allocations: 75.89 kB / 437.9 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005226/0.2629, allocations: 361.5 kB / 438.3 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003951/0.2633, allocations: 188 kB / 438.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001962/0.2635, allocations: 90.67 kB / 438.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.988e-05/0.2636, allocations: 11.97 kB / 438.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001603/0.2637, allocations: 75.39 kB / 438.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.704e-06/0.2637, allocations: 0 / 438.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005711/0.2643, allocations: 257.5 kB / 438.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.2644, allocations: 170.2 kB / 439 MB, free: 15.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003977/0.2648, allocations: 368 kB / 439.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.848e-05/0.2648, allocations: 29.7 kB / 439.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.265, allocations: 140.5 kB / 439.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.663e-05/0.265, allocations: 31.83 kB / 439.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.266e-05/0.2651, allocations: 61.88 kB / 439.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.2652, allocations: 338.8 kB / 440 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.555e-05/0.2653, allocations: 40.5 kB / 440 MB, free: 14.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002515/0.2656, allocations: 272 kB / 440.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002796/0.2659, allocations: 211.2 kB / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2659, allocations: 4 kB / 440.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003884/0.2662, allocations: 237.1 kB / 440.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.2663, allocations: 4.531 kB / 440.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.2663, allocations: 8 kB / 440.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.2663, allocations: 11.94 kB / 440.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.2664, allocations: 35.92 kB / 440.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.2664, allocations: 11.94 kB / 440.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.2666, allocations: 23.88 kB / 440.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/0.2666, allocations: 12 kB / 440.8 MB, free: 13.23 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.0001652/0.2668, allocations: 168.1 kB / 441 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002253/0.267, allocations: 153.7 kB / 441.2 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002865/0.2673, allocations: 135.4 kB / 441.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.2673, allocations: 7.938 kB / 441.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2673, allocations: 0 / 441.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.2673, allocations: 0 / 441.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002237/0.2675, allocations: 224.5 kB / 441.5 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2675, allocations: 4 kB / 441.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.2676, allocations: 23.98 kB / 441.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.2676, allocations: 4 kB / 441.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.2677, allocations: 8.031 kB / 441.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.007e-06/0.2677, allocations: 15.94 kB / 441.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.2677, allocations: 7.984 kB / 441.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003951/0.2681, allocations: 254.1 kB / 441.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.975e-05/0.2682, allocations: 55.72 kB / 441.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.166e-05/0.2682, allocations: 4 kB / 441.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.905e-05/0.2683, allocations: 11.92 kB / 441.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.854e-05/0.2684, allocations: 11.98 kB / 441.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.359e-05/0.2684, allocations: 8 kB / 441.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002562/0.2686, allocations: 263 kB / 442.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2686, allocations: 0 / 442.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000305/0.2689, allocations: 47.94 kB / 442.2 MB, free: 11.76 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 (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.002335/0.2713, allocations: 1.233 MB / 443.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003334/0.2716, allocations: 160.5 kB / 443.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.2716, allocations: 0 / 443.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.316e-05/0.2717, allocations: 28.11 kB / 443.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004941/0.2722, allocations: 137.8 kB / 443.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003212/0.2754, allocations: 2.748 MB / 446.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001616/0.2756, allocations: 173.2 kB / 446.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001112/0.2757, allocations: 34.28 kB / 446.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.2758, allocations: 79.41 kB / 446.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2758, allocations: 0 / 446.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02854/0.3044, allocations: 7.031 MB / 453.8 MB, free: 200 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.07, allocations: 7.844 kB / 453.8 MB, free: 192 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.478725146967918] Failed to read output from testmodel.py, exit status != 0: ['time', 'upSample1.y', 'upSample2.y', 'sum.y'] 11.2798277559923 11.294231515 11.031250135 Calling exit ...