Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001844/0.001844, allocations: 109.4 kB / 19.8 MB, free: 2.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002598/0.002598, allocations: 221.3 kB / 23 MB, free: 5.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.418/1.418, allocations: 230.5 MB / 256.5 MB, free: 8.258 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 75.81 kB / 376.2 MB, free: 4.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2602, allocations: 53.31 MB / 429.5 MB, free: 7.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003694/0.2639, allocations: 2.007 MB / 431.5 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002501/0.2664, allocations: 1.364 MB / 432.9 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000178/0.2666, allocations: 7.938 kB / 432.9 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003645/0.267, allocations: 67.61 kB / 433 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000415/0.2674, allocations: 143.4 kB / 433.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000857/0.2683, allocations: 273.6 kB / 433.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003265/0.2686, allocations: 223.4 kB / 433.6 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.2687, allocations: 28.3 kB / 433.6 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.2688, allocations: 95.61 kB / 433.7 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001918/0.269, allocations: 119.5 kB / 433.8 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.03e-05/0.2691, allocations: 12 kB / 433.8 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000165/0.2692, allocations: 71.95 kB / 433.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.376e-05/0.2693, allocations: 71.75 kB / 434 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.2694, allocations: 107.3 kB / 434.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004196/0.2698, allocations: 295.2 kB / 434.4 MB, free: 2.562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2699, allocations: 0 / 434.4 MB, free: 2.562 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2699, allocations: 0 / 434.4 MB, free: 2.562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.2699, allocations: 4 kB / 434.4 MB, free: 2.559 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.0009155/0.2708, allocations: 0.593 MB / 435 MB, free: 1.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.2708, allocations: 12.03 kB / 435 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.975e-05/0.2709, allocations: 46.73 kB / 435 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.148e-05/0.2709, allocations: 32.75 kB / 435.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000427/0.2714, allocations: 323.6 kB / 435.4 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.823e-05/0.2714, allocations: 16.36 kB / 435.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.886e-05/0.2714, allocations: 19.94 kB / 435.4 MB, free: 1.422 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006079/0.272, allocations: 315.3 kB / 435.7 MB, free: 1.086 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.2721, allocations: 4 kB / 435.7 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.2721, allocations: 4 kB / 435.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.2721, allocations: 4 kB / 435.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000187/0.2723, allocations: 67.89 kB / 435.8 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006072/0.2729, allocations: 422.2 kB / 436.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003764/0.2732, allocations: 192 kB / 436.4 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.2734, allocations: 78.55 kB / 436.5 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.232e-05/0.2734, allocations: 7.984 kB / 436.5 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001711/0.2736, allocations: 83.33 kB / 436.6 MB, free: 140 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.994e-06/0.2736, allocations: 4 kB / 436.6 MB, free: 136 kB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005689/0.2742, allocations: 257.7 kB / 436.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.2743, allocations: 174.2 kB / 437 MB, free: 15.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000379/0.2747, allocations: 354.9 kB / 437.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.2747, allocations: 33.7 kB / 437.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.2748, allocations: 136.7 kB / 437.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.632e-05/0.2748, allocations: 27.78 kB / 437.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.621e-05/0.2749, allocations: 57.89 kB / 437.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.2751, allocations: 338.8 kB / 437.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.934e-05/0.2752, allocations: 44.44 kB / 438 MB, free: 14.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002056/0.2754, allocations: 189.1 kB / 438.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002839/0.2757, allocations: 211.2 kB / 438.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.2757, allocations: 4 kB / 438.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003947/0.2761, allocations: 229.6 kB / 438.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.2761, allocations: 11.94 kB / 438.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.2761, allocations: 4 kB / 438.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.024e-05/0.2761, allocations: 8 kB / 438.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.2763, allocations: 44.23 kB / 438.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.2763, allocations: 8 kB / 438.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.2764, allocations: 19.88 kB / 438.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.706e-05/0.2764, allocations: 12 kB / 438.7 MB, free: 13.82 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.0001884/0.2766, allocations: 183.9 kB / 438.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002406/0.2768, allocations: 141.4 kB / 439 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00029/0.2771, allocations: 123.8 kB / 439.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.2771, allocations: 3.938 kB / 439.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.2771, allocations: 8.062 kB / 439.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.2771, allocations: 3.984 kB / 439.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002762/0.2774, allocations: 273.4 kB / 439.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2774, allocations: 0 / 439.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.2776, allocations: 27.92 kB / 439.4 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.2776, allocations: 8 kB / 439.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/0.2776, allocations: 4 kB / 439.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.2776, allocations: 7.938 kB / 439.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2776, allocations: 0 / 439.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003926/0.278, allocations: 242.5 kB / 439.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.2781, allocations: 132.8 kB / 439.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.637e-05/0.2781, allocations: 12 kB / 439.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.222e-05/0.2782, allocations: 4 kB / 439.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.147e-05/0.2783, allocations: 15.92 kB / 439.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.975e-05/0.2783, allocations: 8 kB / 439.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002718/0.2786, allocations: 257.9 kB / 440.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2786, allocations: 0 / 440.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003239/0.2789, allocations: 47.98 kB / 440.2 MB, free: 12.23 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.002238/0.2811, allocations: 1.194 MB / 441.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003513/0.2815, allocations: 152.1 kB / 441.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2815, allocations: 0 / 441.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.205e-05/0.2816, allocations: 27.92 kB / 441.5 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005019/0.2821, allocations: 112.7 kB / 441.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003401/0.2855, allocations: 2.743 MB / 444.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.2859, allocations: 0.7714 MB / 445.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000113/0.286, allocations: 30.53 kB / 445.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.2861, allocations: 83.41 kB / 445.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2861, allocations: 0 / 445.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03054/0.3167, allocations: 6.51 MB / 451.8 MB, free: 0.582 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.085/8.402, allocations: 8.062 kB / 451.8 MB, free: 0.5742 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.738610831991537] Failed to read output from testmodel.py, exit status != 0: ['time', 'upSample1.y', 'upSample2.y', 'sum.y'] 8.524682851013495 8.541145887 8.267234051 Calling exit ...