Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.002038/0.002038, allocations: 120.2 kB / 18.49 MB, free: 4.559 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.002209/0.002209, allocations: 214.2 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.605/1.605, allocations: 230.4 MB / 254.7 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 59.91 kB / 373.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1378, allocations: 53.37 MB / 427.1 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.005033/0.1428, allocations: 1.985 MB / 429 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002988/0.1458, allocations: 1.359 MB / 430.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001717/0.146, allocations: 7.938 kB / 430.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004318/0.1464, allocations: 71.55 kB / 430.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000447/0.1469, allocations: 147.3 kB / 430.6 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007688/0.1476, allocations: 265.9 kB / 430.9 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002945/0.1479, allocations: 227.4 kB / 431.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.1481, allocations: 32.3 kB / 431.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.1482, allocations: 99.61 kB / 431.2 MB, free: 432 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001556/0.1484, allocations: 115.5 kB / 431.3 MB, free: 316 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.867e-05/0.1484, allocations: 12 kB / 431.4 MB, free: 304 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001575/0.1485, allocations: 75.94 kB / 431.4 MB, free: 228 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.658e-05/0.1486, allocations: 67.77 kB / 431.5 MB, free: 160 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.1487, allocations: 107.3 kB / 431.6 MB, free: 52 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2315/0.3803, allocations: 287.1 kB / 431.9 MB, free: 7.844 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.627e-06/0.3803, allocations: 3.875 kB / 431.9 MB, free: 7.844 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.604e-06/0.3803, allocations: 1.344 kB / 431.9 MB, free: 7.844 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.3803, allocations: 0 / 431.9 MB, free: 7.844 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.0009788/0.3813, allocations: 0.6003 MB / 432.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.3813, allocations: 9.906 kB / 432.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.448e-05/0.3813, allocations: 5.188 kB / 432.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.58e-05/0.3814, allocations: 43.3 kB / 432.5 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.834e-05/0.3815, allocations: 33.23 kB / 432.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003561/0.3818, allocations: 315.9 kB / 432.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.548e-05/0.3818, allocations: 11.11 kB / 432.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.948e-05/0.3819, allocations: 16.28 kB / 432.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005872/0.3825, allocations: 323.9 kB / 433.2 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3825, allocations: 0 / 433.2 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.3825, allocations: 5.469 kB / 433.2 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.3825, allocations: 7.156 kB / 433.2 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.3827, allocations: 66.8 kB / 433.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000483/0.3831, allocations: 430.5 kB / 433.7 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003419/0.3835, allocations: 182.2 kB / 433.9 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.3836, allocations: 93.84 kB / 434 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.366e-05/0.3837, allocations: 6.859 kB / 434 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001581/0.3838, allocations: 80.28 kB / 434.1 MB, free: 6.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.613e-06/0.3838, allocations: 0 / 434.1 MB, free: 6.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005385/0.3844, allocations: 256.2 kB / 434.3 MB, free: 6.484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.811e-05/0.3845, allocations: 172.8 kB / 434.5 MB, free: 6.297 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003827/0.3848, allocations: 354.4 kB / 434.8 MB, free: 6.184 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.3849, allocations: 31.36 kB / 434.9 MB, free: 6.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.448e-05/0.3849, allocations: 131.9 kB / 435 MB, free: 6.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.021e-05/0.385, allocations: 33.22 kB / 435 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.02e-05/0.385, allocations: 57.81 kB / 435.1 MB, free: 6.035 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.047e-05/0.3851, allocations: 348.7 kB / 435.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.883e-05/0.3852, allocations: 40.3 kB / 435.5 MB, free: 5.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001502/0.3853, allocations: 192.9 kB / 435.7 MB, free: 5.551 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002338/0.3856, allocations: 210.3 kB / 435.9 MB, free: 5.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.3856, allocations: 2.188 kB / 435.9 MB, free: 5.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003541/0.3859, allocations: 234.8 kB / 436.1 MB, free: 5.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.386, allocations: 7.812 kB / 436.1 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.386, allocations: 5.297 kB / 436.1 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.27e-05/0.386, allocations: 5.562 kB / 436.1 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.3861, allocations: 38.28 kB / 436.2 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/0.3862, allocations: 12.22 kB / 436.2 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.3863, allocations: 23.52 kB / 436.2 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.3863, allocations: 13.44 kB / 436.2 MB, free: 5.344 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.0001428/0.3864, allocations: 179.7 kB / 436.4 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001946/0.3866, allocations: 142.8 kB / 436.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.823e-05/0.3867, allocations: 35.02 kB / 436.6 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.3867, allocations: 2.219 kB / 436.6 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3867, allocations: 1.156 kB / 436.6 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.3867, allocations: 11.67 kB / 436.6 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/0.3869, allocations: 270.6 kB / 436.8 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3869, allocations: 3.062 kB / 436.8 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.387, allocations: 30.48 kB / 436.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.387, allocations: 4.938 kB / 436.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.387, allocations: 9.609 kB / 436.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.3871, allocations: 3.438 kB / 436.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3871, allocations: 1.156 kB / 436.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003538/0.3874, allocations: 252.7 kB / 437.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.677e-05/0.3875, allocations: 123 kB / 437.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.967e-05/0.3875, allocations: 7.422 kB / 437.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.638e-05/0.3876, allocations: 8.984 kB / 437.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.3877, allocations: 11.02 kB / 437.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/0.3877, allocations: 11.28 kB / 437.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002359/0.3879, allocations: 258.1 kB / 437.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3879, allocations: 1 kB / 437.5 MB, free: 4.676 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003177/0.3882, allocations: 53.06 kB / 437.6 MB, free: 4.668 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.002119/0.3904, allocations: 1.187 MB / 438.8 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004095/0.3908, allocations: 143 kB / 438.9 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3908, allocations: 1.312 kB / 438.9 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.877e-05/0.3909, allocations: 29.86 kB / 439 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005197/0.3914, allocations: 122.6 kB / 439.1 MB, free: 3.945 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.3941, allocations: 2.721 MB / 441.8 MB, free: 2.371 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.3943, allocations: 0.7794 MB / 442.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001181/0.3945, allocations: 39.64 kB / 442.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001242/0.3946, allocations: 83.47 kB / 442.7 MB, free: 1.648 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3946, allocations: 3.938 kB / 442.7 MB, free: 1.645 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02605/0.4206, allocations: 6.509 MB / 449.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.351/8.771, allocations: 14.33 kB / 449.2 MB, free: 0.6914 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78784e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.587980846990831] Failed to read output from testmodel.py, exit status != 0: ['time', 'upSample1.y', 'upSample2.y', 'sum.y'] 8.975857344048563 9.001763191 8.617670793 Calling exit ...