Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001293/0.001293, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001475/0.001475, allocations: 209.9 kB / 24.54 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.505/1.505, allocations: 230.6 MB / 258.3 MB, free: 8.074 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002967/0.002967, allocations: 60.77 kB / 378.5 MB, free: 3.289 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2871, allocations: 53.38 MB / 431.9 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003249/0.2903, allocations: 1.903 MB / 433.8 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.2915, allocations: 0.6621 MB / 434.5 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.2916, allocations: 11.94 kB / 434.5 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.2918, allocations: 27.72 kB / 434.5 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001617/0.2919, allocations: 39.59 kB / 434.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003464/0.2923, allocations: 79.8 kB / 434.6 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002626/0.2926, allocations: 163.4 kB / 434.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.2927, allocations: 48.56 kB / 434.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.2929, allocations: 79.64 kB / 434.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001778/0.2931, allocations: 87.61 kB / 435 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.013e-05/0.2931, allocations: 12 kB / 435 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.356e-05/0.2932, allocations: 23.94 kB / 435 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.514e-05/0.2933, allocations: 51.77 kB / 435.1 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.2934, allocations: 83.53 kB / 435.2 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003055/0.2937, allocations: 191.9 kB / 435.4 MB, free: 3.469 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2937, allocations: 0 / 435.4 MB, free: 3.469 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2937, allocations: 0 / 435.4 MB, free: 3.469 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.2937, allocations: 4 kB / 435.4 MB, free: 3.465 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.0009494/0.2947, allocations: 453.4 kB / 435.8 MB, free: 2.988 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.2947, allocations: 8.031 kB / 435.8 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.914e-05/0.2948, allocations: 50.73 kB / 435.9 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.2949, allocations: 28.8 kB / 435.9 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002856/0.2952, allocations: 178.8 kB / 436.1 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.887e-05/0.2952, allocations: 12.66 kB / 436.1 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.241e-05/0.2952, allocations: 20.38 kB / 436.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003693/0.2956, allocations: 199.8 kB / 436.3 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.2956, allocations: 0 / 436.3 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.131e-05/0.2956, allocations: 11.98 kB / 436.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2e-05/0.2957, allocations: 7.938 kB / 436.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003133/0.296, allocations: 143.9 kB / 436.4 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.2971, allocations: 0.7458 MB / 437.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003258/0.2975, allocations: 161 kB / 437.4 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.2976, allocations: 73.8 kB / 437.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.841e-05/0.2976, allocations: 0 / 437.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003104/0.298, allocations: 147.6 kB / 437.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.298, allocations: 0 / 437.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006995/0.2987, allocations: 258.1 kB / 437.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.721e-05/0.2987, allocations: 89.05 kB / 437.9 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002515/0.299, allocations: 211.1 kB / 438.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/0.299, allocations: 37.69 kB / 438.2 MB, free: 468 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.2992, allocations: 136.3 kB / 438.3 MB, free: 328 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.007e-05/0.2992, allocations: 47.62 kB / 438.3 MB, free: 280 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.786e-05/0.2993, allocations: 45.7 kB / 438.4 MB, free: 228 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.2995, allocations: 334.8 kB / 438.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.2997, allocations: 67.95 kB / 438.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.2999, allocations: 127 kB / 438.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000363/0.3002, allocations: 206.7 kB / 439.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.3002, allocations: 0 / 439.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004706/0.3007, allocations: 241.4 kB / 439.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.3007, allocations: 8.109 kB / 439.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.3007, allocations: 7.922 kB / 439.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.583e-05/0.3008, allocations: 4 kB / 439.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001864/0.301, allocations: 43.91 kB / 439.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.348e-05/0.301, allocations: 4 kB / 439.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001539/0.3011, allocations: 23.88 kB / 439.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.376e-05/0.3011, allocations: 15.98 kB / 439.4 MB, free: 15.1 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.0001626/0.3013, allocations: 141.8 kB / 439.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.095e-05/0.3013, allocations: 15.91 kB / 439.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004817/0.3018, allocations: 210.8 kB / 439.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.3018, allocations: 4 kB / 439.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3018, allocations: 3.984 kB / 439.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3018, allocations: 0 / 439.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002928/0.3021, allocations: 244.6 kB / 440 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.3021, allocations: 3.938 kB / 440 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.3022, allocations: 23.98 kB / 440.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.3022, allocations: 0 / 440.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.3023, allocations: 15.92 kB / 440.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3023, allocations: 0 / 440.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3023, allocations: 0 / 440.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003959/0.3027, allocations: 229.6 kB / 440.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.759e-05/0.3027, allocations: 15.91 kB / 440.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.889e-05/0.3027, allocations: 8 kB / 440.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/0.3028, allocations: 15.97 kB / 440.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.176e-05/0.3029, allocations: 19.97 kB / 440.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.657e-06/0.3029, allocations: 0 / 440.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001411/0.3031, allocations: 152.6 kB / 440.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3031, allocations: 3.938 kB / 440.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000268/0.3033, allocations: 39.89 kB / 440.6 MB, free: 13.89 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.0007725/0.3041, allocations: 0.7615 MB / 441.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004089/0.3045, allocations: 175.9 kB / 441.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3045, allocations: 0 / 441.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001839/0.3047, allocations: 76.44 kB / 441.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003431/0.305, allocations: 47.3 kB / 441.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002799/0.3078, allocations: 2.181 MB / 443.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/0.3082, allocations: 0.7474 MB / 444.5 MB, free: 9.711 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001208/0.3083, allocations: 37.59 kB / 444.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.933e-05/0.3084, allocations: 55.42 kB / 444.6 MB, free: 9.625 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3084, allocations: 0 / 444.6 MB, free: 9.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03174/0.3402, allocations: 4.26 MB / 448.9 MB, free: 5.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.512/8.852, allocations: 7.984 kB / 448.9 MB, free: 5.461 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.249258946161717] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 8.927429980132729 8.947222452 8.649181714 Calling exit ...