Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001443/0.001443, allocations: 108.8 kB / 19.16 MB, free: 3.871 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.001625/0.001625, allocations: 205.6 kB / 22.12 MB, free: 0.9297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.341/1.341, allocations: 207.6 MB / 232.5 MB, free: 3.75 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 55.92 kB / 343 MB, free: 9.984 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08417/0.08579, allocations: 49.13 MB / 392.1 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003353/0.08914, allocations: 1.989 MB / 394.1 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001899/0.09104, allocations: 1.072 MB / 395.2 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001821/0.09122, allocations: 3.938 kB / 395.2 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008821/0.09211, allocations: 303.2 kB / 395.5 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005187/0.09263, allocations: 219.2 kB / 395.7 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006948/0.09332, allocations: 259.4 kB / 395.9 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000468/0.09379, allocations: 339.1 kB / 396.3 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001401/0.09393, allocations: 44.3 kB / 396.3 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000255/0.09418, allocations: 151.4 kB / 396.5 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002378/0.09442, allocations: 159.3 kB / 396.6 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.307e-05/0.09446, allocations: 16 kB / 396.6 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001893/0.09465, allocations: 83.94 kB / 396.7 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.09476, allocations: 87.62 kB / 396.8 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.0949, allocations: 123.3 kB / 396.9 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004635/0.09537, allocations: 350.5 kB / 397.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.09537, allocations: 0 / 397.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.09537, allocations: 4 kB / 397.3 MB, free: 3.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.09539, allocations: 3.984 kB / 397.3 MB, free: 3.5 MB / 318.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.001044/0.09643, allocations: 0.6646 MB / 397.9 MB, free: 2.773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.09647, allocations: 8.031 kB / 397.9 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.638e-05/0.09649, allocations: 4.188 kB / 397.9 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.352e-05/0.09654, allocations: 46.73 kB / 398 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.294e-05/0.09662, allocations: 36.7 kB / 398 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000465/0.09709, allocations: 340.2 kB / 398.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.339e-05/0.09711, allocations: 12.12 kB / 398.4 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.433e-05/0.09714, allocations: 11.94 kB / 398.4 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003152/0.09745, allocations: 152 kB / 398.5 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.09746, allocations: 0 / 398.5 MB, free: 2.113 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.851e-05/0.09748, allocations: 4 kB / 398.5 MB, free: 2.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.09749, allocations: 4 kB / 398.5 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001725/0.09766, allocations: 71.95 kB / 398.6 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007207/0.09838, allocations: 496.2 kB / 399.1 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003204/0.0987, allocations: 118.7 kB / 399.2 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.09882, allocations: 52.83 kB / 399.3 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.09885, allocations: 7.984 kB / 399.3 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.09907, allocations: 111.3 kB / 399.4 MB, free: 1.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.09907, allocations: 0 / 399.4 MB, free: 1.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005138/0.09959, allocations: 217.7 kB / 399.6 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.257e-05/0.09967, allocations: 114.8 kB / 399.7 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000487/0.1002, allocations: 428.5 kB / 400.1 MB, free: 420 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.783e-05/0.1002, allocations: 33.7 kB / 400.2 MB, free: 380 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.1003, allocations: 164 kB / 400.3 MB, free: 212 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.693e-05/0.1004, allocations: 35.7 kB / 400.3 MB, free: 176 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.934e-05/0.1004, allocations: 45.69 kB / 400.4 MB, free: 124 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.1006, allocations: 342.8 kB / 400.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.1007, allocations: 43.97 kB / 400.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.1009, allocations: 105.9 kB / 400.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002099/0.1011, allocations: 110.6 kB / 401 MB, free: 15.49 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1011, allocations: 0 / 401 MB, free: 15.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000346/0.1015, allocations: 189.2 kB / 401.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.1015, allocations: 4 kB / 401.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.1015, allocations: 0 / 401.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.1015, allocations: 4 kB / 401.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.1016, allocations: 23.92 kB / 401.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.1016, allocations: 4 kB / 401.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.1017, allocations: 23.88 kB / 401.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/0.1017, allocations: 8 kB / 401.2 MB, free: 15.23 MB / 334.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.0001645/0.1019, allocations: 167.6 kB / 401.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.147e-05/0.102, allocations: 39.75 kB / 401.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.502e-05/0.102, allocations: 30.94 kB / 401.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.102, allocations: 0 / 401.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.102, allocations: 48 / 401.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.102, allocations: 3.984 kB / 401.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003072/0.1023, allocations: 301.4 kB / 401.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1024, allocations: 0 / 401.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.158e-05/0.1024, allocations: 23.81 kB / 401.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1024, allocations: 0 / 401.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/0.1024, allocations: 11.98 kB / 401.8 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1024, allocations: 0 / 401.8 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1024, allocations: 0 / 401.8 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003574/0.1028, allocations: 196.8 kB / 402 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.062e-05/0.1029, allocations: 108.9 kB / 402.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.066e-05/0.1029, allocations: 4 kB / 402.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.393e-05/0.103, allocations: 15.98 kB / 402.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.846e-05/0.103, allocations: 15.92 kB / 402.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-05/0.1031, allocations: 8 kB / 402.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003639/0.1034, allocations: 315 kB / 402.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1034, allocations: 3.938 kB / 402.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003042/0.1037, allocations: 51.88 kB / 402.5 MB, free: 13.86 MB / 334.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.00213/0.1059, allocations: 1.063 MB / 403.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003272/0.1062, allocations: 119.8 kB / 403.7 MB, free: 12.65 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1062, allocations: 0 / 403.7 MB, free: 12.65 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.1063, allocations: 55.86 kB / 403.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004301/0.1068, allocations: 81.42 kB / 403.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003498/0.1103, allocations: 2.808 MB / 406.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004024/0.1107, allocations: 0.7753 MB / 407.4 MB, free: 8.812 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001271/0.1108, allocations: 46.25 kB / 407.4 MB, free: 8.766 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.1109, allocations: 95.39 kB / 407.5 MB, free: 8.676 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1109, allocations: 0 / 407.5 MB, free: 8.676 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02501/0.1359, allocations: 7.259 MB / 414.8 MB, free: 1.332 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.163/8.299, allocations: 15.8 kB / 414.8 MB, free: 1.316 MB / 334.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00199601 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.544267540972214] Failed to read output from testmodel.py, exit status != 0: ['time', 'Pre1.u', 'table1.y', 'table2.y'] 8.481619317026343 8.495953799 8.397717223 Calling exit ...