Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.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.001321/0.001321, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.001432/0.001432, allocations: 219 kB / 21.46 MB, free: 1.586 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.369/1.369, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.RealNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 48.06 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09554/0.09715, allocations: 53.33 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003357/0.1005, allocations: 1.899 MB / 428.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.1018, allocations: 0.6661 MB / 429.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.1019, allocations: 4 kB / 429.6 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.102, allocations: 23.67 kB / 429.6 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001449/0.1022, allocations: 31.67 kB / 429.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002783/0.1025, allocations: 79.78 kB / 429.7 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002317/0.1027, allocations: 171.4 kB / 429.9 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001528/0.1028, allocations: 52.3 kB / 429.9 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/0.103, allocations: 83.62 kB / 430 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000158/0.1032, allocations: 71.62 kB / 430.1 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.877e-05/0.1032, allocations: 12 kB / 430.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.216e-05/0.1033, allocations: 27.98 kB / 430.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.378e-05/0.1033, allocations: 51.77 kB / 430.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.962e-05/0.1034, allocations: 87.47 kB / 430.3 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002757/0.1037, allocations: 187.1 kB / 430.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1037, allocations: 0 / 430.4 MB, free: 1.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1037, allocations: 4 kB / 430.4 MB, free: 1.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.1037, allocations: 0 / 430.4 MB, free: 1.34 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009812/0.1047, allocations: 0.522 MB / 431 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.1047, allocations: 8.031 kB / 431 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.018e-05/0.1048, allocations: 8.469 kB / 431 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.827e-05/0.1048, allocations: 50.73 kB / 431 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.105, allocations: 28.8 kB / 431.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002984/0.1053, allocations: 244 kB / 431.3 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.1053, allocations: 8.656 kB / 431.3 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.955e-05/0.1053, allocations: 16.38 kB / 431.3 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003651/0.1057, allocations: 202.9 kB / 431.5 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.1057, allocations: 0 / 431.5 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.1057, allocations: 4 kB / 431.5 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.03e-05/0.1057, allocations: 8 kB / 431.5 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003059/0.106, allocations: 139.8 kB / 431.7 MB, free: 0 / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001372/0.1074, allocations: 0.7772 MB / 432.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003494/0.1077, allocations: 158.7 kB / 432.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/0.1079, allocations: 68.89 kB / 432.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.967e-05/0.1079, allocations: 6.25 kB / 432.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002713/0.1082, allocations: 152 kB / 432.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.1082, allocations: 0 / 432.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006025/0.1088, allocations: 258.7 kB / 433.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.361e-05/0.1088, allocations: 84.33 kB / 433.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001843/0.109, allocations: 205.1 kB / 433.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.109, allocations: 32.86 kB / 433.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.492e-05/0.1091, allocations: 137.6 kB / 433.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.884e-05/0.1092, allocations: 42.95 kB / 433.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.897e-05/0.1092, allocations: 46.92 kB / 433.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.413e-05/0.1093, allocations: 330.5 kB / 433.9 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.1095, allocations: 71.22 kB / 434 MB, free: 9.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001566/0.1096, allocations: 125.7 kB / 434.1 MB, free: 9.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002573/0.1099, allocations: 208.6 kB / 434.3 MB, free: 9.645 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1099, allocations: 3.125 kB / 434.3 MB, free: 9.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003611/0.1103, allocations: 242.8 kB / 434.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.1103, allocations: 5.656 kB / 434.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.1103, allocations: 2.219 kB / 434.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.1103, allocations: 6.844 kB / 434.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.1105, allocations: 35.89 kB / 434.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.1105, allocations: 3.969 kB / 434.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001563/0.1106, allocations: 30.64 kB / 434.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.1106, allocations: 12.94 kB / 434.7 MB, free: 9.594 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 9.241e-05/0.1107, allocations: 139.8 kB / 434.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.802e-05/0.1108, allocations: 25.33 kB / 434.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003818/0.1111, allocations: 214.8 kB / 435 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1111, allocations: 2.281 kB / 435 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1111, allocations: 5.062 kB / 435 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.1112, allocations: 2.734 kB / 435 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.1113, allocations: 268.3 kB / 435.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.1114, allocations: 5.578 kB / 435.3 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000105/0.1115, allocations: 23.36 kB / 435.3 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1115, allocations: 1.188 kB / 435.3 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.1115, allocations: 6.453 kB / 435.3 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1115, allocations: 1.094 kB / 435.3 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.1115, allocations: 3.469 kB / 435.3 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003444/0.1118, allocations: 226.5 kB / 435.6 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.487e-05/0.1119, allocations: 99.88 kB / 435.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.686e-05/0.1119, allocations: 7.844 kB / 435.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/0.112, allocations: 25.81 kB / 435.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.215e-05/0.1121, allocations: 12.94 kB / 435.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.1121, allocations: 7.703 kB / 435.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001016/0.1122, allocations: 143.1 kB / 435.9 MB, free: 8.961 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1122, allocations: 0 / 435.9 MB, free: 8.961 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002497/0.1124, allocations: 38.52 kB / 435.9 MB, free: 8.961 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005871/0.113, allocations: 0.7705 MB / 436.7 MB, free: 8.352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003723/0.1134, allocations: 170.4 kB / 436.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1134, allocations: 0 / 436.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001527/0.1135, allocations: 76.31 kB / 436.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.1139, allocations: 44.48 kB / 437 MB, free: 8.348 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.1161, allocations: 2.185 MB / 439.1 MB, free: 6.875 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001654/0.1162, allocations: 0.7365 MB / 439.9 MB, free: 6.176 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001093/0.1164, allocations: 32.45 kB / 439.9 MB, free: 6.172 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.356e-05/0.1164, allocations: 58.64 kB / 440 MB, free: 6.129 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1164, allocations: 0 / 440 MB, free: 6.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0217/0.1381, allocations: 4.199 MB / 444.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.021/8.159, allocations: 14.67 kB / 444.2 MB, free: 5.566 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.571478248981293] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 8.452716550033074 8.465122971 8.358460314 Calling exit ...