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.001531/0.001531, allocations: 117.9 kB / 18.5 MB, free: 4.52 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.001597/0.001597, allocations: 214.5 kB / 21.46 MB, free: 1.566 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.65/1.65, allocations: 230.5 MB / 254.8 MB, free: 15.09 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.002591/0.002591, allocations: 75.83 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1221, allocations: 53.33 MB / 427 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003701/0.1258, allocations: 1.987 MB / 429 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002402/0.1282, allocations: 1.36 MB / 430.4 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001317/0.1284, allocations: 7.938 kB / 430.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003187/0.1287, allocations: 75.59 kB / 430.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003899/0.1291, allocations: 139.4 kB / 430.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008088/0.1299, allocations: 262.3 kB / 430.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003026/0.1302, allocations: 227.4 kB / 431 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.1303, allocations: 36.3 kB / 431.1 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.1304, allocations: 99.61 kB / 431.2 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002041/0.1306, allocations: 115.5 kB / 431.3 MB, free: 480 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.08e-05/0.1307, allocations: 15.98 kB / 431.3 MB, free: 464 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000162/0.1308, allocations: 75.89 kB / 431.4 MB, free: 388 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001048/0.1309, allocations: 67.75 kB / 431.5 MB, free: 320 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.131, allocations: 95.36 kB / 431.5 MB, free: 224 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1994/0.3305, allocations: 302.9 kB / 431.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.3305, allocations: 0 / 431.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3305, allocations: 0.9375 kB / 431.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.314e-05/0.3305, allocations: 0 / 431.8 MB, free: 8.004 MB / 350.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.0009469/0.3314, allocations: 0.5948 MB / 432.4 MB, free: 7.504 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.3315, allocations: 12.09 kB / 432.4 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.333e-05/0.3315, allocations: 46.67 kB / 432.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.426e-05/0.3316, allocations: 31.22 kB / 432.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003541/0.3319, allocations: 313.9 kB / 432.8 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.332, allocations: 16.22 kB / 432.8 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.785e-05/0.332, allocations: 11.62 kB / 432.9 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005659/0.3326, allocations: 327.3 kB / 433.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.547e-06/0.3326, allocations: 0 / 433.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.005e-05/0.3326, allocations: 11.28 kB / 433.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.3326, allocations: 3.188 kB / 433.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.3328, allocations: 68.84 kB / 433.3 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004832/0.3333, allocations: 426.1 kB / 433.7 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003416/0.3336, allocations: 186.9 kB / 433.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/0.3337, allocations: 88.58 kB / 433.9 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.204e-05/0.3338, allocations: 3.219 kB / 433.9 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001589/0.3339, allocations: 83.77 kB / 434 MB, free: 6.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.513e-06/0.3339, allocations: 0 / 434 MB, free: 6.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005287/0.3345, allocations: 258.8 kB / 434.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/0.3345, allocations: 169.2 kB / 434.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003007/0.3348, allocations: 350.2 kB / 434.8 MB, free: 6.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.3348, allocations: 35.11 kB / 434.8 MB, free: 6.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.322e-05/0.3349, allocations: 131.3 kB / 435 MB, free: 6.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.039e-05/0.3349, allocations: 33.33 kB / 435 MB, free: 6.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.831e-05/0.335, allocations: 58.12 kB / 435 MB, free: 6.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.346e-05/0.3351, allocations: 343.7 kB / 435.4 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.157e-05/0.3352, allocations: 42.31 kB / 435.4 MB, free: 5.879 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.3353, allocations: 185.9 kB / 435.6 MB, free: 5.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002144/0.3355, allocations: 212.5 kB / 435.8 MB, free: 5.566 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.3355, allocations: 6.438 kB / 435.8 MB, free: 5.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003492/0.3359, allocations: 232.6 kB / 436 MB, free: 5.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.3359, allocations: 7.5 kB / 436 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3359, allocations: 7.656 kB / 436.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.3359, allocations: 5.594 kB / 436.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.3361, allocations: 40.94 kB / 436.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.3361, allocations: 16.09 kB / 436.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.3362, allocations: 15.41 kB / 436.1 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.723e-05/0.3362, allocations: 11.41 kB / 436.1 MB, free: 5.508 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.0001344/0.3363, allocations: 179.7 kB / 436.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001925/0.3365, allocations: 147 kB / 436.5 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.682e-05/0.3366, allocations: 36.67 kB / 436.5 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.3366, allocations: 3.594 kB / 436.5 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.3366, allocations: 5.938 kB / 436.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3366, allocations: 5.219 kB / 436.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001822/0.3368, allocations: 267.7 kB / 436.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3368, allocations: 0 / 436.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001226/0.3369, allocations: 35.73 kB / 436.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.3369, allocations: 2.531 kB / 436.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.3369, allocations: 2.875 kB / 436.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.3369, allocations: 6.062 kB / 436.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3369, allocations: 6.531 kB / 436.8 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003418/0.3373, allocations: 246.4 kB / 437.1 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.698e-05/0.3374, allocations: 125.3 kB / 437.2 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.8e-05/0.3374, allocations: 10.17 kB / 437.2 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.417e-05/0.3375, allocations: 5.969 kB / 437.2 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.865e-05/0.3375, allocations: 16.05 kB / 437.2 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.161e-05/0.3376, allocations: 10.19 kB / 437.2 MB, free: 4.914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002107/0.3378, allocations: 257.4 kB / 437.5 MB, free: 4.836 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3378, allocations: 0 / 437.5 MB, free: 4.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003245/0.3381, allocations: 52.17 kB / 437.5 MB, free: 4.832 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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.002028/0.3401, allocations: 1.196 MB / 438.7 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003389/0.3405, allocations: 143.7 kB / 438.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.3405, allocations: 5.25 kB / 438.9 MB, free: 4.137 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.744e-05/0.3406, allocations: 28.72 kB / 438.9 MB, free: 4.137 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005073/0.3411, allocations: 116.9 kB / 439 MB, free: 4.125 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.3438, allocations: 2.718 MB / 441.7 MB, free: 2.559 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002089/0.344, allocations: 0.7762 MB / 442.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001156/0.3441, allocations: 34.62 kB / 442.5 MB, free: 1.852 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.3442, allocations: 80.3 kB / 442.6 MB, free: 1.844 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3442, allocations: 7.734 kB / 442.6 MB, free: 1.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03139/0.3756, allocations: 6.494 MB / 449.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.255/8.63, allocations: 12.91 kB / 449.1 MB, free: 0.9375 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.78784e-05 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: 11.379766876343638] Failed to read output from testmodel.py, exit status != 0: ['time', 'upSample1.y', 'upSample2.y', 'sum.y'] 8.797865982633084 8.819982846 8.484794448 Calling exit ...