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.001241/0.001241, allocations: 118.3 kB / 18.49 MB, free: 4.559 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.001307/0.001307, allocations: 219 kB / 21.46 MB, free: 1.605 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.405/1.405, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.001545/0.001545, allocations: 51.92 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1089, allocations: 53.32 MB / 427 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003797/0.1127, allocations: 2.02 MB / 429 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002191/0.1149, allocations: 1.266 MB / 430.3 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.115, allocations: 7.875 kB / 430.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006489/0.1157, allocations: 155.4 kB / 430.5 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004197/0.1161, allocations: 163.3 kB / 430.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006391/0.1167, allocations: 203.3 kB / 430.8 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003218/0.117, allocations: 231.4 kB / 431 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.1172, allocations: 36.28 kB / 431.1 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001466/0.1173, allocations: 99.58 kB / 431.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.1175, allocations: 107.5 kB / 431.3 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.776e-05/0.1175, allocations: 12 kB / 431.3 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.1176, allocations: 59.97 kB / 431.4 MB, free: 444 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.327e-05/0.1177, allocations: 59.77 kB / 431.4 MB, free: 384 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.938e-05/0.1178, allocations: 87.41 kB / 431.5 MB, free: 296 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003877/0.1182, allocations: 262.8 kB / 431.8 MB, free: 32 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1182, allocations: 0 / 431.8 MB, free: 32 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1182, allocations: 3.938 kB / 431.8 MB, free: 28 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.1182, allocations: 0 / 431.8 MB, free: 28 kB / 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.1944/0.3126, allocations: 0.5526 MB / 432.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.3126, allocations: 14.02 kB / 432.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.783e-05/0.3127, allocations: 3.312 kB / 432.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.378e-05/0.3127, allocations: 44.77 kB / 432.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.602e-05/0.3128, allocations: 31.25 kB / 432.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003186/0.3131, allocations: 289.2 kB / 432.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.3131, allocations: 15.31 kB / 432.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.3131, allocations: 12.56 kB / 432.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005153/0.3136, allocations: 306.9 kB / 433 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.3137, allocations: 0.5312 kB / 433 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.3137, allocations: 6.625 kB / 433 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.3137, allocations: 5.578 kB / 433 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001503/0.3138, allocations: 61.41 kB / 433.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004237/0.3143, allocations: 391.4 kB / 433.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000291/0.3146, allocations: 165.7 kB / 433.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001271/0.3147, allocations: 76.72 kB / 433.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.333e-05/0.3147, allocations: 8.062 kB / 433.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001402/0.3149, allocations: 73.11 kB / 433.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.643e-06/0.3149, allocations: 0 / 433.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004849/0.3153, allocations: 226 kB / 434 MB, free: 10.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.118e-05/0.3154, allocations: 144.4 kB / 434.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002378/0.3156, allocations: 290.4 kB / 434.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.3157, allocations: 31.58 kB / 434.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.048e-05/0.3157, allocations: 120.1 kB / 434.6 MB, free: 9.922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.45e-05/0.3157, allocations: 35.94 kB / 434.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.456e-05/0.3158, allocations: 51.25 kB / 434.7 MB, free: 9.895 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.669e-05/0.3158, allocations: 336.5 kB / 435 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.543e-05/0.3159, allocations: 40.19 kB / 435 MB, free: 9.578 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.316, allocations: 164.2 kB / 435.2 MB, free: 9.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001821/0.3162, allocations: 202.5 kB / 435.4 MB, free: 9.277 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.3162, allocations: 2.781 kB / 435.4 MB, free: 9.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003267/0.3165, allocations: 230.8 kB / 435.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.3166, allocations: 7.688 kB / 435.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.3166, allocations: 8.469 kB / 435.6 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.3166, allocations: 5.688 kB / 435.6 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.989e-05/0.3167, allocations: 25.81 kB / 435.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.3167, allocations: 8.281 kB / 435.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.3168, allocations: 22.67 kB / 435.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.3168, allocations: 10.06 kB / 435.7 MB, free: 9.211 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.0001156/0.3169, allocations: 167.3 kB / 435.9 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001592/0.3171, allocations: 126.1 kB / 436 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.056e-05/0.3172, allocations: 28.83 kB / 436 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.3172, allocations: 3.656 kB / 436 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.3172, allocations: 9.641 kB / 436 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.3172, allocations: 3.938 kB / 436 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001616/0.3173, allocations: 258.3 kB / 436.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3173, allocations: 1.062 kB / 436.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.76e-05/0.3174, allocations: 8.469 kB / 436.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3174, allocations: 1.062 kB / 436.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.3174, allocations: 9.609 kB / 436.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.3174, allocations: 1.094 kB / 436.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.3174, allocations: 3.047 kB / 436.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002973/0.3177, allocations: 240.2 kB / 436.5 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.157e-05/0.3178, allocations: 117.8 kB / 436.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.445e-05/0.3178, allocations: 7.203 kB / 436.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.751e-05/0.3179, allocations: 11.61 kB / 436.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.947e-05/0.3179, allocations: 2.25 kB / 436.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/0.3179, allocations: 7.5 kB / 436.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001771/0.3181, allocations: 210.8 kB / 436.9 MB, free: 8.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3181, allocations: 0 / 436.9 MB, free: 8.488 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003052/0.3184, allocations: 39.88 kB / 436.9 MB, free: 8.48 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.nextTimeEventScaled,table1.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.001938/0.3203, allocations: 1.158 MB / 438.1 MB, free: 7.703 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002772/0.3206, allocations: 133.6 kB / 438.2 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3206, allocations: 1.062 kB / 438.2 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.247e-05/0.3207, allocations: 26.22 kB / 438.2 MB, free: 7.652 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004571/0.3211, allocations: 121.4 kB / 438.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.3235, allocations: 2.402 MB / 440.8 MB, free: 5.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002275/0.3237, allocations: 0.7534 MB / 441.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001055/0.3238, allocations: 29.44 kB / 441.5 MB, free: 5.062 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.3239, allocations: 68.5 kB / 441.6 MB, free: 5.016 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3239, allocations: 0 / 441.6 MB, free: 5.016 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02421/0.3481, allocations: 5.713 MB / 447.3 MB, free: 4.113 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.03/8.378, allocations: 10.58 kB / 447.3 MB, free: 4.109 MB / 350.1 MB " [Timeout remaining time 651] (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: 10.804969149001408] Failed to read output from testmodel.py, exit status != 0: ['time', 'upSample1.y', 'upSample2.y', 'and1.y'] 8.552122002001852 8.564157865 8.44306481 Calling exit ...