Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001251/0.001251, allocations: 105.1 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.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.001358/0.001358, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.36/1.36, allocations: 230.6 MB / 258.3 MB, free: 7.789 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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 47.92 kB / 378.5 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2592, allocations: 53.35 MB / 431.8 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003388/0.2626, allocations: 1.875 MB / 433.7 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002199/0.2648, allocations: 1.223 MB / 434.9 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.2649, allocations: 7.938 kB / 435 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003139/0.2652, allocations: 67.66 kB / 435 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003643/0.2656, allocations: 131.4 kB / 435.1 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006587/0.2663, allocations: 234.5 kB / 435.4 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002541/0.2665, allocations: 179.5 kB / 435.6 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.2666, allocations: 23.84 kB / 435.6 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.2668, allocations: 83.62 kB / 435.7 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001266/0.2669, allocations: 83.61 kB / 435.7 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.696e-05/0.2669, allocations: 12 kB / 435.7 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001578/0.2671, allocations: 71.94 kB / 435.8 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.491e-05/0.2672, allocations: 51.84 kB / 435.9 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.945e-05/0.2673, allocations: 63.53 kB / 435.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003503/0.2676, allocations: 250.9 kB / 436.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2676, allocations: 0 / 436.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2676, allocations: 0 / 436.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.2676, allocations: 0 / 436.2 MB, free: 2.336 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.0007264/0.2683, allocations: 474.5 kB / 436.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.2684, allocations: 8.031 kB / 436.6 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.474e-05/0.2684, allocations: 8.188 kB / 436.7 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.686e-05/0.2684, allocations: 38.73 kB / 436.7 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.511e-05/0.2685, allocations: 24.8 kB / 436.7 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004069/0.2689, allocations: 237.5 kB / 437 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.2689, allocations: 8.125 kB / 437 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.2689, allocations: 8 kB / 437 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003821/0.2693, allocations: 203 kB / 437.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.2693, allocations: 0 / 437.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.2693, allocations: 8 kB / 437.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.2693, allocations: 4 kB / 437.2 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.2695, allocations: 39.91 kB / 437.2 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005382/0.27, allocations: 349.4 kB / 437.6 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002638/0.2703, allocations: 119.9 kB / 437.7 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.452e-05/0.2704, allocations: 42.56 kB / 437.7 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.2704, allocations: 0 / 437.7 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001915/0.2706, allocations: 87.31 kB / 437.8 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.323e-06/0.2706, allocations: 0 / 437.8 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004045/0.271, allocations: 157.4 kB / 438 MB, free: 352 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.2711, allocations: 158.2 kB / 438.1 MB, free: 156 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003976/0.2715, allocations: 342 kB / 438.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.2715, allocations: 29.7 kB / 438.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.2716, allocations: 136 kB / 438.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.547e-05/0.2716, allocations: 23.8 kB / 438.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.741e-05/0.2717, allocations: 29.97 kB / 438.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.2719, allocations: 338.8 kB / 439 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.472e-05/0.2719, allocations: 23.98 kB / 439 MB, free: 15.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.2721, allocations: 171.9 kB / 439.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001701/0.2723, allocations: 84.22 kB / 439.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2723, allocations: 0 / 439.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002453/0.2725, allocations: 137.4 kB / 439.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.2725, allocations: 4 kB / 439.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.2725, allocations: 0 / 439.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.2726, allocations: 4 kB / 439.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.2727, allocations: 19.98 kB / 439.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.575e-06/0.2727, allocations: 3.938 kB / 439.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.818e-05/0.2728, allocations: 11.94 kB / 439.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.815e-05/0.2728, allocations: 4 kB / 439.4 MB, free: 14.72 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,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.0001474/0.2729, allocations: 162.2 kB / 439.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.589e-05/0.273, allocations: 69.56 kB / 439.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002847/0.2733, allocations: 131.3 kB / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.2733, allocations: 4 kB / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.2733, allocations: 3.938 kB / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.706e-06/0.2733, allocations: 0 / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00023/0.2735, allocations: 204.7 kB / 440 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.2735, allocations: 0 / 440 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.409e-05/0.2736, allocations: 15.98 kB / 440 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2736, allocations: 0 / 440 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.2736, allocations: 4.062 kB / 440 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2736, allocations: 4 kB / 440 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.2736, allocations: 7.875 kB / 440 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002935/0.2739, allocations: 170.6 kB / 440.2 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.751e-05/0.274, allocations: 47.83 kB / 440.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.335e-05/0.2741, allocations: 0 / 440.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.78e-05/0.2741, allocations: 4 kB / 440.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.119e-05/0.2742, allocations: 19.86 kB / 440.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.108e-05/0.2742, allocations: 7.984 kB / 440.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002721/0.2745, allocations: 249.2 kB / 440.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2745, allocations: 4.094 kB / 440.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000269/0.2748, allocations: 39.88 kB / 440.6 MB, free: 13.51 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,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 (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.002216/0.277, allocations: 1.049 MB / 441.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002623/0.2772, allocations: 75.89 kB / 441.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.2772, allocations: 0 / 441.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.231e-05/0.2773, allocations: 36.17 kB / 441.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004251/0.2778, allocations: 71.39 kB / 441.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002889/0.2807, allocations: 2.253 MB / 444 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001548/0.2808, allocations: 132.1 kB / 444.2 MB, free: 9.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.198e-05/0.2809, allocations: 25.47 kB / 444.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.281, allocations: 59.42 kB / 444.3 MB, free: 9.828 MB / 350.1 MB Notification: Performance of SimCode: time 5.72e-07/0.281, allocations: 4 kB / 444.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02769/0.3087, allocations: 5.853 MB / 450.1 MB, free: 4.082 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/11, allocations: 14.33 kB / 450.1 MB, free: 4.07 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.351994559983723] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y'] 11.204972152016126 11.218675745 10.948229748 Calling exit ...