Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.001245/0.001245, allocations: 103.9 kB / 21.21 MB, free: 0.6523 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.001371/0.001371, allocations: 188.9 kB / 24.49 MB, free: 3.957 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.341/1.341, 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.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 47.92 kB / 371.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.24, allocations: 52.19 MB / 423.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003823/0.2438, allocations: 1.892 MB / 425.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.2458, allocations: 1.021 MB / 426.3 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.2459, allocations: 7.938 kB / 426.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007075/0.2467, allocations: 155.5 kB / 426.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003247/0.247, allocations: 119.5 kB / 426.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005971/0.2476, allocations: 213.4 kB / 426.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002926/0.2479, allocations: 191.4 kB / 426.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.248, allocations: 29.73 kB / 427 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.2481, allocations: 79.64 kB / 427 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.2483, allocations: 83.55 kB / 427.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.988e-05/0.2483, allocations: 16 kB / 427.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001526/0.2484, allocations: 63.95 kB / 427.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.646e-05/0.2485, allocations: 39.84 kB / 427.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.86e-05/0.2486, allocations: 55.66 kB / 427.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003792/0.249, allocations: 221.3 kB / 427.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.249, allocations: 0 / 427.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.249, allocations: 0 / 427.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.249, allocations: 0 / 427.5 MB, free: 10.22 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008356/0.2498, allocations: 462.6 kB / 428 MB, free: 9.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.2499, allocations: 12.03 kB / 428 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.301e-05/0.2499, allocations: 192 / 428 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.042e-05/0.2499, allocations: 46.73 kB / 428 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.161e-05/0.25, allocations: 32.72 kB / 428.1 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003571/0.2503, allocations: 209.1 kB / 428.3 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.2504, allocations: 8.125 kB / 428.3 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.896e-05/0.2504, allocations: 11.98 kB / 428.3 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004021/0.2508, allocations: 201.2 kB / 428.5 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.2508, allocations: 0 / 428.5 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.2508, allocations: 4 kB / 428.5 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.2508, allocations: 4 kB / 428.5 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001147/0.2509, allocations: 39.91 kB / 428.5 MB, free: 9.113 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005328/0.2515, allocations: 330.4 kB / 428.8 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.2517, allocations: 138.5 kB / 429 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.2518, allocations: 55.42 kB / 429 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.2519, allocations: 3.984 kB / 429 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001769/0.2521, allocations: 79.33 kB / 429.1 MB, free: 8.406 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.904e-06/0.2521, allocations: 0 / 429.1 MB, free: 8.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004147/0.2525, allocations: 161.4 kB / 429.3 MB, free: 8.242 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001269/0.2526, allocations: 166.2 kB / 429.4 MB, free: 8.043 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003046/0.2529, allocations: 273.4 kB / 429.7 MB, free: 7.766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.2529, allocations: 29.7 kB / 429.7 MB, free: 7.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.253, allocations: 124.3 kB / 429.9 MB, free: 7.602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.403e-05/0.2531, allocations: 15.91 kB / 429.9 MB, free: 7.586 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.804e-05/0.2531, allocations: 37.66 kB / 429.9 MB, free: 7.543 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2533, allocations: 326.8 kB / 430.2 MB, free: 7.215 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.776e-05/0.2533, allocations: 23.98 kB / 430.2 MB, free: 7.191 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.2535, allocations: 139.1 kB / 430.4 MB, free: 7.016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001657/0.2536, allocations: 97.91 kB / 430.5 MB, free: 6.898 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2536, allocations: 7.938 kB / 430.5 MB, free: 6.891 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002292/0.2539, allocations: 125.5 kB / 430.6 MB, free: 6.762 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.2539, allocations: 10.5 kB / 430.6 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2539, allocations: 0 / 430.6 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.2539, allocations: 4.188 kB / 430.6 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.311e-05/0.254, allocations: 19.92 kB / 430.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.254, allocations: 7.938 kB / 430.7 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.595e-05/0.2541, allocations: 11.95 kB / 430.7 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.2541, allocations: 11.94 kB / 430.7 MB, free: 6.699 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001335/0.2542, allocations: 146.9 kB / 430.8 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.2543, allocations: 77.48 kB / 430.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002442/0.2546, allocations: 115.4 kB / 431 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.2546, allocations: 8.094 kB / 431 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.2546, allocations: 3.938 kB / 431 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.2546, allocations: 3.984 kB / 431 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002066/0.2548, allocations: 188.8 kB / 431.2 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2548, allocations: 4 kB / 431.2 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.539e-05/0.2548, allocations: 7.938 kB / 431.2 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.2549, allocations: 4 kB / 431.2 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.2549, allocations: 7.984 kB / 431.2 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.2549, allocations: 4 kB / 431.2 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.2549, allocations: 3.938 kB / 431.2 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003077/0.2552, allocations: 183.5 kB / 431.4 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.788e-05/0.2552, allocations: 23.89 kB / 431.4 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.161e-05/0.2553, allocations: 8 kB / 431.4 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.771e-05/0.2553, allocations: 11.92 kB / 431.5 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.156e-05/0.2554, allocations: 15.88 kB / 431.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.2554, allocations: 4 kB / 431.5 MB, free: 5.801 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001985/0.2556, allocations: 196.5 kB / 431.7 MB, free: 5.609 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2556, allocations: 0 / 431.7 MB, free: 5.609 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002753/0.2559, allocations: 39.88 kB / 431.7 MB, free: 5.57 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.002093/0.258, allocations: 1.06 MB / 432.8 MB, free: 4.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002336/0.2582, allocations: 79.89 kB / 432.8 MB, free: 4.582 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2582, allocations: 0 / 432.8 MB, free: 4.582 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.54e-05/0.2583, allocations: 27.94 kB / 432.9 MB, free: 4.555 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004305/0.2587, allocations: 76.44 kB / 433 MB, free: 4.484 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002412/0.2611, allocations: 2.033 MB / 435 MB, free: 2.305 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000134/0.2613, allocations: 127.4 kB / 435.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.069e-05/0.2614, allocations: 25.62 kB / 435.1 MB, free: 2.133 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.419e-05/0.2614, allocations: 51.42 kB / 435.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of SimCode: time 7.62e-07/0.2614, allocations: 0 / 435.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02666/0.2881, allocations: 5.411 MB / 440.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.13, allocations: 4 kB / 440.6 MB, free: 12.78 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.47940514003858] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'backSample1.y'] 11.344166276045144 11.360314843 11.108414661 Calling exit ...