Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.001258/0.001258, 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.001361/0.001361, allocations: 211.8 kB / 24.51 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.403/1.403, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 43.94 kB / 378.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2475, allocations: 53.37 MB / 431.9 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003867/0.2513, allocations: 1.898 MB / 433.8 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002167/0.2535, allocations: 1.141 MB / 434.9 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.2537, allocations: 11.94 kB / 434.9 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006455/0.2543, allocations: 155.5 kB / 435.1 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004047/0.2547, allocations: 151.4 kB / 435.2 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005128/0.2552, allocations: 178.7 kB / 435.4 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002861/0.2555, allocations: 195.5 kB / 435.6 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.2556, allocations: 17.73 kB / 435.6 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.2558, allocations: 83.62 kB / 435.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001465/0.2559, allocations: 79.62 kB / 435.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.928e-05/0.2559, allocations: 12 kB / 435.8 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001476/0.2561, allocations: 51.95 kB / 435.8 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.055e-05/0.2562, allocations: 43.84 kB / 435.9 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.236e-05/0.2563, allocations: 59.59 kB / 435.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003819/0.2566, allocations: 221.4 kB / 436.1 MB, free: 2.367 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2566, allocations: 0 / 436.1 MB, free: 2.367 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2566, allocations: 0 / 436.1 MB, free: 2.367 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.2567, allocations: 4 kB / 436.1 MB, free: 2.363 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008602/0.2575, allocations: 450.7 kB / 436.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.2576, allocations: 8.031 kB / 436.6 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.262e-05/0.2576, allocations: 192 / 436.6 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.588e-05/0.2576, allocations: 38.75 kB / 436.6 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.955e-05/0.2577, allocations: 24.78 kB / 436.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003847/0.2581, allocations: 209.1 kB / 436.8 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.2581, allocations: 12.12 kB / 436.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.2581, allocations: 11.94 kB / 436.9 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003585/0.2585, allocations: 172.4 kB / 437 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.2585, allocations: 0 / 437 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.2585, allocations: 0 / 437 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.2585, allocations: 4 kB / 437 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001079/0.2586, allocations: 35.92 kB / 437.1 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000516/0.2591, allocations: 325.5 kB / 437.4 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002431/0.2594, allocations: 111.8 kB / 437.5 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.885e-05/0.2594, allocations: 46.55 kB / 437.6 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.2595, allocations: 4 kB / 437.6 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001588/0.2596, allocations: 71.39 kB / 437.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.463e-06/0.2596, allocations: 0 / 437.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003635/0.26, allocations: 149.6 kB / 437.8 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.579e-05/0.2601, allocations: 148.4 kB / 437.9 MB, free: 352 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002935/0.2604, allocations: 273 kB / 438.2 MB, free: 72 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.2604, allocations: 29.7 kB / 438.2 MB, free: 36 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.2605, allocations: 120.2 kB / 438.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.2606, allocations: 19.89 kB / 438.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.957e-05/0.2606, allocations: 29.67 kB / 438.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.2608, allocations: 330.8 kB / 438.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.2609, allocations: 20 kB / 438.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.261, allocations: 133.3 kB / 438.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/0.2612, allocations: 76.25 kB / 438.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2612, allocations: 4 kB / 438.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002084/0.2614, allocations: 113.5 kB / 439 MB, free: 15.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.2614, allocations: 8 kB / 439 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.2614, allocations: 0 / 439 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.2614, allocations: 4 kB / 439 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.704e-05/0.2615, allocations: 16.06 kB / 439.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.2615, allocations: 15.86 kB / 439.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.792e-05/0.2616, allocations: 11.89 kB / 439.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.2616, allocations: 4 kB / 439.1 MB, free: 15.07 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.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 (11): * Single equations (assignments): 11 * 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.0001261/0.2617, allocations: 145.8 kB / 439.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.448e-05/0.2618, allocations: 65.53 kB / 439.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002382/0.262, allocations: 115.3 kB / 439.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.9e-06/0.262, allocations: 4 kB / 439.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.262, allocations: 8.312 kB / 439.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.262, allocations: 0 / 439.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001844/0.2622, allocations: 188.6 kB / 439.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.2622, allocations: 8 kB / 439.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.275e-05/0.2623, allocations: 7.984 kB / 439.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.2623, allocations: 0 / 439.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.2623, allocations: 8 kB / 439.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2623, allocations: 0 / 439.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.2623, allocations: 3.938 kB / 439.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002525/0.2625, allocations: 158.7 kB / 439.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.611e-05/0.2626, allocations: 43.78 kB / 439.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.102e-05/0.2627, allocations: 4 kB / 439.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.948e-05/0.2627, allocations: 0 / 439.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.123e-05/0.2628, allocations: 16.02 kB / 439.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.2628, allocations: 7.938 kB / 439.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001999/0.263, allocations: 204.5 kB / 440.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.263, allocations: 0 / 440.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002458/0.2632, allocations: 27.98 kB / 440.1 MB, free: 13.99 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: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (10): * Single equations (assignments): 8 * 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.001979/0.2652, allocations: 1.053 MB / 441.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002007/0.2654, allocations: 63.91 kB / 441.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2654, allocations: 4 kB / 441.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.477e-05/0.2655, allocations: 31.92 kB / 441.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00038/0.2659, allocations: 60.3 kB / 441.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.2681, allocations: 1.972 MB / 443.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001116/0.2682, allocations: 115.5 kB / 443.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.063e-05/0.2683, allocations: 21.47 kB / 443.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.415e-05/0.2684, allocations: 51.42 kB / 443.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2684, allocations: 4 kB / 443.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02709/0.2955, allocations: 5.152 MB / 448.6 MB, free: 5.586 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/10.95, allocations: 7.922 kB / 448.6 MB, free: 5.578 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.36479851603508] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y'] 11.155076315975748 11.169121358 10.909517571 Calling exit ...