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.00128/0.00128, allocations: 116.6 kB / 18.49 MB, free: 4.566 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.001236/0.001236, allocations: 189 kB / 21.43 MB, free: 1.641 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.375/1.375, allocations: 225.6 MB / 249.8 MB, free: 3.613 MB / 190.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.001446/0.001446, allocations: 47.94 kB / 366.3 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09148/0.09292, allocations: 52.14 MB / 418.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003426/0.09635, allocations: 1.99 MB / 420.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001852/0.0982, allocations: 1.122 MB / 421.6 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.09831, allocations: 3.938 kB / 421.6 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005464/0.09886, allocations: 159.4 kB / 421.7 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002859/0.09915, allocations: 119.5 kB / 421.9 MB, free: 9.188 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000632/0.09978, allocations: 252.9 kB / 422.1 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002704/0.1, allocations: 211.5 kB / 422.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.1002, allocations: 36.28 kB / 422.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.1003, allocations: 103.5 kB / 422.5 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001329/0.1004, allocations: 95.59 kB / 422.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.797e-05/0.1005, allocations: 12 kB / 422.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001326/0.1006, allocations: 59.91 kB / 422.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.768e-05/0.1007, allocations: 55.81 kB / 422.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.453e-05/0.1008, allocations: 91.42 kB / 422.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003572/0.1011, allocations: 262.8 kB / 423 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1011, allocations: 0 / 423 MB, free: 8.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1011, allocations: 0 / 423 MB, free: 8.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1011, allocations: 0 / 423 MB, free: 8.031 MB / 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.0008032/0.1019, allocations: 0.5505 MB / 423.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.102, allocations: 11.97 kB / 423.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.706e-05/0.102, allocations: 4.188 kB / 423.6 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.894e-05/0.102, allocations: 54.73 kB / 423.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.713e-05/0.1021, allocations: 24.8 kB / 423.7 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000365/0.1025, allocations: 286.9 kB / 423.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.1025, allocations: 16.12 kB / 424 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.628e-05/0.1025, allocations: 12 kB / 424 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005304/0.103, allocations: 295 kB / 424.3 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.103, allocations: 4 kB / 424.3 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.946e-05/0.1031, allocations: 11.98 kB / 424.3 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1031, allocations: 0 / 424.3 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000149/0.1032, allocations: 59.91 kB / 424.3 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005075/0.1037, allocations: 390.2 kB / 424.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003239/0.104, allocations: 164 kB / 424.9 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.1042, allocations: 74.55 kB / 424.9 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.1042, allocations: 7.984 kB / 425 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001566/0.1044, allocations: 79.33 kB / 425 MB, free: 5.789 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.664e-06/0.1044, allocations: 0 / 425 MB, free: 5.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005041/0.1049, allocations: 229.4 kB / 425.3 MB, free: 5.559 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.356e-05/0.105, allocations: 136.5 kB / 425.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002907/0.1053, allocations: 276.9 kB / 425.7 MB, free: 5.109 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.1053, allocations: 37.64 kB / 425.7 MB, free: 5.066 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.102e-05/0.1054, allocations: 120.7 kB / 425.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.45e-05/0.1054, allocations: 31.78 kB / 425.8 MB, free: 4.914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.795e-05/0.1055, allocations: 57.89 kB / 425.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.1056, allocations: 330.8 kB / 426.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.565e-05/0.1057, allocations: 36.45 kB / 426.3 MB, free: 4.484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001885/0.1059, allocations: 178.7 kB / 426.4 MB, free: 4.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002509/0.1061, allocations: 199.2 kB / 426.6 MB, free: 4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.1062, allocations: 4 kB / 426.6 MB, free: 3.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003542/0.1065, allocations: 221.9 kB / 426.9 MB, free: 3.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.1065, allocations: 12 kB / 426.9 MB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.1065, allocations: 4 kB / 426.9 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.1065, allocations: 4 kB / 426.9 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.034e-05/0.1066, allocations: 24.3 kB / 426.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.1066, allocations: 7.938 kB / 426.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.1068, allocations: 19.94 kB / 426.9 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.1068, allocations: 16 kB / 426.9 MB, free: 3.688 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.0001464/0.1069, allocations: 168.5 kB / 427.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.1071, allocations: 133.4 kB / 427.2 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.094e-05/0.1072, allocations: 29.7 kB / 427.3 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.319e-06/0.1072, allocations: 4 kB / 427.3 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1072, allocations: 3.938 kB / 427.3 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1072, allocations: 3.984 kB / 427.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002296/0.1074, allocations: 245.5 kB / 427.5 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1074, allocations: 0 / 427.5 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.262e-05/0.1075, allocations: 11.98 kB / 427.5 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1075, allocations: 0 / 427.5 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.1075, allocations: 12 kB / 427.5 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1075, allocations: 0 / 427.5 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.1075, allocations: 7.875 kB / 427.5 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003552/0.1078, allocations: 218.6 kB / 427.8 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.1079, allocations: 116.9 kB / 427.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.361e-05/0.108, allocations: 8 kB / 427.9 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.913e-05/0.108, allocations: 11.98 kB / 427.9 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.459e-05/0.1081, allocations: 8 kB / 427.9 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.16e-05/0.1081, allocations: 7.938 kB / 427.9 MB, free: 2.609 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001897/0.1083, allocations: 200.4 kB / 428.1 MB, free: 2.414 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1083, allocations: 0 / 428.1 MB, free: 2.414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002929/0.1086, allocations: 47.92 kB / 428.1 MB, free: 2.367 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.002126/0.1107, allocations: 1.155 MB / 429.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003035/0.111, allocations: 138.8 kB / 429.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.111, allocations: 0 / 429.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.089e-05/0.1111, allocations: 27.98 kB / 429.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004955/0.1116, allocations: 124.1 kB / 429.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002735/0.1143, allocations: 2.38 MB / 432 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000373/0.1147, allocations: 0.7634 MB / 432.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.138e-05/0.1148, allocations: 21.95 kB / 432.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.1149, allocations: 63.41 kB / 432.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1149, allocations: 0 / 432.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02328/0.1382, allocations: 5.617 MB / 438.4 MB, free: 8.121 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.13/8.268, allocations: 13.19 kB / 438.4 MB, free: 8.113 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.788936877972446] Failed to read output from testmodel.py, exit status != 0: ['time', 'upSample1.y', 'upSample2.y', 'and1.y'] 8.442306687997188 8.623304457 8.520099123 Calling exit ...