Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.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.00154/0.00154, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.002781/0.002781, allocations: 210.2 kB / 24.53 MB, free: 4.07 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.594/1.594, allocations: 230.5 MB / 258.2 MB, free: 8.035 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.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002094/0.002094, allocations: 63.89 kB / 378.5 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3948/0.3969, allocations: 53.41 MB / 432 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004504/0.4014, allocations: 2.054 MB / 434 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002608/0.404, allocations: 1.305 MB / 435.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.4042, allocations: 7.938 kB / 435.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009627/0.4051, allocations: 311.2 kB / 435.6 MB, free: 3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007628/0.4059, allocations: 267 kB / 435.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008298/0.4067, allocations: 227.1 kB / 436.1 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005608/0.4073, allocations: 359.1 kB / 436.5 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001884/0.4075, allocations: 40.91 kB / 436.5 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002511/0.4077, allocations: 151.4 kB / 436.6 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002888/0.408, allocations: 171.3 kB / 436.8 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.186e-05/0.4081, allocations: 19.94 kB / 436.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000277/0.4083, allocations: 95.88 kB / 436.9 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.4085, allocations: 83.73 kB / 437 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001638/0.4086, allocations: 131.2 kB / 437.1 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005789/0.4092, allocations: 363.2 kB / 437.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.202e-05/0.4092, allocations: 7.984 kB / 437.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4092, allocations: 0 / 437.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.4092, allocations: 0 / 437.5 MB, free: 1.129 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001205/0.4104, allocations: 0.6088 MB / 438.1 MB, free: 488 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.4105, allocations: 8.031 kB / 438.1 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.102e-05/0.4105, allocations: 8.188 kB / 438.1 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.871e-05/0.4106, allocations: 46.73 kB / 438.2 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.228e-05/0.4107, allocations: 36.7 kB / 438.2 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005022/0.4112, allocations: 280.7 kB / 438.5 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.554e-05/0.4112, allocations: 8.375 kB / 438.5 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.76e-05/0.4112, allocations: 12.38 kB / 438.5 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003651/0.4116, allocations: 155.1 kB / 438.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.4116, allocations: 0 / 438.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.09e-05/0.4116, allocations: 4 kB / 438.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.4116, allocations: 4 kB / 438.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.4118, allocations: 67.95 kB / 438.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007533/0.4126, allocations: 471.4 kB / 439.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003363/0.4129, allocations: 122.7 kB / 439.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.413, allocations: 48.83 kB / 439.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.18e-05/0.413, allocations: 7.984 kB / 439.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002658/0.4133, allocations: 115.3 kB / 439.5 MB, free: 15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.442e-06/0.4133, allocations: 0 / 439.5 MB, free: 15 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005158/0.4138, allocations: 224.1 kB / 439.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.332e-05/0.4139, allocations: 106.8 kB / 439.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005578/0.4145, allocations: 453.6 kB / 440.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.058e-05/0.4145, allocations: 29.7 kB / 440.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.4146, allocations: 176 kB / 440.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.146e-05/0.4147, allocations: 43.69 kB / 440.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.68e-05/0.4148, allocations: 45.64 kB / 440.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.415, allocations: 342.8 kB / 440.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001064/0.4151, allocations: 43.98 kB / 440.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/0.4152, allocations: 112.7 kB / 441 MB, free: 13.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002104/0.4154, allocations: 94.56 kB / 441.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.4154, allocations: 0 / 441.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003566/0.4158, allocations: 181.3 kB / 441.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.4158, allocations: 8.062 kB / 441.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.4158, allocations: 7.938 kB / 441.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.4158, allocations: 3.938 kB / 441.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.416, allocations: 31.92 kB / 441.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.416, allocations: 0 / 441.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.4161, allocations: 19.88 kB / 441.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.4161, allocations: 8 kB / 441.4 MB, free: 13.01 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001989/0.4163, allocations: 167.5 kB / 441.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.68e-05/0.4163, allocations: 39.81 kB / 441.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004042/0.4168, allocations: 191.8 kB / 441.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.4168, allocations: 4 kB / 441.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.4168, allocations: 0 / 441.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.4168, allocations: 0 / 441.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003628/0.4171, allocations: 280.5 kB / 442 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.4171, allocations: 0 / 442 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.802e-05/0.4172, allocations: 11.94 kB / 442 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.4172, allocations: 0 / 442 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.4172, allocations: 7.938 kB / 442.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.4172, allocations: 4 kB / 442.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4172, allocations: 0 / 442.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000387/0.4176, allocations: 200.8 kB / 442.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.669e-05/0.4177, allocations: 35.75 kB / 442.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.893e-05/0.4177, allocations: 11.94 kB / 442.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.199e-05/0.4178, allocations: 7.984 kB / 442.3 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.798e-05/0.4179, allocations: 11.98 kB / 442.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.293e-05/0.4179, allocations: 12 kB / 442.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004149/0.4183, allocations: 335.1 kB / 442.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4183, allocations: 0 / 442.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003063/0.4186, allocations: 51.94 kB / 442.7 MB, free: 11.59 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.002266/0.4209, allocations: 1.07 MB / 443.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003199/0.4212, allocations: 111.9 kB / 443.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4212, allocations: 0 / 443.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.4213, allocations: 59.91 kB / 443.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004324/0.4218, allocations: 76.62 kB / 444 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003788/0.4256, allocations: 2.866 MB / 446.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004404/0.426, allocations: 0.7792 MB / 447.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001525/0.4261, allocations: 42.27 kB / 447.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001759/0.4263, allocations: 103.4 kB / 447.8 MB, free: 6.492 MB / 350.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4263, allocations: 0 / 447.8 MB, free: 6.492 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02997/0.4563, allocations: 7.623 MB / 455.4 MB, free: 14.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.62, allocations: 10.41 kB / 455.4 MB, free: 14.92 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00199601 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.362729776010383] Failed to read output from testmodel.py, exit status != 0: ['time', 'Pre1.u', 'table1.y', 'table2.y'] 11.847941854968667 11.874721775 11.460397402 Calling exit ...