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.001707/0.001707, allocations: 109.1 kB / 21.21 MB, free: 0.6445 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.002132/0.002132, allocations: 209.4 kB / 24.51 MB, free: 3.941 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.577/1.577, allocations: 230.5 MB / 258.2 MB, free: 7.785 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.002068/0.002068, allocations: 59.91 kB / 378.5 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3368, allocations: 53.41 MB / 431.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003817/0.3406, allocations: 1.952 MB / 433.9 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002518/0.3431, allocations: 1.277 MB / 435.1 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001929/0.3433, allocations: 7.938 kB / 435.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003745/0.3437, allocations: 75.53 kB / 435.2 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004433/0.3441, allocations: 139.4 kB / 435.3 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009182/0.345, allocations: 278.7 kB / 435.6 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003339/0.3454, allocations: 223.4 kB / 435.8 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001586/0.3455, allocations: 38.67 kB / 435.9 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.3457, allocations: 95.64 kB / 436 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001808/0.3459, allocations: 115.4 kB / 436.1 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.401e-05/0.3459, allocations: 16 kB / 436.1 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001951/0.3461, allocations: 79.94 kB / 436.2 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001024/0.3462, allocations: 59.83 kB / 436.2 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001077/0.3463, allocations: 83.39 kB / 436.3 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004809/0.3468, allocations: 302.8 kB / 436.6 MB, free: 1.738 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.3468, allocations: 4 kB / 436.6 MB, free: 1.734 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3468, allocations: 0 / 436.6 MB, free: 1.734 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.3468, allocations: 0 / 436.6 MB, free: 1.734 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.001033/0.3478, allocations: 0.5255 MB / 437.1 MB, free: 1.172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.3479, allocations: 12.03 kB / 437.2 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.441e-05/0.3479, allocations: 4.188 kB / 437.2 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.881e-05/0.348, allocations: 46.73 kB / 437.2 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.52e-05/0.348, allocations: 28.75 kB / 437.2 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004476/0.3485, allocations: 258.5 kB / 437.5 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/0.3485, allocations: 8.375 kB / 437.5 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.3485, allocations: 12.38 kB / 437.5 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007251/0.3493, allocations: 382.6 kB / 437.9 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.3493, allocations: 3.984 kB / 437.9 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.408e-05/0.3493, allocations: 4 kB / 437.9 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.3493, allocations: 0 / 437.9 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002142/0.3495, allocations: 79.89 kB / 438 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006592/0.3502, allocations: 361.4 kB / 438.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004461/0.3506, allocations: 192 kB / 438.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001641/0.3508, allocations: 82.53 kB / 438.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.3508, allocations: 4 kB / 438.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001997/0.351, allocations: 87.31 kB / 438.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 2.245e-06/0.351, allocations: 0 / 438.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0006381/0.3517, allocations: 265.4 kB / 438.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/0.3518, allocations: 166.2 kB / 439.1 MB, free: 15.01 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004023/0.3522, allocations: 356.2 kB / 439.4 MB, free: 14.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.3522, allocations: 29.7 kB / 439.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.3523, allocations: 144.5 kB / 439.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.066e-05/0.3524, allocations: 31.84 kB / 439.6 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.505e-05/0.3525, allocations: 53.89 kB / 439.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.3526, allocations: 346.7 kB / 440 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.691e-05/0.3527, allocations: 40.45 kB / 440.1 MB, free: 14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002644/0.353, allocations: 268 kB / 440.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003151/0.3533, allocations: 215.4 kB / 440.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.3533, allocations: 4 kB / 440.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004061/0.3537, allocations: 233.6 kB / 440.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.3537, allocations: 12.06 kB / 440.8 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.3537, allocations: 4 kB / 440.8 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/0.3538, allocations: 7.984 kB / 440.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.3539, allocations: 47.86 kB / 440.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/0.354, allocations: 7.938 kB / 440.9 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001265/0.3541, allocations: 19.89 kB / 440.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/0.3541, allocations: 8 kB / 440.9 MB, free: 13.04 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.0002415/0.3543, allocations: 183.7 kB / 441.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/0.3546, allocations: 145.4 kB / 441.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003403/0.3549, allocations: 127.8 kB / 441.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.3549, allocations: 8.031 kB / 441.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-05/0.3549, allocations: 7.922 kB / 441.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.355, allocations: 0 / 441.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003104/0.3553, allocations: 224.6 kB / 441.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3553, allocations: 0 / 441.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001497/0.3554, allocations: 31.92 kB / 441.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.3554, allocations: 480 / 441.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.3554, allocations: 8 kB / 441.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.3554, allocations: 4 kB / 441.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.3554, allocations: 8 kB / 441.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004627/0.3559, allocations: 258.3 kB / 441.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.356, allocations: 55.72 kB / 441.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.494e-05/0.3561, allocations: 8 kB / 441.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.741e-05/0.3562, allocations: 12.06 kB / 441.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.964e-05/0.3563, allocations: 11.92 kB / 442 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.902e-05/0.3563, allocations: 11.98 kB / 442 MB, free: 11.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003163/0.3566, allocations: 259 kB / 442.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3566, allocations: 0 / 442.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003671/0.357, allocations: 47.94 kB / 442.3 MB, free: 11.57 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.00265/0.3596, allocations: 1.229 MB / 443.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000447/0.3601, allocations: 148.5 kB / 443.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3601, allocations: 256 / 443.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.953e-05/0.3602, allocations: 39.97 kB / 443.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006252/0.3608, allocations: 128 kB / 443.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004044/0.3649, allocations: 2.739 MB / 446.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.3651, allocations: 161.3 kB / 446.7 MB, free: 7.035 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001791/0.3653, allocations: 38.66 kB / 446.7 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/0.3654, allocations: 83.41 kB / 446.8 MB, free: 6.91 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3654, allocations: 0 / 446.8 MB, free: 6.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03019/0.3956, allocations: 7.031 MB / 453.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.5, allocations: 3.859 kB / 453.9 MB, free: 15.95 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.219847236992791] Failed to read output from testmodel.py, exit status != 0: ['time', 'upSample1.y', 'upSample2.y', 'sum.y'] 11.707064324058592 11.721714211 11.371792955 Calling exit ...