Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001219/0.001219, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001336/0.001336, allocations: 219.8 kB / 24.53 MB, free: 4.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 230.5 MB / 258.2 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 59.89 kB / 378.6 MB, free: 3.098 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3668/0.3686, allocations: 53.4 MB / 432 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003853/0.3725, allocations: 1.948 MB / 433.9 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002396/0.3749, allocations: 1.34 MB / 435.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001676/0.3751, allocations: 11.88 kB / 435.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003459/0.3754, allocations: 67.66 kB / 435.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003989/0.3758, allocations: 143.4 kB / 435.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007654/0.3766, allocations: 234.9 kB / 435.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002877/0.3769, allocations: 191.5 kB / 435.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.377, allocations: 21.8 kB / 435.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001426/0.3771, allocations: 91.56 kB / 436 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.3773, allocations: 87.66 kB / 436.1 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.059e-05/0.3773, allocations: 12 kB / 436.1 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.3775, allocations: 79.89 kB / 436.2 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001353/0.3776, allocations: 51.77 kB / 436.2 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.486e-05/0.3777, allocations: 83.42 kB / 436.3 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004067/0.3781, allocations: 259.2 kB / 436.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.3781, allocations: 0 / 436.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3781, allocations: 0 / 436.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.3781, allocations: 0 / 436.6 MB, free: 2.086 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.0008803/0.379, allocations: 494.4 kB / 437 MB, free: 1.566 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.3791, allocations: 12.03 kB / 437.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.265e-05/0.3791, allocations: 4.188 kB / 437.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.552e-05/0.3791, allocations: 38.75 kB / 437.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.257e-05/0.3792, allocations: 24.8 kB / 437.1 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006202/0.3798, allocations: 242.5 kB / 437.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/0.3799, allocations: 8.375 kB / 437.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.48e-05/0.3799, allocations: 12.38 kB / 437.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005194/0.3804, allocations: 184.3 kB / 437.6 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3804, allocations: 0 / 437.6 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.3804, allocations: 4 kB / 437.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.3804, allocations: 4 kB / 437.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.3806, allocations: 43.91 kB / 437.6 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007637/0.3814, allocations: 366.3 kB / 438 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003966/0.3818, allocations: 142.5 kB / 438.1 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001509/0.3819, allocations: 55.36 kB / 438.2 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.083e-05/0.382, allocations: 4 kB / 438.2 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002477/0.3822, allocations: 79.38 kB / 438.2 MB, free: 200 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 2.365e-06/0.3822, allocations: 3.938 kB / 438.2 MB, free: 196 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006199/0.3828, allocations: 173.7 kB / 438.4 MB, free: 16 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001873/0.383, allocations: 192 kB / 438.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005788/0.3836, allocations: 348.1 kB / 438.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.3837, allocations: 29.7 kB / 439 MB, free: 15.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.3838, allocations: 132.4 kB / 439.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.072e-05/0.3838, allocations: 23.91 kB / 439.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.193e-05/0.3839, allocations: 37.66 kB / 439.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.3841, allocations: 342.7 kB / 439.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.3842, allocations: 27.98 kB / 439.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002023/0.3845, allocations: 104.6 kB / 439.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002514/0.3847, allocations: 97.88 kB / 439.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.3847, allocations: 4 kB / 439.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004281/0.3851, allocations: 141.4 kB / 439.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.3852, allocations: 8 kB / 439.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3852, allocations: 0 / 439.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.27e-05/0.3852, allocations: 4 kB / 439.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.3854, allocations: 24.23 kB / 439.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.3854, allocations: 4 kB / 439.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.3855, allocations: 8 kB / 439.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.281e-05/0.3855, allocations: 11.94 kB / 439.9 MB, free: 14.37 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.0002155/0.3858, allocations: 154.6 kB / 440.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.3859, allocations: 89.42 kB / 440.2 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003836/0.3863, allocations: 119.3 kB / 440.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.3863, allocations: 4 kB / 440.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3863, allocations: 0 / 440.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3863, allocations: 4 kB / 440.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003275/0.3866, allocations: 220.5 kB / 440.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.3867, allocations: 8.094 kB / 440.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.3868, allocations: 15.98 kB / 440.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.3868, allocations: 3.938 kB / 440.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.3868, allocations: 8 kB / 440.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3868, allocations: 0 / 440.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.3868, allocations: 3.938 kB / 440.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004356/0.3872, allocations: 183.5 kB / 440.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.3874, allocations: 39.78 kB / 440.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.393e-05/0.3874, allocations: 8 kB / 440.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.3875, allocations: 4 kB / 440.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.562e-05/0.3876, allocations: 11.98 kB / 440.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-05/0.3876, allocations: 7.984 kB / 440.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003957/0.388, allocations: 255 kB / 441 MB, free: 13.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.388, allocations: 0 / 441 MB, free: 13.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004973/0.3885, allocations: 43.92 kB / 441.1 MB, free: 13.12 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 (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.002886/0.3914, allocations: 1.035 MB / 442.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003673/0.3918, allocations: 83.78 kB / 442.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.3918, allocations: 0 / 442.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.3919, allocations: 23.98 kB / 442.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006771/0.3926, allocations: 82.59 kB / 442.3 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004197/0.3968, allocations: 2.324 MB / 444.6 MB, free: 9.551 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000493/0.3973, allocations: 0.7476 MB / 445.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000146/0.3974, allocations: 33.61 kB / 445.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000156/0.3976, allocations: 67.41 kB / 445.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3976, allocations: 4 kB / 445.5 MB, free: 8.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0301/0.4277, allocations: 5.877 MB / 451.4 MB, free: 2.863 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.52, allocations: 4.062 kB / 451.4 MB, free: 2.859 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.095855540945195] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'backSample1.y'] 11.734724183974322 11.749861798 11.368465546 Calling exit ...