Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.00116/0.00116, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.002062/0.002062, allocations: 191.5 kB / 24.5 MB, free: 4.09 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.422/1.422, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001739/0.001739, allocations: 39.94 kB / 371.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2515, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003251/0.2548, allocations: 1.908 MB / 425.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001869/0.2566, allocations: 1.169 MB / 426.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.2567, allocations: 0 / 426.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003025/0.257, allocations: 71.64 kB / 426.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.2573, allocations: 91.59 kB / 426.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006823/0.258, allocations: 257.5 kB / 426.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.2582, allocations: 179.5 kB / 427.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.2583, allocations: 17.73 kB / 427.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.2584, allocations: 75.69 kB / 427.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.2586, allocations: 83.67 kB / 427.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.241e-05/0.2586, allocations: 11.94 kB / 427.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/0.2587, allocations: 75.94 kB / 427.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.557e-05/0.2588, allocations: 51.84 kB / 427.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.539e-05/0.2589, allocations: 71.48 kB / 427.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003436/0.2593, allocations: 243.7 kB / 427.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2593, allocations: 4 kB / 427.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2593, allocations: 0 / 427.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.2593, allocations: 0 / 427.7 MB, free: 10.3 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.0006647/0.2599, allocations: 466.6 kB / 428.1 MB, free: 9.809 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.26, allocations: 12.03 kB / 428.2 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.337e-05/0.26, allocations: 192 / 428.2 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.728e-05/0.26, allocations: 46.73 kB / 428.2 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.181e-05/0.2601, allocations: 24.8 kB / 428.2 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003619/0.2604, allocations: 233.4 kB / 428.5 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.2605, allocations: 8.125 kB / 428.5 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.608e-05/0.2605, allocations: 8 kB / 428.5 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.2608, allocations: 159.6 kB / 428.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.2608, allocations: 3.938 kB / 428.6 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.2608, allocations: 4 kB / 428.6 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2608, allocations: 0 / 428.6 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001117/0.2609, allocations: 39.91 kB / 428.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004949/0.2614, allocations: 357.4 kB / 429 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002436/0.2617, allocations: 115.9 kB / 429.1 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.424e-05/0.2618, allocations: 42.56 kB / 429.2 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.2618, allocations: 4 kB / 429.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001719/0.2619, allocations: 75.38 kB / 429.3 MB, free: 8.543 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.323e-06/0.2619, allocations: 0 / 429.3 MB, free: 8.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003676/0.2623, allocations: 157.4 kB / 429.4 MB, free: 8.383 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.2624, allocations: 162.2 kB / 429.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003265/0.2627, allocations: 325.8 kB / 429.9 MB, free: 7.863 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.2628, allocations: 37.64 kB / 429.9 MB, free: 7.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.452e-05/0.2629, allocations: 120.1 kB / 430 MB, free: 7.699 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.52e-05/0.2629, allocations: 19.89 kB / 430.1 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-05/0.2629, allocations: 37.92 kB / 430.1 MB, free: 7.637 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.2631, allocations: 330.8 kB / 430.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.635e-05/0.2631, allocations: 23.98 kB / 430.4 MB, free: 7.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/0.2633, allocations: 86.8 kB / 430.5 MB, free: 7.172 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.2634, allocations: 88.2 kB / 430.6 MB, free: 7.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2634, allocations: 0 / 430.6 MB, free: 7.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002224/0.2636, allocations: 113.8 kB / 430.7 MB, free: 6.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.2636, allocations: 8 kB / 430.7 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.2637, allocations: 12.12 kB / 430.7 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.2637, allocations: 3.938 kB / 430.8 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.2638, allocations: 19.98 kB / 430.8 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.2638, allocations: 11.92 kB / 430.8 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.729e-05/0.2639, allocations: 15.89 kB / 430.8 MB, free: 6.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.2639, allocations: 4 kB / 430.8 MB, free: 6.879 MB / 334.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,table.y,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.0001297/0.264, allocations: 149.8 kB / 430.9 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.513e-05/0.2641, allocations: 65.59 kB / 431 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000252/0.2643, allocations: 131.3 kB / 431.1 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.2643, allocations: 0 / 431.1 MB, free: 6.516 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.2643, allocations: 3.938 kB / 431.1 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.2643, allocations: 4 kB / 431.1 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002015/0.2645, allocations: 204.7 kB / 431.3 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2645, allocations: 0 / 431.3 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.006e-05/0.2646, allocations: 11.98 kB / 431.4 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2646, allocations: 0 / 431.4 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.2646, allocations: 4 kB / 431.4 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.2646, allocations: 4.031 kB / 431.4 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.2646, allocations: 3.938 kB / 431.4 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000253/0.2649, allocations: 166.7 kB / 431.5 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.686e-05/0.265, allocations: 43.77 kB / 431.6 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.015e-05/0.265, allocations: 4 kB / 431.6 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.62e-05/0.265, allocations: 8 kB / 431.6 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.46e-05/0.2651, allocations: 15.92 kB / 431.6 MB, free: 5.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.2651, allocations: 4 kB / 431.6 MB, free: 5.98 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002289/0.2653, allocations: 245.2 kB / 431.8 MB, free: 5.738 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2653, allocations: 3.938 kB / 431.9 MB, free: 5.734 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002521/0.2656, allocations: 32 kB / 431.9 MB, free: 5.703 MB / 334.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,table.y,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 (9): * Single equations (assignments): 7 * 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.001894/0.2675, allocations: 1.018 MB / 432.9 MB, free: 4.812 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002072/0.2677, allocations: 67.91 kB / 433 MB, free: 4.746 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2677, allocations: 0 / 433 MB, free: 4.746 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.998e-05/0.2678, allocations: 32.17 kB / 433 MB, free: 4.715 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003925/0.2682, allocations: 68.55 kB / 433.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002444/0.2706, allocations: 2.193 MB / 435.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.271, allocations: 0.7437 MB / 436 MB, free: 1.57 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.993e-05/0.271, allocations: 25.47 kB / 436 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.857e-05/0.2711, allocations: 59.41 kB / 436.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2711, allocations: 0 / 436.1 MB, free: 1.488 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02586/0.297, allocations: 5.487 MB / 441.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/10.93, allocations: 4.062 kB / 441.6 MB, free: 12.09 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.368044664035551] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y'] 11.13864746701438 11.15415698 10.891606277 Calling exit ...