Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 117.8 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 190.7 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 225.6 MB / 249.8 MB, free: 3.723 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 43.94 kB / 366.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09983/0.1013, allocations: 52.14 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003617/0.1049, allocations: 2.023 MB / 420.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.1068, allocations: 1.13 MB / 421.6 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.1069, allocations: 7.938 kB / 421.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008903/0.1078, allocations: 307.1 kB / 421.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004437/0.1083, allocations: 207.3 kB / 422.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007242/0.109, allocations: 294.5 kB / 422.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004174/0.1094, allocations: 335.1 kB / 422.7 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.1096, allocations: 40.38 kB / 422.8 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002077/0.1098, allocations: 155.4 kB / 422.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000198/0.11, allocations: 151.4 kB / 423.1 MB, free: 8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.683e-05/0.11, allocations: 20 kB / 423.1 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000173/0.1102, allocations: 87.88 kB / 423.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.1103, allocations: 83.75 kB / 423.3 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.1104, allocations: 127.1 kB / 423.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000466/0.1109, allocations: 350.5 kB / 423.7 MB, free: 7.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.1109, allocations: 3.984 kB / 423.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1109, allocations: 0 / 423.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.1109, allocations: 4 kB / 423.7 MB, free: 7.336 MB / 350.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.001028/0.1119, allocations: 0.6622 MB / 424.4 MB, free: 6.613 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.112, allocations: 12.03 kB / 424.4 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.742e-05/0.112, allocations: 192 / 424.4 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.365e-05/0.112, allocations: 50.67 kB / 424.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.949e-05/0.1121, allocations: 36.7 kB / 424.5 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004328/0.1125, allocations: 335.6 kB / 424.8 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.1125, allocations: 8 kB / 424.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.272e-05/0.1126, allocations: 12 kB / 424.8 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002947/0.1129, allocations: 148.2 kB / 425 MB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.1129, allocations: 0 / 425 MB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.1129, allocations: 4 kB / 425 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.1129, allocations: 4 kB / 425 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001759/0.1131, allocations: 71.89 kB / 425.1 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007426/0.1138, allocations: 0.5002 MB / 425.6 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003912/0.1142, allocations: 122.7 kB / 425.7 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.1143, allocations: 48.83 kB / 425.7 MB, free: 5.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.1143, allocations: 4 kB / 425.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002321/0.1146, allocations: 115.3 kB / 425.9 MB, free: 5.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.1146, allocations: 3.938 kB / 425.9 MB, free: 5.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004952/0.1151, allocations: 215.9 kB / 426.1 MB, free: 4.801 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.168e-05/0.1151, allocations: 102.8 kB / 426.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004802/0.1156, allocations: 432.5 kB / 426.6 MB, free: 4.246 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.1156, allocations: 29.7 kB / 426.6 MB, free: 4.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.1158, allocations: 172 kB / 426.8 MB, free: 4.039 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.764e-05/0.1158, allocations: 43.66 kB / 426.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.51e-05/0.1159, allocations: 41.7 kB / 426.9 MB, free: 3.949 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.1161, allocations: 342.8 kB / 427.2 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.1162, allocations: 51.86 kB / 427.3 MB, free: 3.555 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001551/0.1163, allocations: 102 kB / 427.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.1165, allocations: 98.56 kB / 427.5 MB, free: 3.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.1165, allocations: 7.875 kB / 427.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003189/0.1169, allocations: 176.9 kB / 427.6 MB, free: 3.145 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.1169, allocations: 12.06 kB / 427.6 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.1169, allocations: 0 / 427.6 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.1169, allocations: 0 / 427.6 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.117, allocations: 27.98 kB / 427.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.117, allocations: 0 / 427.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.668e-05/0.1171, allocations: 23.88 kB / 427.7 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.1171, allocations: 4 kB / 427.7 MB, free: 3.078 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.0001673/0.1173, allocations: 175.4 kB / 427.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.701e-05/0.1173, allocations: 31.81 kB / 427.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.151e-05/0.1174, allocations: 34.94 kB / 427.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1174, allocations: 4 kB / 427.9 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.1174, allocations: 0 / 427.9 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1174, allocations: 0 / 427.9 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002837/0.1177, allocations: 305.3 kB / 428.2 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1177, allocations: 0 / 428.2 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.686e-05/0.1177, allocations: 8.047 kB / 428.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.1177, allocations: 3.984 kB / 428.3 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.1178, allocations: 7.984 kB / 428.3 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.1178, allocations: 4 kB / 428.3 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1178, allocations: 7.938 kB / 428.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003712/0.1181, allocations: 200.8 kB / 428.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.719e-05/0.1182, allocations: 104.9 kB / 428.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.497e-05/0.1183, allocations: 4 kB / 428.6 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.228e-05/0.1183, allocations: 11.98 kB / 428.6 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.075e-05/0.1184, allocations: 15.98 kB / 428.6 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.1184, allocations: 8 kB / 428.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003662/0.1188, allocations: 315 kB / 428.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1188, allocations: 0 / 428.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002746/0.1191, allocations: 63.81 kB / 429 MB, free: 1.695 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,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.002/0.1211, allocations: 1.058 MB / 430 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002978/0.1214, allocations: 122.9 kB / 430.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1214, allocations: 0 / 430.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.1215, allocations: 51.92 kB / 430.2 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004428/0.1219, allocations: 86.66 kB / 430.3 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003565/0.1255, allocations: 2.809 MB / 433.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005371/0.126, allocations: 0.7751 MB / 433.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001238/0.1261, allocations: 42.27 kB / 433.9 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001393/0.1263, allocations: 95.39 kB / 434 MB, free: 12.68 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1263, allocations: 0 / 434 MB, free: 12.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02558/0.1519, allocations: 7.251 MB / 441.3 MB, free: 5.516 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.161/8.313, allocations: 22.61 kB / 441.3 MB, free: 5.5 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00199601 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.81236225698376] Failed to read output from testmodel.py, exit status != 0: ['time', 'Pre1.u', 'table1.y', 'table2.y'] 8.495852198975626 8.726348158 8.613110873 Calling exit ...