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.001405/0.001405, allocations: 118.2 kB / 18.49 MB, free: 4.566 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.001756/0.001756, allocations: 218.3 kB / 21.46 MB, free: 1.613 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.573/1.573, allocations: 230.4 MB / 254.7 MB, free: 15.03 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.001897/0.001897, allocations: 71.89 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1178, allocations: 53.37 MB / 427 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003807/0.1216, allocations: 1.922 MB / 429 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002389/0.124, allocations: 1.219 MB / 430.2 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001914/0.1242, allocations: 7.938 kB / 430.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007937/0.125, allocations: 147.5 kB / 430.3 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004696/0.1255, allocations: 159.4 kB / 430.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006032/0.1261, allocations: 170.6 kB / 430.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002891/0.1263, allocations: 187.5 kB / 430.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.1265, allocations: 21.55 kB / 430.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.1266, allocations: 83.62 kB / 430.9 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.1267, allocations: 87.61 kB / 431 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.435e-05/0.1268, allocations: 8 kB / 431 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.1269, allocations: 51.97 kB / 431.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.706e-05/0.127, allocations: 43.83 kB / 431.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.974e-05/0.1271, allocations: 79.42 kB / 431.2 MB, free: 464 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003462/0.1274, allocations: 211.1 kB / 431.4 MB, free: 252 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1274, allocations: 0 / 431.4 MB, free: 252 kB / 350.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.1274, allocations: 0 / 431.4 MB, free: 252 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.1274, allocations: 0 / 431.4 MB, free: 252 kB / 350.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.2219/0.3493, allocations: 0.5167 MB / 431.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.489e-05/0.3494, allocations: 9.812 kB / 431.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.367e-05/0.3494, allocations: 4.062 kB / 432 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.722e-05/0.3495, allocations: 37.22 kB / 432 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.499e-05/0.3496, allocations: 26.25 kB / 432 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005069/0.3501, allocations: 267.8 kB / 432.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.3501, allocations: 7.781 kB / 432.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.274e-05/0.3501, allocations: 5.844 kB / 432.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004729/0.3506, allocations: 149.4 kB / 432.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.3506, allocations: 0 / 432.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.3506, allocations: 7.062 kB / 432.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.3506, allocations: 2.094 kB / 432.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001162/0.3507, allocations: 32.17 kB / 432.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005479/0.3513, allocations: 367 kB / 432.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000234/0.3515, allocations: 110.2 kB / 432.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.959e-05/0.3516, allocations: 41.42 kB / 433 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.95e-05/0.3516, allocations: 5.875 kB / 433 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001584/0.3518, allocations: 73.3 kB / 433.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.442e-06/0.3518, allocations: 0 / 433.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004053/0.3522, allocations: 147.6 kB / 433.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.048e-05/0.3523, allocations: 134.1 kB / 433.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003062/0.3526, allocations: 272.4 kB / 433.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/0.3526, allocations: 35.11 kB / 433.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.765e-05/0.3527, allocations: 113.2 kB / 433.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.402e-05/0.3527, allocations: 20.42 kB / 433.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.494e-05/0.3527, allocations: 32.73 kB / 433.8 MB, free: 9.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.329e-05/0.3528, allocations: 333.7 kB / 434.1 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.321e-05/0.3529, allocations: 22.84 kB / 434.1 MB, free: 9.559 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.404e-05/0.353, allocations: 66.64 kB / 434.2 MB, free: 9.504 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.3531, allocations: 83 kB / 434.3 MB, free: 9.465 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3531, allocations: 1.5 kB / 434.3 MB, free: 9.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002/0.3533, allocations: 118.4 kB / 434.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.3533, allocations: 4.781 kB / 434.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3533, allocations: 1.469 kB / 434.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.3533, allocations: 1.625 kB / 434.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.383e-05/0.3534, allocations: 15.73 kB / 434.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.377e-06/0.3534, allocations: 2.375 kB / 434.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.794e-05/0.3535, allocations: 6.234 kB / 434.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.3535, allocations: 7.156 kB / 434.4 MB, free: 9.426 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.0001071/0.3536, allocations: 146.7 kB / 434.6 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.9e-05/0.3537, allocations: 65.94 kB / 434.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.573e-05/0.3538, allocations: 27.03 kB / 434.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3538, allocations: 3.297 kB / 434.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.3538, allocations: 0 / 434.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.3538, allocations: 4.25 kB / 434.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001583/0.3539, allocations: 241.4 kB / 434.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.3539, allocations: 0 / 434.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.322e-05/0.3539, allocations: 3.75 kB / 434.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.3539, allocations: 7.844 kB / 434.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.354, allocations: 6.688 kB / 434.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.354, allocations: 0 / 434.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.354, allocations: 5.078 kB / 434.9 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002105/0.3542, allocations: 154.9 kB / 435.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.955e-05/0.3543, allocations: 111.7 kB / 435.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.106e-05/0.3543, allocations: 8.641 kB / 435.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.842e-05/0.3543, allocations: 3.688 kB / 435.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.097e-05/0.3544, allocations: 7.875 kB / 435.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/0.3544, allocations: 7.969 kB / 435.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001724/0.3546, allocations: 196.4 kB / 435.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3546, allocations: 1.438 kB / 435.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002649/0.3548, allocations: 31.41 kB / 435.5 MB, free: 8.777 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.001852/0.3567, allocations: 1.003 MB / 436.5 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002086/0.3569, allocations: 64.67 kB / 436.5 MB, free: 8.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3569, allocations: 4.062 kB / 436.5 MB, free: 8.078 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.015e-05/0.357, allocations: 23.58 kB / 436.6 MB, free: 8.078 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004201/0.3574, allocations: 69.2 kB / 436.6 MB, free: 8.074 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/0.3593, allocations: 1.941 MB / 438.6 MB, free: 6.793 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001793/0.3595, allocations: 0.7343 MB / 439.3 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.213e-05/0.3596, allocations: 20.34 kB / 439.3 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.628e-05/0.3597, allocations: 52.73 kB / 439.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3597, allocations: 0 / 439.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0265/0.3862, allocations: 4.753 MB / 444.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.273/8.659, allocations: 20.66 kB / 444.1 MB, free: 5.199 MB / 350.1 MB " [Timeout remaining time 651] (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: 11.381016978004482] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'shiftSample1.y'] 8.841079369012732 8.864546856 8.732290069 Calling exit ...