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.001182/0.001182, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001251/0.001251, allocations: 188.3 kB / 24.49 MB, free: 3.941 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.326/1.326, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 179] 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.001391/0.001391, allocations: 43.92 kB / 371.2 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2163, allocations: 52.19 MB / 423.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003004/0.2193, allocations: 1.816 MB / 425.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.2204, allocations: 0.5454 MB / 425.7 MB, free: 12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.595e-05/0.2205, allocations: 7.938 kB / 425.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001161/0.2206, allocations: 27.67 kB / 425.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.2207, allocations: 35.67 kB / 425.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002599/0.221, allocations: 71.84 kB / 425.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002252/0.2212, allocations: 163.4 kB / 426 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.2213, allocations: 49.72 kB / 426.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001193/0.2215, allocations: 75.7 kB / 426.1 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.2216, allocations: 83.55 kB / 426.2 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.959e-05/0.2216, allocations: 16 kB / 426.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.827e-05/0.2217, allocations: 24 kB / 426.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.356e-05/0.2218, allocations: 39.84 kB / 426.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.081e-05/0.2219, allocations: 75.52 kB / 426.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002652/0.2221, allocations: 177.5 kB / 426.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2221, allocations: 0 / 426.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2221, allocations: 0 / 426.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2221, allocations: 4 kB / 426.5 MB, free: 11.17 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.0008324/0.223, allocations: 445.5 kB / 427 MB, free: 10.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.223, allocations: 11.97 kB / 427 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.138e-05/0.223, allocations: 8.469 kB / 427 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.259e-05/0.2231, allocations: 46.73 kB / 427 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.587e-05/0.2231, allocations: 24.8 kB / 427.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002548/0.2234, allocations: 182.9 kB / 427.2 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.204e-05/0.2234, allocations: 16.22 kB / 427.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.524e-05/0.2234, allocations: 12 kB / 427.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003676/0.2238, allocations: 199.8 kB / 427.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.2238, allocations: 4 kB / 427.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.2238, allocations: 4 kB / 427.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.2238, allocations: 4 kB / 427.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002929/0.2241, allocations: 147.8 kB / 427.6 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.2252, allocations: 0.7224 MB / 428.3 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/0.2255, allocations: 153 kB / 428.5 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001427/0.2256, allocations: 69.81 kB / 428.6 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.486e-05/0.2256, allocations: 7.984 kB / 428.6 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002619/0.2259, allocations: 152.8 kB / 428.7 MB, free: 8.812 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.382e-06/0.2259, allocations: 0 / 428.7 MB, free: 8.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005771/0.2265, allocations: 257.6 kB / 429 MB, free: 8.555 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/0.2265, allocations: 81.11 kB / 429.1 MB, free: 8.457 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/0.2267, allocations: 203 kB / 429.3 MB, free: 8.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.275e-05/0.2268, allocations: 33.81 kB / 429.3 MB, free: 8.211 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002596/0.227, allocations: 148.2 kB / 429.4 MB, free: 8.062 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.356e-05/0.2271, allocations: 51.56 kB / 429.5 MB, free: 8.012 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.261e-05/0.2271, allocations: 45.7 kB / 429.5 MB, free: 7.961 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.2273, allocations: 334.8 kB / 429.9 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.2274, allocations: 67.95 kB / 429.9 MB, free: 7.559 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.2276, allocations: 122.8 kB / 430 MB, free: 7.414 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003169/0.2279, allocations: 202.7 kB / 430.2 MB, free: 7.191 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2279, allocations: 0 / 430.2 MB, free: 7.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004093/0.2283, allocations: 245.3 kB / 430.5 MB, free: 6.945 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.2284, allocations: 4 kB / 430.5 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.2284, allocations: 4 kB / 430.5 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.2284, allocations: 0 / 430.5 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.2285, allocations: 39.92 kB / 430.5 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.2286, allocations: 3.984 kB / 430.5 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001481/0.2287, allocations: 32 kB / 430.6 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.825e-05/0.2287, allocations: 12 kB / 430.6 MB, free: 6.852 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.0001338/0.2289, allocations: 149.8 kB / 430.7 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.072e-05/0.2289, allocations: 19.86 kB / 430.7 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004232/0.2293, allocations: 211.7 kB / 430.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.2293, allocations: 4 kB / 430.9 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2293, allocations: 96 / 430.9 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.2293, allocations: 7.875 kB / 431 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000254/0.2296, allocations: 224.7 kB / 431.2 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2296, allocations: 4 kB / 431.2 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.2297, allocations: 19.98 kB / 431.2 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.2297, allocations: 0 / 431.2 MB, free: 6.164 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.2297, allocations: 8 kB / 431.2 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2297, allocations: 0 / 431.2 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2297, allocations: 3.938 kB / 431.2 MB, free: 6.152 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003719/0.2301, allocations: 229.6 kB / 431.4 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.781e-05/0.2301, allocations: 19.83 kB / 431.5 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.958e-05/0.2301, allocations: 12 kB / 431.5 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.2303, allocations: 15.98 kB / 431.5 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.599e-05/0.2303, allocations: 23.91 kB / 431.5 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.2303, allocations: 4 kB / 431.5 MB, free: 5.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001212/0.2304, allocations: 144.6 kB / 431.6 MB, free: 5.691 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2304, allocations: 7.938 kB / 431.7 MB, free: 5.684 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002419/0.2307, allocations: 35.95 kB / 431.7 MB, free: 5.648 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.0006654/0.2314, allocations: 0.7537 MB / 432.4 MB, free: 4.863 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000348/0.2317, allocations: 175.8 kB / 432.6 MB, free: 4.691 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2317, allocations: 0 / 432.6 MB, free: 4.691 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001565/0.2319, allocations: 79.89 kB / 432.7 MB, free: 4.613 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003286/0.2322, allocations: 47.97 kB / 432.7 MB, free: 4.566 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.2347, allocations: 2.168 MB / 434.9 MB, free: 2.258 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001128/0.2349, allocations: 124.9 kB / 435 MB, free: 2.117 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.767e-05/0.2349, allocations: 33.45 kB / 435.1 MB, free: 2.086 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.2351, allocations: 59.42 kB / 435.1 MB, free: 2.031 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2351, allocations: 0 / 435.1 MB, free: 2.031 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02551/0.2606, allocations: 4.528 MB / 439.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.23, allocations: 15.36 kB / 439.7 MB, free: 13.68 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.419371118070558] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 11.391880759969354 11.40709122 11.182097579 Calling exit ...