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.001919/0.001919, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002501/0.002501, allocations: 214.2 kB / 24.52 MB, free: 3.918 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.553/1.553, allocations: 230.5 MB / 258.2 MB, free: 7.75 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.001868/0.001868, allocations: 63.89 kB / 378.5 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.309/0.3109, allocations: 53.4 MB / 431.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.004128/0.315, allocations: 1.894 MB / 433.8 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00283/0.3178, allocations: 1.246 MB / 435 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002282/0.318, allocations: 7.938 kB / 435.1 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000454/0.3185, allocations: 67.66 kB / 435.1 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005536/0.319, allocations: 139.4 kB / 435.3 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008815/0.3199, allocations: 238.2 kB / 435.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003922/0.3203, allocations: 191.4 kB / 435.7 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.3205, allocations: 27.44 kB / 435.7 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002044/0.3207, allocations: 79.69 kB / 435.8 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002141/0.3209, allocations: 95.53 kB / 435.9 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.622e-05/0.3209, allocations: 8 kB / 435.9 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002602/0.3212, allocations: 79.94 kB / 436 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.3213, allocations: 47.84 kB / 436 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.3214, allocations: 67.47 kB / 436.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005947/0.322, allocations: 258.9 kB / 436.3 MB, free: 2.023 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.322, allocations: 3.938 kB / 436.3 MB, free: 2.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.322, allocations: 0 / 436.3 MB, free: 2.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.3221, allocations: 0 / 436.3 MB, free: 2.02 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.001001/0.3231, allocations: 494.4 kB / 436.8 MB, free: 1.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/0.3231, allocations: 11.97 kB / 436.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.164e-05/0.3231, allocations: 4.188 kB / 436.8 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.422e-05/0.3231, allocations: 38.73 kB / 436.9 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.248e-05/0.3232, allocations: 24.8 kB / 436.9 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004858/0.3237, allocations: 242.6 kB / 437.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.3237, allocations: 4.375 kB / 437.1 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.3237, allocations: 8.375 kB / 437.1 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004036/0.3241, allocations: 239.6 kB / 437.4 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.983e-06/0.3241, allocations: 4 kB / 437.4 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.3241, allocations: 4 kB / 437.4 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.895e-06/0.3241, allocations: 7.938 kB / 437.4 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001252/0.3243, allocations: 47.91 kB / 437.4 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005508/0.3248, allocations: 350.4 kB / 437.8 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002793/0.3251, allocations: 146.5 kB / 437.9 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.3252, allocations: 55.42 kB / 438 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.3252, allocations: 0 / 438 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001918/0.3254, allocations: 87.31 kB / 438.1 MB, free: 68 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.382e-06/0.3254, allocations: 0 / 438.1 MB, free: 68 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004402/0.3259, allocations: 185.4 kB / 438.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.326, allocations: 183.9 kB / 438.4 MB, free: 15.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003973/0.3264, allocations: 348.2 kB / 438.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.434e-05/0.3264, allocations: 25.7 kB / 438.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.3265, allocations: 132.5 kB / 438.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.537e-05/0.3266, allocations: 24.2 kB / 438.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.066e-05/0.3266, allocations: 45.66 kB / 439 MB, free: 15.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3268, allocations: 334.8 kB / 439.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.269e-05/0.3269, allocations: 23.98 kB / 439.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001931/0.327, allocations: 189.1 kB / 439.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002033/0.3273, allocations: 106.2 kB / 439.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3273, allocations: 8 kB / 439.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00027/0.3275, allocations: 141.3 kB / 439.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.3275, allocations: 8 kB / 439.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.3275, allocations: 0 / 439.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.3276, allocations: 4 kB / 439.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.3277, allocations: 23.98 kB / 439.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.3277, allocations: 4 kB / 439.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.065e-05/0.3278, allocations: 4.188 kB / 439.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.456e-05/0.3278, allocations: 15.88 kB / 439.8 MB, free: 14.13 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.0001632/0.328, allocations: 162.3 kB / 440 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.3281, allocations: 81.28 kB / 440.1 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002926/0.3284, allocations: 131.4 kB / 440.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.3284, allocations: 0 / 440.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.3284, allocations: 4 kB / 440.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.3284, allocations: 3.984 kB / 440.2 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002616/0.3286, allocations: 216.6 kB / 440.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3286, allocations: 3.938 kB / 440.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.865e-05/0.3287, allocations: 19.98 kB / 440.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.3287, allocations: 0 / 440.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.3287, allocations: 4 kB / 440.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.3288, allocations: 0 / 440.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3288, allocations: 0 / 440.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003264/0.3291, allocations: 195.4 kB / 440.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.078e-05/0.3292, allocations: 43.83 kB / 440.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.555e-05/0.3292, allocations: 7.938 kB / 440.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.184e-05/0.3293, allocations: 8.062 kB / 440.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.482e-05/0.3293, allocations: 15.98 kB / 440.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-05/0.3294, allocations: 7.984 kB / 440.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003346/0.3297, allocations: 255 kB / 441 MB, free: 12.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3297, allocations: 0 / 441 MB, free: 12.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002896/0.33, allocations: 39.92 kB / 441 MB, free: 12.87 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.002183/0.3322, allocations: 1.059 MB / 442.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002853/0.3325, allocations: 95.81 kB / 442.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.3325, allocations: 0 / 442.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.014e-05/0.3325, allocations: 31.98 kB / 442.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004675/0.333, allocations: 89.73 kB / 442.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003256/0.3363, allocations: 2.329 MB / 444.6 MB, free: 9.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000147/0.3364, allocations: 140.2 kB / 444.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001144/0.3365, allocations: 33.78 kB / 444.8 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001299/0.3367, allocations: 67.41 kB / 444.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3367, allocations: 0 / 444.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03003/0.3667, allocations: 6.191 MB / 451 MB, free: 2.879 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.41, allocations: 6.125 kB / 451 MB, free: 2.875 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.12073291291017] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y', 'backSample1.y'] 11.637234263936989 11.665462817 11.338171103 Calling exit ...