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.00127/0.00127, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001268/0.001268, allocations: 218.2 kB / 24.52 MB, free: 3.914 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.366/1.366, allocations: 230.6 MB / 258.3 MB, free: 7.766 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.001376/0.001376, allocations: 39.94 kB / 378.5 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2656, allocations: 53.37 MB / 431.9 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003542/0.2691, allocations: 1.987 MB / 433.8 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002075/0.2712, allocations: 1.192 MB / 435 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001/0.2713, allocations: 7.938 kB / 435 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004745/0.2718, allocations: 158.7 kB / 435.2 MB, free: 3.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003813/0.2722, allocations: 163.3 kB / 435.4 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000535/0.2727, allocations: 215.3 kB / 435.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002683/0.273, allocations: 227.4 kB / 435.8 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.2731, allocations: 36.56 kB / 435.8 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001282/0.2732, allocations: 103.5 kB / 435.9 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.2733, allocations: 99.59 kB / 436 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.804e-05/0.2734, allocations: 12 kB / 436 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001366/0.2735, allocations: 67.89 kB / 436.1 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.573e-05/0.2736, allocations: 59.77 kB / 436.2 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.662e-05/0.2737, allocations: 71.53 kB / 436.2 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003432/0.274, allocations: 257.2 kB / 436.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.274, allocations: 4 kB / 436.5 MB, free: 2 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.274, allocations: 0 / 436.5 MB, free: 2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.274, allocations: 3.938 kB / 436.5 MB, free: 1.996 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.0007174/0.2748, allocations: 494.5 kB / 437 MB, free: 1.477 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.2748, allocations: 8.031 kB / 437 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.533e-05/0.2748, allocations: 8.188 kB / 437 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.347e-05/0.2748, allocations: 46.73 kB / 437 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.23e-05/0.2749, allocations: 24.8 kB / 437.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003352/0.2752, allocations: 233 kB / 437.3 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.2753, allocations: 16.12 kB / 437.3 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.123e-05/0.2753, allocations: 16 kB / 437.3 MB, free: 1.102 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005499/0.2758, allocations: 321.8 kB / 437.6 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.2758, allocations: 4 kB / 437.6 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.2759, allocations: 4 kB / 437.6 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.2759, allocations: 7.984 kB / 437.6 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001553/0.276, allocations: 59.91 kB / 437.7 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000487/0.2765, allocations: 341.5 kB / 438 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003245/0.2768, allocations: 167.9 kB / 438.2 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.277, allocations: 78.55 kB / 438.3 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.277, allocations: 4 kB / 438.3 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001808/0.2772, allocations: 91.31 kB / 438.4 MB, free: 15.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 3.516e-06/0.2772, allocations: 7.922 kB / 438.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004876/0.2777, allocations: 221.4 kB / 438.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.2778, allocations: 144.5 kB / 438.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003113/0.2781, allocations: 289 kB / 439 MB, free: 15.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.2781, allocations: 33.7 kB / 439.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.2782, allocations: 120.6 kB / 439.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.708e-05/0.2783, allocations: 35.77 kB / 439.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.067e-05/0.2783, allocations: 49.94 kB / 439.3 MB, free: 14.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.2785, allocations: 342.8 kB / 439.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.708e-05/0.2786, allocations: 44.38 kB / 439.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002255/0.2788, allocations: 225.4 kB / 439.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002692/0.2791, allocations: 199.3 kB / 440 MB, free: 14.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.2791, allocations: 4 kB / 440.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003868/0.2795, allocations: 225.1 kB / 440.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.2795, allocations: 8 kB / 440.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.2795, allocations: 4 kB / 440.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.2795, allocations: 8 kB / 440.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.725e-05/0.2796, allocations: 24.45 kB / 440.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.2796, allocations: 15.94 kB / 440.3 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.2797, allocations: 19.94 kB / 440.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.451e-05/0.2797, allocations: 8 kB / 440.4 MB, free: 13.73 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.0001576/0.2799, allocations: 163.9 kB / 440.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002014/0.2801, allocations: 129.4 kB / 440.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002543/0.2804, allocations: 123.7 kB / 440.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.2804, allocations: 0 / 440.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.2804, allocations: 8.406 kB / 440.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2804, allocations: 4 kB / 440.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002186/0.2806, allocations: 204.9 kB / 441 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2806, allocations: 4 kB / 441 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.827e-05/0.2806, allocations: 15.92 kB / 441 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2806, allocations: 3.938 kB / 441 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.2807, allocations: 8 kB / 441 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.207e-05/0.2807, allocations: 4 kB / 441 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.2807, allocations: 3.938 kB / 441 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00037/0.2811, allocations: 230.6 kB / 441.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.498e-05/0.2811, allocations: 39.84 kB / 441.3 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.663e-05/0.2812, allocations: 11.98 kB / 441.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.164e-05/0.2812, allocations: 11.94 kB / 441.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.075e-05/0.2813, allocations: 11.92 kB / 441.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.446e-05/0.2813, allocations: 12 kB / 441.3 MB, free: 12.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002128/0.2815, allocations: 204.5 kB / 441.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2815, allocations: 0 / 441.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002902/0.2818, allocations: 43.94 kB / 441.6 MB, free: 12.43 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 (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.002303/0.2841, allocations: 1.204 MB / 442.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003102/0.2844, allocations: 139.6 kB / 442.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2844, allocations: 0 / 442.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.923e-05/0.2845, allocations: 27.94 kB / 442.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004789/0.285, allocations: 129.2 kB / 443.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002833/0.2878, allocations: 2.413 MB / 445.5 MB, free: 8.488 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/0.288, allocations: 153.4 kB / 445.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.68e-05/0.288, allocations: 30.66 kB / 445.7 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.2882, allocations: 67.42 kB / 445.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2882, allocations: 0 / 445.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02725/0.3154, allocations: 6.191 MB / 451.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/10.99, allocations: 7.922 kB / 451.9 MB, free: 2.125 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.397952163009904] Failed to read output from testmodel.py, exit status != 0: ['time', 'upSample1.y', 'upSample2.y', 'and1.y'] 11.209301047027111 11.23637471 10.957509077 Calling exit ...