Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.00193/0.00193, allocations: 107.5 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.002304/0.002304, allocations: 213.2 kB / 24.52 MB, free: 3.91 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.49/1.49, allocations: 230.5 MB / 258.2 MB, free: 7.797 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.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 63.91 kB / 378.5 MB, free: 2.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3163, allocations: 53.4 MB / 431.9 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003926/0.3202, allocations: 1.889 MB / 433.8 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002289/0.3225, allocations: 1.137 MB / 434.9 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.3227, allocations: 7.938 kB / 434.9 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007165/0.3234, allocations: 159.4 kB / 435.1 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000443/0.3239, allocations: 159.4 kB / 435.3 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005228/0.3244, allocations: 178.4 kB / 435.4 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002864/0.3247, allocations: 191.5 kB / 435.6 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.3248, allocations: 21.73 kB / 435.6 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.3249, allocations: 83.62 kB / 435.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.3251, allocations: 79.61 kB / 435.8 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.655e-05/0.3251, allocations: 8 kB / 435.8 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.3253, allocations: 55.97 kB / 435.9 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.763e-05/0.3253, allocations: 51.83 kB / 435.9 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.705e-05/0.3254, allocations: 55.61 kB / 436 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000448/0.3259, allocations: 221.4 kB / 436.2 MB, free: 2.164 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3259, allocations: 0 / 436.2 MB, free: 2.164 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3259, allocations: 0 / 436.2 MB, free: 2.164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.3259, allocations: 0 / 436.2 MB, free: 2.164 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.001214/0.3271, allocations: 446.7 kB / 436.6 MB, free: 1.691 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.164e-05/0.3272, allocations: 12.03 kB / 436.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.694e-05/0.3272, allocations: 192 / 436.6 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.411e-05/0.3273, allocations: 46.73 kB / 436.7 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.287e-05/0.3274, allocations: 20.8 kB / 436.7 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004862/0.3278, allocations: 213.1 kB / 436.9 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/0.3279, allocations: 4.375 kB / 436.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.174e-05/0.3279, allocations: 8.375 kB / 436.9 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004985/0.3284, allocations: 176.4 kB / 437.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.3284, allocations: 0 / 437.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.3284, allocations: 0 / 437.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.3284, allocations: 7.938 kB / 437.1 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.3286, allocations: 39.92 kB / 437.1 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006502/0.3292, allocations: 325.5 kB / 437.4 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002925/0.3295, allocations: 119.8 kB / 437.6 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.768e-05/0.3296, allocations: 38.56 kB / 437.6 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.335e-05/0.3296, allocations: 7.938 kB / 437.6 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002233/0.3299, allocations: 75.39 kB / 437.7 MB, free: 468 kB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.724e-06/0.3299, allocations: 0 / 437.7 MB, free: 468 kB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004641/0.3303, allocations: 153.4 kB / 437.8 MB, free: 308 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.3305, allocations: 132.5 kB / 438 MB, free: 144 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003785/0.3308, allocations: 273.2 kB / 438.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.3309, allocations: 25.7 kB / 438.3 MB, free: 15.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.331, allocations: 116.1 kB / 438.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.2e-05/0.331, allocations: 19.89 kB / 438.4 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.838e-05/0.3311, allocations: 33.92 kB / 438.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.3312, allocations: 338.8 kB / 438.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.82e-05/0.3313, allocations: 23.98 kB / 438.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.3314, allocations: 121.3 kB / 438.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001498/0.3316, allocations: 76.47 kB / 439 MB, free: 15.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.3316, allocations: 4 kB / 439 MB, free: 15.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002263/0.3318, allocations: 117.6 kB / 439.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.3318, allocations: 8 kB / 439.1 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.3318, allocations: 0 / 439.1 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.3318, allocations: 4 kB / 439.1 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.358e-05/0.3319, allocations: 15.92 kB / 439.1 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.637e-06/0.3319, allocations: 4 kB / 439.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.346e-05/0.332, allocations: 15.89 kB / 439.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.332, allocations: 7.938 kB / 439.1 MB, free: 14.87 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,sample1.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 (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.0001647/0.3322, allocations: 138.6 kB / 439.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.411e-05/0.3323, allocations: 69.62 kB / 439.3 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002706/0.3326, allocations: 115.2 kB / 439.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.3326, allocations: 4 kB / 439.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3326, allocations: 0 / 439.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3326, allocations: 0 / 439.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002198/0.3328, allocations: 196.5 kB / 439.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.3328, allocations: 0 / 439.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.748e-05/0.3328, allocations: 11.98 kB / 439.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.3328, allocations: 0 / 439.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.3329, allocations: 4 kB / 439.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3329, allocations: 4.062 kB / 439.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3329, allocations: 0 / 439.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002805/0.3331, allocations: 170.5 kB / 439.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.391e-05/0.3332, allocations: 35.78 kB / 439.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/0.3332, allocations: 4 kB / 439.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.303e-05/0.3333, allocations: 7.984 kB / 439.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.788e-05/0.3333, allocations: 4 kB / 439.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.815e-05/0.3334, allocations: 4 kB / 439.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002179/0.3336, allocations: 208.4 kB / 440.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3336, allocations: 0 / 440.1 MB, free: 13.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002597/0.3338, allocations: 31.98 kB / 440.1 MB, free: 13.8 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,sample1.u,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.00212/0.336, allocations: 1.022 MB / 441.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002334/0.3362, allocations: 75.84 kB / 441.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3362, allocations: 0 / 441.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.988e-05/0.3363, allocations: 31.91 kB / 441.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004488/0.3367, allocations: 96.78 kB / 441.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002573/0.3393, allocations: 1.961 MB / 443.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001339/0.3394, allocations: 123.6 kB / 443.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.553e-05/0.3395, allocations: 21.48 kB / 443.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.3396, allocations: 51.42 kB / 443.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3396, allocations: 0 / 443.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02758/0.3672, allocations: 5.145 MB / 448.6 MB, free: 5.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.33, allocations: 4.062 kB / 448.7 MB, free: 5.316 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.954646463040262] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y'] 11.545572238974273 11.559682145 11.230776434 Calling exit ...