Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 189 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 225.7 MB / 253.3 MB, free: 12.83 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 47.92 kB / 371.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2552, allocations: 52.17 MB / 423.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003564/0.2587, allocations: 1.967 MB / 425.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001915/0.2606, allocations: 1.052 MB / 426.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.2608, allocations: 3.938 kB / 426.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006473/0.2614, allocations: 165.6 kB / 426.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003113/0.2617, allocations: 123.5 kB / 426.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006326/0.2624, allocations: 247.1 kB / 426.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003075/0.2627, allocations: 227.4 kB / 427.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.2628, allocations: 32.58 kB / 427.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.2629, allocations: 95.56 kB / 427.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001507/0.2631, allocations: 99.53 kB / 427.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.221e-05/0.2631, allocations: 20 kB / 427.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.2633, allocations: 59.94 kB / 427.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.69e-05/0.2633, allocations: 55.78 kB / 427.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.395e-05/0.2634, allocations: 67.58 kB / 427.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003541/0.2638, allocations: 261.1 kB / 427.8 MB, free: 9.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2638, allocations: 0 / 427.8 MB, free: 9.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2638, allocations: 0 / 427.8 MB, free: 9.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.2638, allocations: 0 / 427.8 MB, free: 9.918 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.0007787/0.2646, allocations: 494.5 kB / 428.3 MB, free: 9.398 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.2646, allocations: 8.031 kB / 428.3 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.264e-05/0.2646, allocations: 8.188 kB / 428.3 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.347e-05/0.2647, allocations: 46.69 kB / 428.3 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.039e-05/0.2647, allocations: 32.78 kB / 428.4 MB, free: 9.297 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003485/0.2651, allocations: 213.2 kB / 428.6 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.2651, allocations: 20.06 kB / 428.6 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.535e-05/0.2651, allocations: 12 kB / 428.6 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005755/0.2657, allocations: 327.6 kB / 428.9 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.2657, allocations: 0 / 428.9 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.2657, allocations: 0 / 428.9 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.2657, allocations: 8 kB / 428.9 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001517/0.2659, allocations: 63.95 kB / 429 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005108/0.2664, allocations: 345.4 kB / 429.3 MB, free: 8.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003265/0.2667, allocations: 164 kB / 429.5 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.2669, allocations: 74.55 kB / 429.6 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.2669, allocations: 7.938 kB / 429.6 MB, free: 7.953 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001596/0.2671, allocations: 75.38 kB / 429.7 MB, free: 7.867 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.713e-06/0.2671, allocations: 0 / 429.7 MB, free: 7.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004848/0.2675, allocations: 237.6 kB / 429.9 MB, free: 7.629 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.521e-05/0.2676, allocations: 148.6 kB / 430 MB, free: 7.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002833/0.2679, allocations: 276.8 kB / 430.3 MB, free: 7.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.2679, allocations: 37.69 kB / 430.3 MB, free: 7.129 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.498e-05/0.268, allocations: 116.6 kB / 430.4 MB, free: 7.012 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.255e-05/0.2681, allocations: 27.78 kB / 430.5 MB, free: 6.984 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.698e-05/0.2681, allocations: 57.89 kB / 430.5 MB, free: 6.922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.2683, allocations: 338.8 kB / 430.9 MB, free: 6.582 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.399e-05/0.2684, allocations: 36.45 kB / 430.9 MB, free: 6.547 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002238/0.2686, allocations: 226.7 kB / 431.1 MB, free: 6.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002576/0.2688, allocations: 195.5 kB / 431.3 MB, free: 6.008 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.668e-06/0.2689, allocations: 8 kB / 431.3 MB, free: 6 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003558/0.2692, allocations: 233.2 kB / 431.5 MB, free: 5.766 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.2692, allocations: 4 kB / 431.6 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.2692, allocations: 4 kB / 431.6 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.2693, allocations: 8 kB / 431.6 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.403e-05/0.2694, allocations: 19.92 kB / 431.6 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.2694, allocations: 15.88 kB / 431.6 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.2695, allocations: 16.42 kB / 431.6 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/0.2695, allocations: 16 kB / 431.6 MB, free: 5.684 MB / 334.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.0001568/0.2696, allocations: 163.9 kB / 431.8 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001805/0.2698, allocations: 121.5 kB / 431.9 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002467/0.2701, allocations: 119.4 kB / 432 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.2701, allocations: 7.938 kB / 432 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.2701, allocations: 7.938 kB / 432 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.2701, allocations: 3.984 kB / 432 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.2703, allocations: 200.6 kB / 432.2 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2703, allocations: 4 kB / 432.2 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.571e-05/0.2703, allocations: 12 kB / 432.3 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2703, allocations: 0 / 432.3 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.2704, allocations: 4 kB / 432.3 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.2704, allocations: 3.984 kB / 432.3 MB, free: 4.984 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/0.2704, allocations: 4.406 kB / 432.3 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003565/0.2707, allocations: 234.5 kB / 432.5 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.175e-05/0.2708, allocations: 39.83 kB / 432.5 MB, free: 4.688 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.65e-05/0.2708, allocations: 8 kB / 432.5 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.156e-05/0.2709, allocations: 8.078 kB / 432.6 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.499e-05/0.271, allocations: 27.8 kB / 432.6 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.271, allocations: 8.062 kB / 432.6 MB, free: 4.637 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001952/0.2712, allocations: 196.5 kB / 432.8 MB, free: 4.445 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2712, allocations: 0 / 432.8 MB, free: 4.445 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.2715, allocations: 43.94 kB / 432.8 MB, free: 4.402 MB / 334.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 (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.002277/0.2737, allocations: 1.2 MB / 434 MB, free: 3.355 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003128/0.2741, allocations: 154.5 kB / 434.2 MB, free: 3.207 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2741, allocations: 0 / 434.2 MB, free: 3.207 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.978e-05/0.2741, allocations: 23.98 kB / 434.2 MB, free: 3.184 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004688/0.2746, allocations: 111.1 kB / 434.3 MB, free: 3.082 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002752/0.2773, allocations: 2.398 MB / 436.7 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001413/0.2775, allocations: 152.7 kB / 436.8 MB, free: 324 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.551e-05/0.2776, allocations: 26.33 kB / 436.9 MB, free: 296 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.2777, allocations: 71.41 kB / 436.9 MB, free: 224 kB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2777, allocations: 0 / 436.9 MB, free: 224 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.3051, allocations: 6.08 MB / 443 MB, free: 10.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.1, allocations: 10.81 kB / 443 MB, free: 10.23 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78926e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.484701432986185] Failed to read output from testmodel.py, exit status != 0: ['time', 'upSample1.y', 'upSample2.y', 'and1.y'] 11.308199552004226 11.32262296 11.056017143 Calling exit ...