Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.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.001572/0.001572, allocations: 120.2 kB / 18.5 MB, free: 4.535 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.002188/0.002188, allocations: 222.2 kB / 21.46 MB, free: 1.582 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.633/1.633, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 63.91 kB / 373.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1496, allocations: 53.38 MB / 427.1 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004033/0.1536, allocations: 1.864 MB / 428.9 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002553/0.1562, allocations: 1.18 MB / 430.1 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001616/0.1563, allocations: 7.938 kB / 430.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000873/0.1572, allocations: 174.5 kB / 430.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005058/0.1577, allocations: 163.3 kB / 430.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004657/0.1582, allocations: 139.6 kB / 430.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003465/0.1585, allocations: 219.4 kB / 430.8 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.1587, allocations: 13.55 kB / 430.8 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001682/0.1588, allocations: 91.62 kB / 430.9 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001842/0.159, allocations: 99.53 kB / 431 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.153e-05/0.159, allocations: 12 kB / 431 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001801/0.1592, allocations: 55.95 kB / 431 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.1593, allocations: 51.83 kB / 431.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.1594, allocations: 71.55 kB / 431.2 MB, free: 480 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000464/0.1599, allocations: 238.9 kB / 431.4 MB, free: 240 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.1599, allocations: 4 kB / 431.4 MB, free: 236 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1599, allocations: 0 / 431.4 MB, free: 236 kB / 350.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.1599, allocations: 0 / 431.4 MB, free: 236 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.3083/0.4682, allocations: 0.5278 MB / 431.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.584e-05/0.4683, allocations: 8.438 kB / 431.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.703e-05/0.4683, allocations: 4.844 kB / 431.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.551e-05/0.4683, allocations: 35.2 kB / 432 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.478e-05/0.4684, allocations: 27.95 kB / 432 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004447/0.4688, allocations: 261.3 kB / 432.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.668e-05/0.4689, allocations: 7.312 kB / 432.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.793e-05/0.4689, allocations: 7.969 kB / 432.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003068/0.4692, allocations: 120.5 kB / 432.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.4692, allocations: 0.9688 kB / 432.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.4692, allocations: 7.203 kB / 432.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.4692, allocations: 1.812 kB / 432.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.4694, allocations: 48.92 kB / 432.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007855/0.4702, allocations: 0.6095 MB / 433.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003038/0.4705, allocations: 123.7 kB / 433.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.4706, allocations: 46.58 kB / 433.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.183e-05/0.4706, allocations: 2.281 kB / 433.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002795/0.4709, allocations: 124.2 kB / 433.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.573e-06/0.4709, allocations: 0 / 433.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005691/0.4715, allocations: 172.3 kB / 433.5 MB, free: 10 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.975e-05/0.4716, allocations: 137.8 kB / 433.7 MB, free: 9.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003811/0.4719, allocations: 294.9 kB / 433.9 MB, free: 9.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.472, allocations: 27.61 kB / 434 MB, free: 9.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.16e-05/0.4721, allocations: 129.1 kB / 434.1 MB, free: 9.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.552e-05/0.4721, allocations: 33.36 kB / 434.1 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.988e-05/0.4722, allocations: 34.09 kB / 434.2 MB, free: 9.594 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.283e-05/0.4722, allocations: 336 kB / 434.5 MB, free: 9.277 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.332e-05/0.4723, allocations: 36.48 kB / 434.5 MB, free: 9.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.4724, allocations: 84.53 kB / 434.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000195/0.4726, allocations: 99.06 kB / 434.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.4726, allocations: 0 / 434.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002594/0.4729, allocations: 143.7 kB / 434.8 MB, free: 9.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.4729, allocations: 5.375 kB / 434.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.4729, allocations: 1.25 kB / 434.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/0.4729, allocations: 7.219 kB / 434.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.063e-05/0.473, allocations: 19.22 kB / 434.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.473, allocations: 5.859 kB / 434.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.4731, allocations: 12.33 kB / 434.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.374e-05/0.4732, allocations: 9.062 kB / 434.9 MB, free: 9.141 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: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001285/0.4733, allocations: 148.1 kB / 435 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.825e-05/0.4733, allocations: 22.83 kB / 435.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.071e-05/0.4734, allocations: 24.41 kB / 435.1 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-06/0.4734, allocations: 3.531 kB / 435.1 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.4734, allocations: 1.094 kB / 435.1 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.4734, allocations: 1 kB / 435.1 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002451/0.4736, allocations: 254.3 kB / 435.3 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.4736, allocations: 3.281 kB / 435.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.589e-05/0.4737, allocations: 4.438 kB / 435.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.4737, allocations: 1.156 kB / 435.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.4737, allocations: 5.281 kB / 435.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.4737, allocations: 2.5 kB / 435.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.4737, allocations: 8.688 kB / 435.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003165/0.474, allocations: 184.7 kB / 435.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.971e-05/0.4741, allocations: 92.3 kB / 435.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.938e-05/0.4741, allocations: 11 kB / 435.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.53e-05/0.4742, allocations: 7.531 kB / 435.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.216e-05/0.4743, allocations: 19.69 kB / 435.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.4743, allocations: 7.844 kB / 435.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002448/0.4745, allocations: 224.2 kB / 435.9 MB, free: 8.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4745, allocations: 3.469 kB / 435.9 MB, free: 8.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003028/0.4748, allocations: 33.84 kB / 435.9 MB, free: 8.52 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: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * 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 (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.002229/0.4771, allocations: 1.023 MB / 437 MB, free: 7.832 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003312/0.4774, allocations: 84.77 kB / 437.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.4774, allocations: 1.062 kB / 437.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001421/0.4776, allocations: 50.59 kB / 437.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003932/0.4779, allocations: 51.7 kB / 437.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003093/0.481, allocations: 2.2 MB / 439.4 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00025/0.4813, allocations: 0.731 MB / 440.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000122/0.4814, allocations: 26.31 kB / 440.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.4815, allocations: 65.34 kB / 440.2 MB, free: 5.602 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4815, allocations: 1.719 kB / 440.2 MB, free: 5.602 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0373/0.5188, allocations: 5.253 MB / 445.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.453/8.971, allocations: 13.03 kB / 445.4 MB, free: 4.719 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --stepSize=0.00199283 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.817449082969688] Failed to read output from testmodel.py, exit status != 0: ['time', 'table.y'] 9.16340176697122 9.187525613 9.022480397 Calling exit ...