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.00153/0.00153, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001577/0.001577, allocations: 214.9 kB / 24.51 MB, free: 3.945 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.356/1.356, allocations: 230.6 MB / 258.3 MB, free: 7.805 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.001441/0.001441, allocations: 47.92 kB / 378.5 MB, free: 3.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2281/0.2295, allocations: 53.36 MB / 431.9 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003213/0.2327, allocations: 1.817 MB / 433.7 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.234, allocations: 0.6271 MB / 434.3 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.2341, allocations: 3.938 kB / 434.3 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.2343, allocations: 35.59 kB / 434.3 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.2344, allocations: 39.66 kB / 434.4 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003372/0.2348, allocations: 75.8 kB / 434.5 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002682/0.235, allocations: 163.5 kB / 434.6 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001782/0.2352, allocations: 52.55 kB / 434.7 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001984/0.2354, allocations: 75.66 kB / 434.7 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.2356, allocations: 87.53 kB / 434.8 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.405e-05/0.2356, allocations: 12 kB / 434.8 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.367e-05/0.2357, allocations: 24 kB / 434.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.02e-05/0.2358, allocations: 43.84 kB / 434.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.428e-05/0.2359, allocations: 71.59 kB / 435 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002888/0.2362, allocations: 191.9 kB / 435.2 MB, free: 3.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.2362, allocations: 0 / 435.2 MB, free: 3.371 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.2362, allocations: 0 / 435.2 MB, free: 3.371 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.2362, allocations: 0 / 435.2 MB, free: 3.371 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.0009286/0.2371, allocations: 457.4 kB / 435.6 MB, free: 2.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/0.2371, allocations: 12.03 kB / 435.6 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.034e-05/0.2372, allocations: 12.45 kB / 435.6 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.202e-05/0.2372, allocations: 50.67 kB / 435.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/0.2374, allocations: 28.8 kB / 435.7 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.2376, allocations: 175.4 kB / 435.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.2377, allocations: 20.59 kB / 435.9 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.747e-05/0.2377, allocations: 16.36 kB / 435.9 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003818/0.2381, allocations: 203.7 kB / 436.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.2381, allocations: 0 / 436.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.881e-05/0.2381, allocations: 8 kB / 436.1 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.462e-05/0.2381, allocations: 11.98 kB / 436.1 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003183/0.2385, allocations: 139.8 kB / 436.3 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.2396, allocations: 0.7224 MB / 437 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003289/0.2399, allocations: 161 kB / 437.1 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001441/0.2401, allocations: 69.8 kB / 437.2 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.255e-05/0.2401, allocations: 4 kB / 437.2 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002713/0.2404, allocations: 137.2 kB / 437.4 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.884e-06/0.2404, allocations: 0 / 437.4 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005814/0.241, allocations: 265.6 kB / 437.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.907e-05/0.241, allocations: 85.05 kB / 437.7 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002164/0.2412, allocations: 215.1 kB / 437.9 MB, free: 420 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.2413, allocations: 29.69 kB / 437.9 MB, free: 384 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.2414, allocations: 148.3 kB / 438.1 MB, free: 232 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.044e-05/0.2414, allocations: 39.66 kB / 438.1 MB, free: 192 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.162e-05/0.2415, allocations: 41.7 kB / 438.2 MB, free: 144 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.2417, allocations: 338.8 kB / 438.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001513/0.2418, allocations: 75.89 kB / 438.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001881/0.242, allocations: 124.4 kB / 438.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003286/0.2423, allocations: 202.7 kB / 438.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2423, allocations: 0 / 438.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004378/0.2428, allocations: 245.4 kB / 439.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.2428, allocations: 8 kB / 439.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.2428, allocations: 4 kB / 439.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.2428, allocations: 4 kB / 439.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.243, allocations: 35.91 kB / 439.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/0.243, allocations: 4 kB / 439.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001604/0.2432, allocations: 31.86 kB / 439.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.2432, allocations: 8 kB / 439.2 MB, free: 15.02 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 0.0001527/0.2433, allocations: 141.8 kB / 439.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.508e-05/0.2434, allocations: 15.91 kB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004582/0.2438, allocations: 215.6 kB / 439.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.2438, allocations: 3.984 kB / 439.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.2438, allocations: 4 kB / 439.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2438, allocations: 0 / 439.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002752/0.2441, allocations: 228.7 kB / 439.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.2441, allocations: 7.922 kB / 439.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.2442, allocations: 23.98 kB / 439.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.2442, allocations: 3.984 kB / 439.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.2443, allocations: 4 kB / 439.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.2443, allocations: 4 kB / 439.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2443, allocations: 0 / 439.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004194/0.2447, allocations: 240.1 kB / 440.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.389e-05/0.2447, allocations: 11.91 kB / 440.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.601e-05/0.2447, allocations: 8 kB / 440.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.2449, allocations: 15.97 kB / 440.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.16e-05/0.2449, allocations: 23.91 kB / 440.1 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.245, allocations: 4 kB / 440.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001361/0.2451, allocations: 148.6 kB / 440.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2451, allocations: 4 kB / 440.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002704/0.2454, allocations: 39.89 kB / 440.3 MB, free: 13.82 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.0007901/0.2462, allocations: 0.7653 MB / 441.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004225/0.2466, allocations: 171.8 kB / 441.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2466, allocations: 0 / 441.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001718/0.2468, allocations: 79.89 kB / 441.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003416/0.2471, allocations: 43.91 kB / 441.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002851/0.2499, allocations: 2.181 MB / 443.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001214/0.2501, allocations: 132.9 kB / 443.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001074/0.2502, allocations: 37.61 kB / 443.7 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.486e-05/0.2503, allocations: 55.42 kB / 443.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2503, allocations: 0 / 443.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02538/0.2756, allocations: 4.548 MB / 448.3 MB, free: 5.812 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.29, allocations: 10.64 kB / 448.4 MB, free: 5.805 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.52035786700435] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 11.44743506994564 11.472490517 11.231650583 Calling exit ...