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.00121/0.00121, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001366/0.001366, allocations: 212.2 kB / 24.52 MB, free: 4.074 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.339/1.339, allocations: 230.6 MB / 258.3 MB, free: 7.992 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.00163/0.00163, allocations: 47.92 kB / 378.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2386, allocations: 53.36 MB / 431.9 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003047/0.2417, allocations: 1.912 MB / 433.8 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.2428, allocations: 0.6544 MB / 434.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.872e-05/0.2429, allocations: 3.938 kB / 434.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001245/0.243, allocations: 35.66 kB / 434.5 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001342/0.2432, allocations: 35.66 kB / 434.6 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.2435, allocations: 79.84 kB / 434.6 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002347/0.2437, allocations: 167.4 kB / 434.8 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.2439, allocations: 52.34 kB / 434.8 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001631/0.244, allocations: 79.64 kB / 434.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/0.2442, allocations: 87.55 kB / 435 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.866e-05/0.2442, allocations: 12 kB / 435 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.533e-05/0.2443, allocations: 28 kB / 435 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.148e-05/0.2443, allocations: 43.84 kB / 435.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.228e-05/0.2444, allocations: 91.45 kB / 435.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002643/0.2447, allocations: 185.4 kB / 435.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.2447, allocations: 0 / 435.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2447, allocations: 0 / 435.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.2447, allocations: 0 / 435.4 MB, free: 3.383 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.0008317/0.2455, allocations: 460.5 kB / 435.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.2456, allocations: 8.031 kB / 435.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.828e-05/0.2456, allocations: 4.469 kB / 435.8 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.579e-05/0.2456, allocations: 46.73 kB / 435.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/0.2458, allocations: 28.8 kB / 435.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002646/0.2461, allocations: 191.3 kB / 436.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.2461, allocations: 8.656 kB / 436.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.327e-05/0.2461, allocations: 24.38 kB / 436.1 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003471/0.2465, allocations: 199.7 kB / 436.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.2465, allocations: 0 / 436.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.2465, allocations: 7.984 kB / 436.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.703e-05/0.2465, allocations: 8 kB / 436.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002952/0.2468, allocations: 151.8 kB / 436.5 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.2479, allocations: 0.7381 MB / 437.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000308/0.2482, allocations: 161 kB / 437.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001477/0.2483, allocations: 69.8 kB / 437.4 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.2484, allocations: 8.141 kB / 437.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000251/0.2486, allocations: 149 kB / 437.6 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.162e-06/0.2486, allocations: 0 / 437.6 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005728/0.2492, allocations: 257.8 kB / 437.8 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/0.2493, allocations: 85.11 kB / 437.9 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001994/0.2495, allocations: 211.1 kB / 438.1 MB, free: 412 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.2495, allocations: 37.69 kB / 438.2 MB, free: 368 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.2496, allocations: 136.4 kB / 438.3 MB, free: 228 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.023e-05/0.2496, allocations: 47.58 kB / 438.3 MB, free: 180 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.221e-05/0.2497, allocations: 45.7 kB / 438.4 MB, free: 128 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.2499, allocations: 334.8 kB / 438.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001562/0.25, allocations: 67.95 kB / 438.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.2502, allocations: 128.4 kB / 438.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003969/0.2506, allocations: 210.7 kB / 439.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2506, allocations: 0 / 439.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004246/0.251, allocations: 241.4 kB / 439.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.251, allocations: 11.97 kB / 439.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.2511, allocations: 4 kB / 439.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.2511, allocations: 0 / 439.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.2512, allocations: 39.97 kB / 439.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.2512, allocations: 3.938 kB / 439.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.2514, allocations: 27.88 kB / 439.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.2514, allocations: 11.98 kB / 439.5 MB, free: 15 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.0001362/0.2515, allocations: 141.8 kB / 439.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.07e-05/0.2516, allocations: 15.91 kB / 439.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004361/0.252, allocations: 214.8 kB / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.252, allocations: 4 kB / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.252, allocations: 3.984 kB / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.252, allocations: 0 / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002856/0.2523, allocations: 240.6 kB / 440.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.2523, allocations: 0 / 440.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.2524, allocations: 23.92 kB / 440.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.2524, allocations: 4 kB / 440.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.2524, allocations: 11.98 kB / 440.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.2524, allocations: 0 / 440.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2524, allocations: 0 / 440.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003827/0.2528, allocations: 236.7 kB / 440.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.804e-05/0.2529, allocations: 15.91 kB / 440.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.641e-05/0.2529, allocations: 4 kB / 440.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001259/0.253, allocations: 19.97 kB / 440.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.155e-05/0.2531, allocations: 15.97 kB / 440.4 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.2531, allocations: 4 kB / 440.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000134/0.2532, allocations: 148.6 kB / 440.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2532, allocations: 0 / 440.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002468/0.2535, allocations: 47.83 kB / 440.6 MB, free: 13.8 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.0007106/0.2542, allocations: 0.7659 MB / 441.3 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000376/0.2545, allocations: 168 kB / 441.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2545, allocations: 0 / 441.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001751/0.2547, allocations: 84.19 kB / 441.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003241/0.255, allocations: 44.19 kB / 441.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002694/0.2577, allocations: 2.184 MB / 443.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000372/0.2581, allocations: 0.7436 MB / 444.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.2582, allocations: 33.61 kB / 444.6 MB, free: 9.582 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.203e-05/0.2583, allocations: 55.42 kB / 444.6 MB, free: 9.531 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2583, allocations: 0 / 444.6 MB, free: 9.531 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02646/0.2848, allocations: 4.4 MB / 449 MB, free: 5.297 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/10.91, allocations: 4.062 kB / 449.1 MB, free: 5.293 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.119372788001783] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 11.080200430995319 11.095036346 10.847363961 Calling exit ...