Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.007668/0.007668, allocations: 100.3 kB / 21.96 MB, free: 5.211 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.001412/0.001412, allocations: 217.5 kB / 25.26 MB, free: 3.141 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.311/1.311, allocations: 207.7 MB / 236.1 MB, free: 9.801 MB / 190.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.RealNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1",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.00172/0.00172, allocations: 58.27 kB / 348 MB, free: 9.914 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.2277, allocations: 49.16 MB / 397.1 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002709/0.2304, allocations: 1.782 MB / 398.9 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008618/0.2312, allocations: 0.6122 MB / 399.5 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.029e-05/0.2313, allocations: 6.188 kB / 399.5 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001082/0.2314, allocations: 22.78 kB / 399.5 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.2315, allocations: 37.09 kB / 399.6 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002363/0.2318, allocations: 64.84 kB / 399.6 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001973/0.232, allocations: 175.3 kB / 399.8 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.2321, allocations: 56.28 kB / 399.9 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.2322, allocations: 75.94 kB / 399.9 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001332/0.2323, allocations: 80.41 kB / 400 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.01e-05/0.2324, allocations: 12.59 kB / 400 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.708e-05/0.2324, allocations: 22.22 kB / 400.1 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.773e-05/0.2325, allocations: 42.78 kB / 400.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.517e-05/0.2326, allocations: 64.58 kB / 400.2 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000232/0.2328, allocations: 191.6 kB / 400.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.2328, allocations: 0 / 400.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2328, allocations: 0 / 400.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.2328, allocations: 5.188 kB / 400.4 MB, free: 6.836 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0007472/0.2336, allocations: 448.6 kB / 400.8 MB, free: 6.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.2336, allocations: 13.14 kB / 400.8 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.486e-05/0.2336, allocations: 4.906 kB / 400.8 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.486e-05/0.2337, allocations: 47.25 kB / 400.9 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.887e-05/0.2337, allocations: 24.02 kB / 400.9 MB, free: 6.414 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002257/0.2339, allocations: 185.7 kB / 401.1 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.2339, allocations: 11.91 kB / 401.1 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.806e-05/0.234, allocations: 17.38 kB / 401.1 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003227/0.2343, allocations: 203.3 kB / 401.3 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.2343, allocations: 0.9062 kB / 401.3 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.2343, allocations: 9.906 kB / 401.3 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/0.2343, allocations: 5.688 kB / 401.3 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000277/0.2346, allocations: 143.1 kB / 401.4 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008607/0.2355, allocations: 0.7208 MB / 402.2 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002804/0.2358, allocations: 158 kB / 402.3 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.2359, allocations: 75.44 kB / 402.4 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.513e-05/0.2359, allocations: 3.516 kB / 402.4 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002234/0.2361, allocations: 148.4 kB / 402.5 MB, free: 5.277 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.2362, allocations: 0 / 402.5 MB, free: 5.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005137/0.2367, allocations: 258.9 kB / 402.8 MB, free: 5.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.171e-05/0.2367, allocations: 83.94 kB / 402.9 MB, free: 5.082 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.2369, allocations: 199.8 kB / 403.1 MB, free: 4.949 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.2369, allocations: 32.55 kB / 403.1 MB, free: 4.914 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.344e-05/0.2369, allocations: 142.1 kB / 403.2 MB, free: 4.789 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.16e-05/0.237, allocations: 48.89 kB / 403.3 MB, free: 4.75 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.026e-05/0.237, allocations: 47.3 kB / 403.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.761e-05/0.2371, allocations: 334.7 kB / 403.7 MB, free: 4.395 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.2372, allocations: 70.2 kB / 403.7 MB, free: 4.375 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/0.2374, allocations: 126.3 kB / 403.9 MB, free: 4.289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002828/0.2376, allocations: 202.9 kB / 404.1 MB, free: 4.172 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2376, allocations: 1.094 kB / 404.1 MB, free: 4.172 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003731/0.238, allocations: 243.2 kB / 404.3 MB, free: 4.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.238, allocations: 6.906 kB / 404.3 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.238, allocations: 5.75 kB / 404.3 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.2381, allocations: 7.156 kB / 404.3 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000159/0.2382, allocations: 34.64 kB / 404.3 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.2382, allocations: 7.859 kB / 404.4 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/0.2384, allocations: 30.19 kB / 404.4 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.457e-05/0.2384, allocations: 6.594 kB / 404.4 MB, free: 4.043 MB / 318.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 8.992e-05/0.2385, allocations: 142.5 kB / 404.5 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.673e-05/0.2385, allocations: 18.09 kB / 404.5 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003865/0.2389, allocations: 209.5 kB / 404.8 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.2389, allocations: 5.438 kB / 404.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2389, allocations: 0.9062 kB / 404.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.2389, allocations: 2.75 kB / 404.8 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001701/0.2391, allocations: 233 kB / 405 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2391, allocations: 1.406 kB / 405 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.2392, allocations: 23.14 kB / 405 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.2392, allocations: 5 kB / 405 MB, free: 3.598 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.2392, allocations: 8.422 kB / 405 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.063e-06/0.2392, allocations: 5.312 kB / 405 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2392, allocations: 1.031 kB / 405 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003178/0.2395, allocations: 237.1 kB / 405.3 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.349e-05/0.2395, allocations: 20.58 kB / 405.3 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.964e-05/0.2396, allocations: 10.05 kB / 405.3 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001219/0.2397, allocations: 13.12 kB / 405.3 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.737e-05/0.2397, allocations: 17.03 kB / 405.3 MB, free: 3.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.2398, allocations: 3.641 kB / 405.3 MB, free: 3.434 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.963e-05/0.2399, allocations: 145.4 kB / 405.5 MB, free: 3.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2399, allocations: 0 / 405.5 MB, free: 3.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002435/0.2401, allocations: 34.86 kB / 405.5 MB, free: 3.336 MB / 318.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.0004934/0.2406, allocations: 0.7725 MB / 406.3 MB, free: 2.672 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003358/0.2409, allocations: 170.9 kB / 406.4 MB, free: 2.625 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2409, allocations: 1.312 kB / 406.4 MB, free: 2.625 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001489/0.2411, allocations: 75 kB / 406.5 MB, free: 2.609 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.2414, allocations: 57.33 kB / 406.6 MB, free: 2.578 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001956/0.2433, allocations: 2.174 MB / 408.7 MB, free: 1.004 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.29e-05/0.2434, allocations: 126.8 kB / 408.9 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001021/0.2435, allocations: 31.72 kB / 408.9 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.999e-05/0.2436, allocations: 62.78 kB / 409 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2436, allocations: 0 / 409 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.2667, allocations: 4.524 MB / 413.5 MB, free: 14.99 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.05, allocations: 6.359 kB / 413.5 MB, free: 14.98 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.27688592998311] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 11.210490152938291 11.224733093 10.989006677 Calling exit ...