Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 120.1 kB / 18.49 MB, free: 4.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 215 kB / 21.45 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.395/1.395, allocations: 230.6 MB / 254.8 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 47.92 kB / 373.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09981/0.1012, allocations: 53.33 MB / 427 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003439/0.1047, allocations: 2.033 MB / 429 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.1069, allocations: 1.29 MB / 430.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001034/0.107, allocations: 7.938 kB / 430.3 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000788/0.1077, allocations: 306.8 kB / 430.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005309/0.1083, allocations: 259.1 kB / 430.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005062/0.1088, allocations: 219.5 kB / 431.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004017/0.1092, allocations: 363 kB / 431.5 MB, free: 372 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.1093, allocations: 40.72 kB / 431.5 MB, free: 328 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001874/0.1095, allocations: 155.4 kB / 431.7 MB, free: 172 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001949/0.1097, allocations: 159.4 kB / 431.8 MB, free: 12 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.793e-05/0.1097, allocations: 16.05 kB / 431.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001758/0.1099, allocations: 95.77 kB / 431.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.11, allocations: 91.67 kB / 432 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001292/0.1102, allocations: 127.1 kB / 432.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004377/0.1106, allocations: 370.4 kB / 432.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1106, allocations: 0 / 432.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1106, allocations: 0 / 432.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.1106, allocations: 0 / 432.5 MB, free: 15.32 MB / 366.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.001003/0.1116, allocations: 0.6802 MB / 433.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.1117, allocations: 12.03 kB / 433.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.155e-05/0.1117, allocations: 192 / 433.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.039e-05/0.1117, allocations: 46.73 kB / 433.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.221e-05/0.1118, allocations: 36.7 kB / 433.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004404/0.1122, allocations: 342.6 kB / 433.6 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.1123, allocations: 16.12 kB / 433.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.318e-05/0.1123, allocations: 12 kB / 433.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002867/0.1126, allocations: 152 kB / 433.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.1126, allocations: 0 / 433.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.1126, allocations: 4 kB / 433.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.1126, allocations: 0 / 433.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000174/0.1128, allocations: 67.95 kB / 433.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006849/0.1135, allocations: 0.5003 MB / 434.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003122/0.1138, allocations: 118.8 kB / 434.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.1139, allocations: 48.78 kB / 434.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.1139, allocations: 4 kB / 434.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002276/0.1141, allocations: 121.5 kB / 434.6 MB, free: 12.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.1141, allocations: 0 / 434.6 MB, free: 12.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005011/0.1146, allocations: 217.3 kB / 434.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.445e-05/0.1147, allocations: 106.8 kB / 434.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005755/0.1153, allocations: 457.6 kB / 435.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.1153, allocations: 29.7 kB / 435.4 MB, free: 12.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.1155, allocations: 176 kB / 435.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.087e-05/0.1155, allocations: 43.69 kB / 435.6 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.716e-05/0.1156, allocations: 41.7 kB / 435.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.1157, allocations: 338.8 kB / 436 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.1159, allocations: 47.97 kB / 436.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.116, allocations: 102 kB / 436.2 MB, free: 11.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002152/0.1162, allocations: 104.6 kB / 436.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1162, allocations: 0 / 436.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003251/0.1166, allocations: 181.2 kB / 436.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.1166, allocations: 8 kB / 436.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.1166, allocations: 3.938 kB / 436.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.1166, allocations: 8.047 kB / 436.5 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.1167, allocations: 24 kB / 436.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.1167, allocations: 3.984 kB / 436.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.1168, allocations: 23.81 kB / 436.5 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.435e-05/0.1168, allocations: 8 kB / 436.5 MB, free: 11 MB / 366.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.0001711/0.117, allocations: 167.6 kB / 436.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.126e-05/0.117, allocations: 35.75 kB / 436.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.462e-05/0.1171, allocations: 38.97 kB / 436.8 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1171, allocations: 0 / 436.8 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.1171, allocations: 0 / 436.8 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.1171, allocations: 8.031 kB / 436.8 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002927/0.1174, allocations: 305.4 kB / 437.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.1174, allocations: 0 / 437.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.227e-05/0.1175, allocations: 15.88 kB / 437.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1175, allocations: 3.938 kB / 437.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.1175, allocations: 7.984 kB / 437.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.1175, allocations: 4 kB / 437.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1175, allocations: 4 kB / 437.1 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003564/0.1178, allocations: 203 kB / 437.3 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.466e-05/0.1179, allocations: 108.8 kB / 437.4 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.87e-05/0.118, allocations: 4 kB / 437.4 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.34e-05/0.118, allocations: 15.98 kB / 437.4 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.324e-05/0.1181, allocations: 7.984 kB / 437.4 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.788e-05/0.1181, allocations: 8 kB / 437.4 MB, free: 9.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003576/0.1185, allocations: 335.1 kB / 437.8 MB, free: 9.668 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1185, allocations: 0 / 437.8 MB, free: 9.668 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002856/0.1188, allocations: 63.81 kB / 437.8 MB, free: 9.605 MB / 366.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,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * 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.002083/0.1208, allocations: 1.061 MB / 438.9 MB, free: 8.676 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000301/0.1211, allocations: 119 kB / 439 MB, free: 8.562 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1211, allocations: 0 / 439 MB, free: 8.562 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.1213, allocations: 59.8 kB / 439.1 MB, free: 8.504 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004203/0.1217, allocations: 75.88 kB / 439.1 MB, free: 8.438 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003506/0.1252, allocations: 2.863 MB / 442 MB, free: 5.477 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.1256, allocations: 0.7753 MB / 442.8 MB, free: 4.676 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001125/0.1257, allocations: 46.25 kB / 442.8 MB, free: 4.633 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.1259, allocations: 95.41 kB / 442.9 MB, free: 4.539 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1259, allocations: 4 kB / 442.9 MB, free: 4.535 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.211/0.3369, allocations: 7.422 MB / 450.3 MB, free: 24.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.267/8.604, allocations: 8.281 kB / 450.3 MB, free: 24.02 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00199601 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.926889687951189] Failed to read output from testmodel.py, exit status != 0: ['time', 'Pre1.u', 'table1.y', 'table2.y'] 8.780011701048352 8.792563113 8.679386102 Calling exit ...