Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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.001442/0.001442, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001488/0.001488, allocations: 192.8 kB / 24.5 MB, free: 4.02 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.34/1.34, allocations: 225.6 MB / 253.3 MB, free: 13.05 MB / 206.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.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 43.92 kB / 371.2 MB, free: 9.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.224, allocations: 52.19 MB / 423.4 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003343/0.2274, allocations: 1.89 MB / 425.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.2285, allocations: 0.5883 MB / 425.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.263e-05/0.2286, allocations: 3.938 kB / 425.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001257/0.2287, allocations: 31.67 kB / 425.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.2289, allocations: 39.64 kB / 426 MB, free: 12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002727/0.2291, allocations: 67.86 kB / 426 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002455/0.2294, allocations: 159.4 kB / 426.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001584/0.2295, allocations: 45.94 kB / 426.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.2297, allocations: 75.7 kB / 426.3 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.2298, allocations: 87.55 kB / 426.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.012e-05/0.2299, allocations: 15.98 kB / 426.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.414e-05/0.2299, allocations: 24 kB / 426.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.064e-05/0.23, allocations: 39.84 kB / 426.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.891e-05/0.2301, allocations: 91.34 kB / 426.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002707/0.2304, allocations: 184 kB / 426.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2304, allocations: 0 / 426.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2304, allocations: 0 / 426.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.563e-06/0.2304, allocations: 0 / 426.7 MB, free: 11.23 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008734/0.2313, allocations: 445.5 kB / 427.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.2313, allocations: 11.97 kB / 427.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.835e-05/0.2313, allocations: 8.469 kB / 427.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.621e-05/0.2314, allocations: 46.73 kB / 427.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.569e-05/0.2315, allocations: 24.8 kB / 427.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002644/0.2317, allocations: 179 kB / 427.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.2317, allocations: 12.22 kB / 427.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.807e-05/0.2318, allocations: 16 kB / 427.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000363/0.2321, allocations: 203.7 kB / 427.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.2321, allocations: 0 / 427.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.2322, allocations: 4 kB / 427.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/0.2322, allocations: 8 kB / 427.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000315/0.2325, allocations: 139.8 kB / 427.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.2336, allocations: 0.7575 MB / 428.6 MB, free: 9.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003145/0.2339, allocations: 157 kB / 428.7 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/0.234, allocations: 65.81 kB / 428.8 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.825e-05/0.2341, allocations: 7.984 kB / 428.8 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002624/0.2343, allocations: 148.4 kB / 428.9 MB, free: 8.848 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.192e-06/0.2343, allocations: 0 / 428.9 MB, free: 8.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005572/0.2349, allocations: 253.6 kB / 429.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.128e-05/0.235, allocations: 81.11 kB / 429.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.2352, allocations: 199 kB / 429.5 MB, free: 8.293 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.2352, allocations: 33.7 kB / 429.5 MB, free: 8.254 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.2353, allocations: 152.3 kB / 429.6 MB, free: 8.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.984e-05/0.2353, allocations: 59.5 kB / 429.7 MB, free: 8.043 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.733e-05/0.2354, allocations: 37.7 kB / 429.7 MB, free: 8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.2356, allocations: 338.8 kB / 430.1 MB, free: 7.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.2357, allocations: 67.95 kB / 430.1 MB, free: 7.594 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.2359, allocations: 126.3 kB / 430.3 MB, free: 7.449 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003323/0.2362, allocations: 210.6 kB / 430.5 MB, free: 7.219 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/0.2362, allocations: 4 kB / 430.5 MB, free: 7.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004302/0.2367, allocations: 245.3 kB / 430.7 MB, free: 6.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.2367, allocations: 8.188 kB / 430.7 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.2367, allocations: 0 / 430.7 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.2367, allocations: 4 kB / 430.7 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.2369, allocations: 31.92 kB / 430.7 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.2369, allocations: 7.984 kB / 430.8 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001543/0.237, allocations: 31.81 kB / 430.8 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.237, allocations: 8 kB / 430.8 MB, free: 6.879 MB / 334.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 0.0001356/0.2372, allocations: 141.8 kB / 430.9 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.82e-05/0.2372, allocations: 15.91 kB / 430.9 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000442/0.2376, allocations: 223.6 kB / 431.2 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.2376, allocations: 0 / 431.2 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.2377, allocations: 0 / 431.2 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.2377, allocations: 7.938 kB / 431.2 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002569/0.2379, allocations: 232.6 kB / 431.4 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.2379, allocations: 0 / 431.4 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.238, allocations: 19.98 kB / 431.4 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.238, allocations: 8 kB / 431.4 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.238, allocations: 4 kB / 431.4 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.238, allocations: 0 / 431.4 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.2381, allocations: 7.938 kB / 431.4 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003941/0.2384, allocations: 225.6 kB / 431.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.012e-05/0.2385, allocations: 23.84 kB / 431.7 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.687e-05/0.2385, allocations: 7.984 kB / 431.7 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.2386, allocations: 15.98 kB / 431.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.648e-05/0.2387, allocations: 19.91 kB / 431.7 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.2387, allocations: 8 kB / 431.7 MB, free: 5.855 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001212/0.2388, allocations: 144.6 kB / 431.9 MB, free: 5.715 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2388, allocations: 0 / 431.9 MB, free: 5.715 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000253/0.2391, allocations: 39.89 kB / 431.9 MB, free: 5.676 MB / 334.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.0007284/0.2398, allocations: 0.7685 MB / 432.7 MB, free: 4.879 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003777/0.2402, allocations: 172 kB / 432.8 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2402, allocations: 0 / 432.8 MB, free: 4.711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.2404, allocations: 79.88 kB / 432.9 MB, free: 4.633 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.2407, allocations: 51.78 kB / 433 MB, free: 4.582 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002741/0.2434, allocations: 2.168 MB / 435.1 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.2438, allocations: 0.7359 MB / 435.9 MB, free: 1.512 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.2439, allocations: 33.45 kB / 435.9 MB, free: 1.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.76e-05/0.244, allocations: 59.42 kB / 436 MB, free: 1.426 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.244, allocations: 0 / 436 MB, free: 1.426 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02539/0.2694, allocations: 4.369 MB / 440.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.14, allocations: 7.031 kB / 440.3 MB, free: 13.21 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.360548731987365] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 11.298665462993085 11.315474917 11.082032544 Calling exit ...