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.007325/0.007325, allocations: 113.9 kB / 21.97 MB, free: 5.219 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.001362/0.001362, allocations: 216.2 kB / 25.28 MB, free: 3.246 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.322/1.322, allocations: 207.6 MB / 236 MB, free: 9.98 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.001788/0.001788, allocations: 52.39 kB / 348 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2356, allocations: 49.16 MB / 397.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002689/0.2383, allocations: 1.866 MB / 399 MB, free: 7.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00094/0.2393, allocations: 0.6452 MB / 399.6 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.212e-05/0.2393, allocations: 6.469 kB / 399.6 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.2395, allocations: 27.75 kB / 399.7 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.2396, allocations: 36.06 kB / 399.7 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002393/0.2398, allocations: 71.95 kB / 399.8 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002056/0.24, allocations: 171.7 kB / 399.9 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.2402, allocations: 48.3 kB / 400 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.2403, allocations: 76.36 kB / 400.1 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.2404, allocations: 81.05 kB / 400.1 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.762e-05/0.2405, allocations: 11.19 kB / 400.2 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.135e-05/0.2405, allocations: 23.64 kB / 400.2 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.112e-05/0.2406, allocations: 50.19 kB / 400.2 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.963e-05/0.2407, allocations: 77.02 kB / 400.3 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002451/0.2409, allocations: 192.5 kB / 400.5 MB, free: 6.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2409, allocations: 0 / 400.5 MB, free: 6.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2409, allocations: 4 kB / 400.5 MB, free: 6.797 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.2409, allocations: 0 / 400.5 MB, free: 6.797 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.000736/0.2417, allocations: 448.9 kB / 400.9 MB, free: 6.438 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.2417, allocations: 13.58 kB / 400.9 MB, free: 6.434 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.692e-05/0.2417, allocations: 8.422 kB / 401 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.284e-05/0.2418, allocations: 47.41 kB / 401 MB, free: 6.383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.498e-05/0.2418, allocations: 27.33 kB / 401 MB, free: 6.367 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002013/0.242, allocations: 177.6 kB / 401.2 MB, free: 6.203 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.242, allocations: 11.41 kB / 401.2 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.272e-05/0.2421, allocations: 14.2 kB / 401.2 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003259/0.2424, allocations: 201.8 kB / 401.4 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.2424, allocations: 4.969 kB / 401.4 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.2424, allocations: 5.219 kB / 401.4 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.917e-05/0.2424, allocations: 10 kB / 401.4 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002942/0.2427, allocations: 145.9 kB / 401.6 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009106/0.2436, allocations: 0.7482 MB / 402.3 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002837/0.2439, allocations: 151.1 kB / 402.5 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.244, allocations: 73.55 kB / 402.6 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.811e-05/0.2441, allocations: 12.98 kB / 402.6 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002239/0.2443, allocations: 137.2 kB / 402.7 MB, free: 5.234 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.2443, allocations: 0 / 402.7 MB, free: 5.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005049/0.2448, allocations: 263.1 kB / 403 MB, free: 5.133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.141e-05/0.2448, allocations: 80.42 kB / 403 MB, free: 5.039 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.245, allocations: 202.5 kB / 403.2 MB, free: 4.902 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.245, allocations: 28.52 kB / 403.3 MB, free: 4.871 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.076e-05/0.2451, allocations: 145.4 kB / 403.4 MB, free: 4.742 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.897e-05/0.2451, allocations: 45.58 kB / 403.4 MB, free: 4.707 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.81e-05/0.2452, allocations: 42.06 kB / 403.5 MB, free: 4.68 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.788e-05/0.2452, allocations: 337.1 kB / 403.8 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.2453, allocations: 68.12 kB / 403.9 MB, free: 4.336 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.2455, allocations: 136.5 kB / 404 MB, free: 4.238 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000267/0.2458, allocations: 208.4 kB / 404.2 MB, free: 4.117 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2458, allocations: 1.125 kB / 404.2 MB, free: 4.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000351/0.2461, allocations: 242.5 kB / 404.5 MB, free: 4.016 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.2461, allocations: 6.531 kB / 404.5 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.2461, allocations: 6.25 kB / 404.5 MB, free: 4.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.2461, allocations: 6.328 kB / 404.5 MB, free: 4.008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.2463, allocations: 36.39 kB / 404.5 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.2463, allocations: 4.375 kB / 404.5 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000155/0.2465, allocations: 35.25 kB / 404.5 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.2465, allocations: 9.625 kB / 404.6 MB, free: 3.984 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 9.332e-05/0.2466, allocations: 145.7 kB / 404.7 MB, free: 3.848 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.717e-05/0.2466, allocations: 16.56 kB / 404.7 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003736/0.247, allocations: 211.8 kB / 404.9 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.247, allocations: 6.844 kB / 404.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.247, allocations: 0 / 404.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.247, allocations: 2.297 kB / 404.9 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002073/0.2472, allocations: 243.5 kB / 405.2 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2472, allocations: 1.438 kB / 405.2 MB, free: 3.539 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.2473, allocations: 23.67 kB / 405.2 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2473, allocations: 1.219 kB / 405.2 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.2473, allocations: 3.375 kB / 405.2 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2473, allocations: 0 / 405.2 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2473, allocations: 1.719 kB / 405.2 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003331/0.2476, allocations: 243.3 kB / 405.4 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.519e-05/0.2477, allocations: 22.27 kB / 405.5 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.558e-05/0.2477, allocations: 3.172 kB / 405.5 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/0.2478, allocations: 22.92 kB / 405.5 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.973e-05/0.2479, allocations: 14.94 kB / 405.5 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.2479, allocations: 10.97 kB / 405.5 MB, free: 3.363 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.619e-05/0.248, allocations: 141.5 kB / 405.6 MB, free: 3.273 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.248, allocations: 0 / 405.6 MB, free: 3.273 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002386/0.2482, allocations: 34.19 kB / 405.7 MB, free: 3.27 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.0004567/0.2487, allocations: 0.7709 MB / 406.5 MB, free: 2.605 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003131/0.249, allocations: 164.9 kB / 406.6 MB, free: 2.566 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.249, allocations: 0 / 406.6 MB, free: 2.566 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.2491, allocations: 76.98 kB / 406.7 MB, free: 2.547 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002964/0.2494, allocations: 45.61 kB / 406.7 MB, free: 2.527 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001964/0.2514, allocations: 2.177 MB / 408.9 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001395/0.2515, allocations: 0.74 MB / 409.7 MB, free: 244 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.714e-05/0.2516, allocations: 40.41 kB / 409.7 MB, free: 236 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.598e-05/0.2517, allocations: 54.89 kB / 409.7 MB, free: 196 kB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2517, allocations: 0 / 409.7 MB, free: 196 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02416/0.2759, allocations: 4.379 MB / 414.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.13, allocations: 6.875 kB / 414.1 MB, free: 14.4 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.353282998956274] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 11.2916102730087 11.308042611 11.064024638 Calling exit ...