Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.001282/0.001282, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002018/0.002018, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.354/1.354, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 47.94 kB / 378.5 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2493, allocations: 53.37 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003343/0.2526, allocations: 1.96 MB / 433.9 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002082/0.2547, allocations: 1.262 MB / 435.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.2548, allocations: 7.938 kB / 435.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005489/0.2553, allocations: 155.5 kB / 435.3 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000384/0.2557, allocations: 159.4 kB / 435.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004732/0.2562, allocations: 182.9 kB / 435.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000265/0.2565, allocations: 195.4 kB / 435.8 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.2566, allocations: 37.58 kB / 435.9 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.2567, allocations: 79.64 kB / 435.9 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.2568, allocations: 87.61 kB / 436 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.364e-05/0.2569, allocations: 8 kB / 436 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.257, allocations: 67.89 kB / 436.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.872e-05/0.2571, allocations: 43.84 kB / 436.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.996e-05/0.2572, allocations: 83.41 kB / 436.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003295/0.2575, allocations: 216.9 kB / 436.4 MB, free: 2.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.2575, allocations: 0 / 436.4 MB, free: 2.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2575, allocations: 0 / 436.4 MB, free: 2.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.2575, allocations: 0 / 436.4 MB, free: 2.328 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.0007608/0.2583, allocations: 466.7 kB / 436.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.2583, allocations: 12.03 kB / 436.9 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.273e-05/0.2583, allocations: 4.125 kB / 436.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.427e-05/0.2584, allocations: 42.69 kB / 436.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.546e-05/0.2584, allocations: 28.8 kB / 437 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003496/0.2588, allocations: 217.1 kB / 437.2 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.2588, allocations: 20.11 kB / 437.2 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.496e-05/0.2588, allocations: 4 kB / 437.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003508/0.2591, allocations: 168.9 kB / 437.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.904e-06/0.2592, allocations: 0 / 437.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.2592, allocations: 0 / 437.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.2592, allocations: 4 kB / 437.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001026/0.2593, allocations: 43.86 kB / 437.4 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004923/0.2598, allocations: 346.3 kB / 437.8 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002385/0.26, allocations: 130.5 kB / 437.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.2601, allocations: 59.41 kB / 437.9 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.2601, allocations: 4 kB / 438 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001548/0.2603, allocations: 71.33 kB / 438 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.352e-06/0.2603, allocations: 0 / 438 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003703/0.2607, allocations: 157.8 kB / 438.2 MB, free: 384 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.2608, allocations: 170.1 kB / 438.3 MB, free: 176 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003269/0.2611, allocations: 278 kB / 438.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.2611, allocations: 33.7 kB / 438.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.375e-05/0.2612, allocations: 128.3 kB / 438.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.268e-05/0.2612, allocations: 19.84 kB / 438.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.407e-05/0.2613, allocations: 33.7 kB / 438.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.2614, allocations: 330.8 kB / 439.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.295e-05/0.2615, allocations: 23.98 kB / 439.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.2616, allocations: 83.7 kB / 439.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001451/0.2618, allocations: 93.92 kB / 439.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2618, allocations: 0 / 439.3 MB, free: 15.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002406/0.262, allocations: 137.4 kB / 439.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.262, allocations: 8 kB / 439.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.262, allocations: 320 / 439.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.262, allocations: 4 kB / 439.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.396e-05/0.2621, allocations: 15.94 kB / 439.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.2621, allocations: 7.938 kB / 439.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.085e-05/0.2622, allocations: 11.98 kB / 439.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.2622, allocations: 8 kB / 439.5 MB, free: 14.88 MB / 350.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.0001376/0.2624, allocations: 146.8 kB / 439.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.2625, allocations: 81.47 kB / 439.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002388/0.2627, allocations: 115.3 kB / 439.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.2627, allocations: 4 kB / 439.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.2627, allocations: 3.938 kB / 439.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.2627, allocations: 4 kB / 439.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002237/0.2629, allocations: 208.5 kB / 440.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2629, allocations: 0 / 440.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.844e-05/0.263, allocations: 12.03 kB / 440.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.263, allocations: 0 / 440.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.263, allocations: 4 kB / 440.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.263, allocations: 0 / 440.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.263, allocations: 11.92 kB / 440.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002719/0.2633, allocations: 175.4 kB / 440.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.03e-05/0.2633, allocations: 35.81 kB / 440.3 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.015e-05/0.2634, allocations: 4 kB / 440.3 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.106e-05/0.2634, allocations: 4 kB / 440.3 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.708e-05/0.2635, allocations: 15.92 kB / 440.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.2635, allocations: 4 kB / 440.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002106/0.2637, allocations: 205.2 kB / 440.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2637, allocations: 0 / 440.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002509/0.2639, allocations: 31.94 kB / 440.6 MB, free: 13.75 MB / 350.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 (11): * Single equations (assignments): 9 * 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.001904/0.2658, allocations: 1.021 MB / 441.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000205/0.266, allocations: 75.91 kB / 441.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.266, allocations: 0 / 441.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.405e-05/0.2661, allocations: 19.94 kB / 441.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004116/0.2665, allocations: 84.59 kB / 441.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.2689, allocations: 2.061 MB / 443.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/0.2692, allocations: 0.7398 MB / 444.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.886e-05/0.2693, allocations: 17.64 kB / 444.6 MB, free: 9.691 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.964e-05/0.2694, allocations: 59.39 kB / 444.6 MB, free: 9.633 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2694, allocations: 0 / 444.6 MB, free: 9.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/0.2966, allocations: 5.226 MB / 449.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/10.89, allocations: 8 kB / 449.9 MB, free: 4.508 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.251154436031356] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'backSample1.y'] 11.101952681026887 11.117181479 10.856710847 Calling exit ...