Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001287/0.001287, 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.001678/0.001678, allocations: 213.4 kB / 24.52 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.396/1.396, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 59.84 kB / 378.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2538, allocations: 53.35 MB / 431.9 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003389/0.2572, allocations: 1.898 MB / 433.8 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.2593, allocations: 1.239 MB / 435 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.2594, allocations: 7.938 kB / 435 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002823/0.2597, allocations: 71.61 kB / 435.1 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003571/0.26, allocations: 143.4 kB / 435.2 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005971/0.2606, allocations: 234.9 kB / 435.4 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002639/0.2609, allocations: 195.4 kB / 435.6 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.261, allocations: 23.91 kB / 435.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.2611, allocations: 79.69 kB / 435.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001264/0.2612, allocations: 87.61 kB / 435.8 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.616e-05/0.2613, allocations: 12 kB / 435.8 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001687/0.2614, allocations: 79.88 kB / 435.9 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.06e-05/0.2615, allocations: 55.77 kB / 436 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.081e-05/0.2616, allocations: 59.61 kB / 436 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003514/0.262, allocations: 262.8 kB / 436.3 MB, free: 2.199 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.262, allocations: 4 kB / 436.3 MB, free: 2.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.262, allocations: 0 / 436.3 MB, free: 2.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.262, allocations: 0 / 436.3 MB, free: 2.195 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.0007342/0.2627, allocations: 490.4 kB / 436.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.2627, allocations: 12.03 kB / 436.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.794e-05/0.2628, allocations: 192 / 436.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.076e-05/0.2628, allocations: 42.75 kB / 436.8 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.732e-05/0.2629, allocations: 24.8 kB / 436.8 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004033/0.2633, allocations: 254.5 kB / 437.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.2633, allocations: 12.12 kB / 437.1 MB, free: 1.312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.2633, allocations: 4 kB / 437.1 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003938/0.2637, allocations: 235.7 kB / 437.3 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2637, allocations: 0 / 437.3 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.2637, allocations: 4 kB / 437.3 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.2637, allocations: 4 kB / 437.3 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.2638, allocations: 47.91 kB / 437.4 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005017/0.2643, allocations: 346.4 kB / 437.7 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002872/0.2646, allocations: 150.5 kB / 437.9 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.2647, allocations: 55.41 kB / 437.9 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.2648, allocations: 4 kB / 437.9 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001709/0.2649, allocations: 83.31 kB / 438 MB, free: 248 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.543e-06/0.2649, allocations: 4 kB / 438 MB, free: 244 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004331/0.2654, allocations: 173.4 kB / 438.2 MB, free: 64 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/0.2655, allocations: 187.9 kB / 438.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003775/0.2659, allocations: 360.1 kB / 438.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.2659, allocations: 25.7 kB / 438.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.266, allocations: 132.4 kB / 438.9 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.743e-05/0.266, allocations: 23.91 kB / 438.9 MB, free: 15.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.6e-05/0.2661, allocations: 37.66 kB / 438.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.2662, allocations: 335.2 kB / 439.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.443e-05/0.2663, allocations: 31.98 kB / 439.3 MB, free: 14.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001732/0.2665, allocations: 177.7 kB / 439.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001822/0.2667, allocations: 105.9 kB / 439.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2667, allocations: 0 / 439.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002604/0.2669, allocations: 145.6 kB / 439.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.267, allocations: 4 kB / 439.7 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.267, allocations: 4.062 kB / 439.7 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.267, allocations: 7.938 kB / 439.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001216/0.2671, allocations: 31.92 kB / 439.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.2671, allocations: 3.938 kB / 439.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.991e-05/0.2672, allocations: 11.98 kB / 439.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.2672, allocations: 4 kB / 439.8 MB, free: 14.31 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,table.y,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.0001397/0.2673, allocations: 158.8 kB / 439.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/0.2674, allocations: 85.44 kB / 440 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002684/0.2677, allocations: 123.4 kB / 440.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.2677, allocations: 4 kB / 440.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.2677, allocations: 3.938 kB / 440.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.2677, allocations: 4 kB / 440.1 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000211/0.2679, allocations: 204.6 kB / 440.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2679, allocations: 8.078 kB / 440.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.771e-05/0.268, allocations: 15.94 kB / 440.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.648e-06/0.268, allocations: 4 kB / 440.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.268, allocations: 3.984 kB / 440.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.268, allocations: 4 kB / 440.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.2681, allocations: 3.938 kB / 440.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003083/0.2684, allocations: 195.4 kB / 440.6 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.479e-05/0.2684, allocations: 47.86 kB / 440.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.2685, allocations: 3.938 kB / 440.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.461e-05/0.2686, allocations: 8 kB / 440.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.405e-05/0.2686, allocations: 15.92 kB / 440.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.788e-05/0.2686, allocations: 4 kB / 440.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002506/0.2689, allocations: 259 kB / 440.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2689, allocations: 0 / 440.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002659/0.2691, allocations: 35.94 kB / 440.9 MB, free: 13.05 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,table.y,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.002038/0.2712, allocations: 1.069 MB / 442 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002316/0.2714, allocations: 87.89 kB / 442.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2714, allocations: 0 / 442.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.628e-05/0.2715, allocations: 39.91 kB / 442.1 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000426/0.2719, allocations: 92.36 kB / 442.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002697/0.2746, allocations: 2.343 MB / 444.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.2748, allocations: 132.2 kB / 444.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.834e-05/0.2748, allocations: 25.62 kB / 444.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.2749, allocations: 75.41 kB / 444.8 MB, free: 9.203 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2749, allocations: 0 / 444.8 MB, free: 9.203 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04001/0.315, allocations: 6.194 MB / 451 MB, free: 3.117 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/10.95, allocations: 4.062 kB / 451 MB, free: 3.113 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.348267775028944] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'backSample1.y'] 11.156940378947183 11.17282359 10.906938435 Calling exit ...