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.001199/0.001199, allocations: 118.6 kB / 18.5 MB, free: 4.434 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.00132/0.00132, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.389/1.389, allocations: 230.5 MB / 254.7 MB, free: 14.86 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.001908/0.001908, allocations: 71.83 kB / 373.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1071, allocations: 53.32 MB / 426.9 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003325/0.1104, allocations: 1.885 MB / 428.8 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.1117, allocations: 0.6583 MB / 429.4 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.1118, allocations: 8 kB / 429.4 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.112, allocations: 23.67 kB / 429.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001635/0.1121, allocations: 35.66 kB / 429.5 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002915/0.1124, allocations: 75.8 kB / 429.6 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000256/0.1127, allocations: 171.4 kB / 429.7 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.1129, allocations: 52.28 kB / 429.8 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001752/0.113, allocations: 79.64 kB / 429.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001527/0.1132, allocations: 83.61 kB / 429.9 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.1132, allocations: 12 kB / 430 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.527e-05/0.1133, allocations: 24 kB / 430 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.196e-05/0.1134, allocations: 39.83 kB / 430 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.1135, allocations: 95.34 kB / 430.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002916/0.1138, allocations: 195.1 kB / 430.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1138, allocations: 0 / 430.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1138, allocations: 0 / 430.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.1138, allocations: 0 / 430.3 MB, free: 1.398 MB / 350.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.0009688/0.1147, allocations: 0.5162 MB / 430.8 MB, free: 0.832 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.1148, allocations: 11.97 kB / 430.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.738e-05/0.1148, allocations: 50.73 kB / 430.9 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.115, allocations: 32.78 kB / 430.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003153/0.1153, allocations: 240 kB / 431.2 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.1153, allocations: 16.66 kB / 431.2 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.901e-05/0.1154, allocations: 12.38 kB / 431.2 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003584/0.1157, allocations: 195.1 kB / 431.4 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.1157, allocations: 7.984 kB / 431.4 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.656e-05/0.1157, allocations: 4 kB / 431.4 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.95e-05/0.1158, allocations: 4 kB / 431.4 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003005/0.1161, allocations: 147.8 kB / 431.5 MB, free: 64 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1945/0.3105, allocations: 0.7708 MB / 432.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003421/0.3109, allocations: 155.9 kB / 432.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.311, allocations: 70.56 kB / 432.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.081e-05/0.3111, allocations: 4.25 kB / 432.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002484/0.3113, allocations: 159.4 kB / 432.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.675e-06/0.3113, allocations: 3.281 kB / 432.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005625/0.3119, allocations: 255 kB / 432.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/0.3119, allocations: 85.38 kB / 433 MB, free: 10.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001764/0.3121, allocations: 208.3 kB / 433.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.3121, allocations: 27.67 kB / 433.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.928e-05/0.3122, allocations: 142.1 kB / 433.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.132e-05/0.3122, allocations: 47.73 kB / 433.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-05/0.3123, allocations: 46.41 kB / 433.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.373e-05/0.3123, allocations: 331.3 kB / 433.8 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.3125, allocations: 68.36 kB / 433.9 MB, free: 9.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.3126, allocations: 127.9 kB / 434 MB, free: 9.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002526/0.3129, allocations: 205.8 kB / 434.2 MB, free: 9.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.3129, allocations: 1.344 kB / 434.2 MB, free: 9.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003294/0.3132, allocations: 236.1 kB / 434.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.3132, allocations: 11.59 kB / 434.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.3132, allocations: 1.031 kB / 434.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.3132, allocations: 4 kB / 434.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.3134, allocations: 38.03 kB / 434.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.3134, allocations: 4.125 kB / 434.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001446/0.3135, allocations: 37.08 kB / 434.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.3136, allocations: 6.156 kB / 434.5 MB, free: 9.613 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.0001056/0.3137, allocations: 141.5 kB / 434.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.17e-05/0.3137, allocations: 24.89 kB / 434.7 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004144/0.3141, allocations: 215.6 kB / 434.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.688e-06/0.3141, allocations: 2.031 kB / 434.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3141, allocations: 3 kB / 434.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.3141, allocations: 9.188 kB / 434.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002315/0.3144, allocations: 265.9 kB / 435.2 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3144, allocations: 0 / 435.2 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.3145, allocations: 24.66 kB / 435.2 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.3145, allocations: 5.219 kB / 435.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.3145, allocations: 1.875 kB / 435.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.3145, allocations: 6.062 kB / 435.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3145, allocations: 0 / 435.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003476/0.3148, allocations: 228.5 kB / 435.4 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.081e-05/0.3149, allocations: 99.12 kB / 435.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.753e-05/0.3149, allocations: 3.859 kB / 435.5 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.315, allocations: 19.14 kB / 435.6 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.455e-05/0.3151, allocations: 18.59 kB / 435.6 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.3151, allocations: 5.422 kB / 435.6 MB, free: 9.051 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001132/0.3152, allocations: 146.8 kB / 435.7 MB, free: 8.977 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3152, allocations: 0 / 435.7 MB, free: 8.977 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002641/0.3155, allocations: 36.03 kB / 435.8 MB, free: 8.973 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.0005071/0.316, allocations: 0.7747 MB / 436.5 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003365/0.3163, allocations: 168.7 kB / 436.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3163, allocations: 1.531 kB / 436.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001486/0.3165, allocations: 79.38 kB / 436.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.3168, allocations: 44.55 kB / 436.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.3191, allocations: 2.186 MB / 439 MB, free: 6.953 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002048/0.3193, allocations: 0.7371 MB / 439.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.3195, allocations: 33.61 kB / 439.8 MB, free: 6.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.907e-05/0.3195, allocations: 59.55 kB / 439.8 MB, free: 6.207 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3195, allocations: 0 / 439.8 MB, free: 6.207 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02795/0.3475, allocations: 4.181 MB / 444 MB, free: 5.676 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.768/8.115, allocations: 0.9688 kB / 444 MB, free: 5.676 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.314165905117989] Failed to read output from testmodel.py, exit status != 0: ['time', 'multiSwitch.u[1]', 'multiSwitch.u[2]'] 8.185101164039224 8.19741639 8.080947517 Calling exit ...