Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008496/0.0008497, allocations: 96.42 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001041/0.001041, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002574/0.0002577, allocations: 8 kB / 306.8 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1119, allocations: 51.48 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001923/0.1139, allocations: 1.54 MB / 359.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.1149, allocations: 0.6002 MB / 360.4 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.062e-05/0.115, allocations: 4 kB / 360.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.1152, allocations: 15.8 kB / 360.4 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001212/0.1153, allocations: 31.72 kB / 360.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002224/0.1155, allocations: 55.95 kB / 360.5 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001906/0.1157, allocations: 143.4 kB / 360.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.1159, allocations: 57.61 kB / 360.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001385/0.116, allocations: 63.72 kB / 360.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.1162, allocations: 67.61 kB / 360.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.025e-05/0.1162, allocations: 4 kB / 360.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.872e-05/0.1163, allocations: 20 kB / 360.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.131e-05/0.1163, allocations: 27.91 kB / 360.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.691e-05/0.1164, allocations: 53.58 kB / 361 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001553/0.1165, allocations: 116 kB / 361.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1166, allocations: 0 / 361.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1166, allocations: 3.938 kB / 361.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1166, allocations: 4 kB / 361.1 MB, free: 11.17 MB / 302.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.0008451/0.1174, allocations: 494.6 kB / 361.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.1175, allocations: 8.031 kB / 361.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.736e-05/0.1175, allocations: 50.48 kB / 361.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001426/0.1177, allocations: 39.72 kB / 361.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002452/0.1179, allocations: 230.6 kB / 361.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.118, allocations: 12.23 kB / 361.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.441e-05/0.118, allocations: 16 kB / 361.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003371/0.1183, allocations: 199.8 kB / 362.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.1184, allocations: 4 kB / 362.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.1184, allocations: 4 kB / 362.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.918e-05/0.1184, allocations: 4 kB / 362.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002953/0.1187, allocations: 154.6 kB / 362.3 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.1198, allocations: 0.7975 MB / 363.1 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003066/0.1201, allocations: 161.1 kB / 363.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.1202, allocations: 81.78 kB / 363.3 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.989e-05/0.1203, allocations: 8.156 kB / 363.3 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002509/0.1205, allocations: 157 kB / 363.5 MB, free: 8.562 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.1205, allocations: 7.875 kB / 363.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005483/0.1211, allocations: 265.3 kB / 363.7 MB, free: 8.289 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/0.1212, allocations: 85.09 kB / 363.8 MB, free: 8.188 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000184/0.1213, allocations: 203 kB / 364 MB, free: 7.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.1214, allocations: 29.7 kB / 364 MB, free: 7.945 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.275e-05/0.1215, allocations: 144.1 kB / 364.2 MB, free: 7.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.069e-05/0.1215, allocations: 39.45 kB / 364.2 MB, free: 7.762 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.347e-06/0.1216, allocations: 0 / 364.2 MB, free: 7.762 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1217, allocations: 334.8 kB / 364.6 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.1218, allocations: 67.95 kB / 364.6 MB, free: 7.359 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001829/0.122, allocations: 145.9 kB / 364.8 MB, free: 7.195 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001559/0.1222, allocations: 75.97 kB / 364.8 MB, free: 7.121 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1222, allocations: 0 / 364.8 MB, free: 7.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004287/0.1226, allocations: 261.1 kB / 365.1 MB, free: 6.859 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.1227, allocations: 4 kB / 365.1 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1227, allocations: 4 kB / 365.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.1227, allocations: 4 kB / 365.1 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001805/0.1229, allocations: 40.09 kB / 365.1 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.1229, allocations: 4 kB / 365.1 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/0.1231, allocations: 39.78 kB / 365.2 MB, free: 6.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.1231, allocations: 4 kB / 365.2 MB, free: 6.762 MB / 302.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,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001308/0.1232, allocations: 145.7 kB / 365.3 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.545e-05/0.1233, allocations: 19.81 kB / 365.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004347/0.1237, allocations: 214.9 kB / 365.6 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.1237, allocations: 0 / 365.6 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1237, allocations: 0 / 365.6 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.1237, allocations: 4 kB / 365.6 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002562/0.124, allocations: 273.4 kB / 365.8 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.124, allocations: 4 kB / 365.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.1241, allocations: 27.92 kB / 365.9 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.1241, allocations: 96 / 365.9 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.1241, allocations: 7.938 kB / 365.9 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.1242, allocations: 4.859 kB / 365.9 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1242, allocations: 3.984 kB / 365.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003851/0.1245, allocations: 239.9 kB / 366.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.797e-05/0.1246, allocations: 92.91 kB / 366.2 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.383e-05/0.1247, allocations: 11.94 kB / 366.2 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.1248, allocations: 23.92 kB / 366.2 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.064e-05/0.1249, allocations: 19.97 kB / 366.3 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.11e-05/0.1249, allocations: 4 kB / 366.3 MB, free: 5.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001344/0.125, allocations: 152.4 kB / 366.4 MB, free: 5.434 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.125, allocations: 0 / 366.4 MB, free: 5.434 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002489/0.1253, allocations: 39.84 kB / 366.4 MB, free: 5.395 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006825/0.126, allocations: 0.7731 MB / 367.2 MB, free: 4.586 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003607/0.1263, allocations: 180 kB / 367.4 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1264, allocations: 0 / 367.4 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000171/0.1265, allocations: 87.89 kB / 367.5 MB, free: 4.324 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.1269, allocations: 43.86 kB / 367.5 MB, free: 4.281 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001737/0.1286, allocations: 1.19 MB / 368.7 MB, free: 3.016 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.129, allocations: 0.7437 MB / 369.5 MB, free: 2.246 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001116/0.1292, allocations: 33.52 kB / 369.5 MB, free: 2.215 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.1293, allocations: 59.42 kB / 369.6 MB, free: 2.156 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1293, allocations: 0 / 369.6 MB, free: 2.156 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1964/0.3256, allocations: 3.609 MB / 373.2 MB, free: 19.05 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001991/0.3259, allocations: 172.3 kB / 373.3 MB, free: 18.81 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.822/2.148, allocations: 1.219 kB / 373.3 MB, free: 18.81 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat does not exist to compare? outputFormat=mat