Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001547/0.001547, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.002112/0.002112, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.358/1.358, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 47.91 kB / 378.6 MB, free: 3.234 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2572, allocations: 53.36 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003444/0.2607, allocations: 2.038 MB / 434 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.2629, allocations: 1.282 MB / 435.2 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001301/0.263, allocations: 7.938 kB / 435.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005833/0.2636, allocations: 159.4 kB / 435.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003996/0.264, allocations: 163.4 kB / 435.6 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005875/0.2646, allocations: 214.6 kB / 435.8 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003104/0.2649, allocations: 227.4 kB / 436 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.265, allocations: 36.56 kB / 436 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001417/0.2652, allocations: 95.62 kB / 436.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.2653, allocations: 107.5 kB / 436.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.783e-05/0.2653, allocations: 12 kB / 436.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001532/0.2655, allocations: 71.94 kB / 436.3 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.525e-05/0.2656, allocations: 55.78 kB / 436.4 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.915e-05/0.2657, allocations: 91.34 kB / 436.4 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003755/0.2661, allocations: 255.8 kB / 436.7 MB, free: 2.086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.2661, allocations: 4 kB / 436.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2661, allocations: 0 / 436.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.2661, allocations: 0 / 436.7 MB, free: 2.082 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.0008375/0.2669, allocations: 498.5 kB / 437.2 MB, free: 1.559 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.2669, allocations: 12.03 kB / 437.2 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.624e-05/0.267, allocations: 4.188 kB / 437.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.028e-05/0.267, allocations: 46.73 kB / 437.3 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.029e-05/0.2671, allocations: 28.75 kB / 437.3 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003637/0.2674, allocations: 233 kB / 437.5 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.2675, allocations: 16.11 kB / 437.5 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.435e-05/0.2675, allocations: 16 kB / 437.5 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005257/0.268, allocations: 300.1 kB / 437.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.268, allocations: 0 / 437.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.268, allocations: 4 kB / 437.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.268, allocations: 4 kB / 437.8 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001527/0.2682, allocations: 59.91 kB / 437.9 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004986/0.2687, allocations: 361.4 kB / 438.3 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003166/0.269, allocations: 163.8 kB / 438.4 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.2692, allocations: 82.67 kB / 438.5 MB, free: 120 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.2692, allocations: 4 kB / 438.5 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001537/0.2693, allocations: 79.38 kB / 438.6 MB, free: 24 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.423e-06/0.2693, allocations: 0 / 438.6 MB, free: 24 kB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004993/0.2698, allocations: 225.4 kB / 438.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.2699, allocations: 156.4 kB / 438.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003001/0.2702, allocations: 281 kB / 439.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.34e-05/0.2703, allocations: 29.7 kB / 439.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.399e-05/0.2704, allocations: 124.6 kB / 439.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.993e-05/0.2704, allocations: 31.78 kB / 439.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.068e-05/0.2705, allocations: 49.94 kB / 439.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.2706, allocations: 338.8 kB / 439.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.2708, allocations: 36.45 kB / 439.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.2709, allocations: 174.1 kB / 440 MB, free: 14.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.2712, allocations: 199.2 kB / 440.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2712, allocations: 0 / 440.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003492/0.2715, allocations: 225.4 kB / 440.4 MB, free: 14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.2716, allocations: 7.938 kB / 440.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.2716, allocations: 4 kB / 440.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.2716, allocations: 8 kB / 440.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.206e-05/0.2717, allocations: 27.92 kB / 440.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.2717, allocations: 11.88 kB / 440.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.2718, allocations: 19.94 kB / 440.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.2718, allocations: 12 kB / 440.5 MB, free: 13.91 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.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,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.0001557/0.272, allocations: 168.1 kB / 440.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001865/0.2722, allocations: 133.4 kB / 440.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002333/0.2724, allocations: 111.3 kB / 440.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.2724, allocations: 384 / 440.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.539e-05/0.2724, allocations: 7.938 kB / 440.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.2724, allocations: 3.984 kB / 440.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002221/0.2726, allocations: 221 kB / 441.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.2726, allocations: 7.984 kB / 441.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.631e-05/0.2727, allocations: 12 kB / 441.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2727, allocations: 0 / 441.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.517e-05/0.2727, allocations: 4 kB / 441.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2727, allocations: 3.938 kB / 441.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.2727, allocations: 7.875 kB / 441.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003452/0.273, allocations: 228.8 kB / 441.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.039e-05/0.2731, allocations: 39.83 kB / 441.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.594e-05/0.2732, allocations: 8 kB / 441.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.155e-05/0.2732, allocations: 7.984 kB / 441.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.892e-05/0.2733, allocations: 8 kB / 441.4 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.233e-05/0.2733, allocations: 11.92 kB / 441.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002002/0.2735, allocations: 204.5 kB / 441.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2735, allocations: 0 / 441.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002999/0.2738, allocations: 43.94 kB / 441.7 MB, free: 12.62 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,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.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.002225/0.276, allocations: 1.17 MB / 442.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003163/0.2763, allocations: 139.8 kB / 443 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2763, allocations: 0 / 443 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.806e-05/0.2764, allocations: 23.98 kB / 443 MB, free: 11.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004892/0.2769, allocations: 120.2 kB / 443.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002817/0.2797, allocations: 2.402 MB / 445.5 MB, free: 8.715 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003993/0.2801, allocations: 0.7519 MB / 446.3 MB, free: 7.938 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.06e-05/0.2802, allocations: 26.28 kB / 446.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.2803, allocations: 71.39 kB / 446.4 MB, free: 7.836 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2803, allocations: 0 / 446.4 MB, free: 7.836 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02718/0.3075, allocations: 5.986 MB / 452.4 MB, free: 1.941 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/10.83, allocations: 4.062 kB / 452.4 MB, free: 1.938 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78926e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.208590722992085] Failed to read output from testmodel.py, exit status != 0: ['time', 'upSample1.y', 'upSample2.y', 'and1.y'] 11.040360265003983 11.05530585 10.786153038 Calling exit ...