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.0009151/0.0009151, allocations: 96.06 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001039/0.001039, allocations: 204.2 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002143/0.0002145, allocations: 4 kB / 306.7 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1177, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002448/0.1202, allocations: 1.532 MB / 359.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.1215, allocations: 0.5964 MB / 360.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.1217, allocations: 7.938 kB / 360.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.1218, allocations: 15.86 kB / 360.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.122, allocations: 35.88 kB / 360.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002568/0.1223, allocations: 47.89 kB / 360.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001785/0.1225, allocations: 115.7 kB / 360.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001713/0.1226, allocations: 53.48 kB / 360.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001582/0.1228, allocations: 63.7 kB / 360.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001253/0.1229, allocations: 59.7 kB / 360.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.96e-05/0.123, allocations: 7.938 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.841e-05/0.123, allocations: 19.98 kB / 360.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.01e-05/0.1231, allocations: 31.84 kB / 360.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002075/0.1233, allocations: 57.56 kB / 360.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.1235, allocations: 116 kB / 360.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1235, allocations: 0 / 360.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1235, allocations: 0 / 360.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.431e-06/0.1235, allocations: 0 / 360.9 MB, free: 11.01 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.001023/0.1246, allocations: 498.5 kB / 361.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.1246, allocations: 8.031 kB / 361.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001024/0.1247, allocations: 46.55 kB / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.1249, allocations: 39.7 kB / 361.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000267/0.1252, allocations: 222.7 kB / 361.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.1252, allocations: 16.22 kB / 361.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.726e-05/0.1252, allocations: 27.89 kB / 361.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003675/0.1256, allocations: 195.8 kB / 362 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.1256, allocations: 4 kB / 362 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.967e-05/0.1256, allocations: 11.98 kB / 362 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.1257, allocations: 4 kB / 362 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00031/0.126, allocations: 147.8 kB / 362.1 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.1271, allocations: 0.7897 MB / 362.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/0.1275, allocations: 173 kB / 363.1 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.033e-05/0.1276, allocations: 4 kB / 363.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002622/0.1279, allocations: 147.4 kB / 363.2 MB, free: 8.492 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.283e-06/0.1279, allocations: 4 kB / 363.2 MB, free: 8.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005848/0.1285, allocations: 266 kB / 363.5 MB, free: 8.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/0.1285, allocations: 77.11 kB / 363.6 MB, free: 8.129 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001964/0.1287, allocations: 207 kB / 363.8 MB, free: 7.918 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.674e-05/0.1288, allocations: 33.69 kB / 363.8 MB, free: 7.879 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002024/0.129, allocations: 136.1 kB / 363.9 MB, free: 7.742 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.185e-05/0.129, allocations: 47.44 kB / 364 MB, free: 7.695 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.052e-05/0.1291, allocations: 4 kB / 364 MB, free: 7.691 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002128/0.1293, allocations: 334.8 kB / 364.3 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.1294, allocations: 71.95 kB / 364.4 MB, free: 7.285 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.1296, allocations: 131.9 kB / 364.5 MB, free: 7.133 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.1298, allocations: 91.98 kB / 364.6 MB, free: 7.043 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1298, allocations: 0 / 364.6 MB, free: 7.043 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005011/0.1303, allocations: 253.2 kB / 364.9 MB, free: 6.789 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.1303, allocations: 10.92 kB / 364.9 MB, free: 6.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.1304, allocations: 3.938 kB / 364.9 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.1304, allocations: 4 kB / 364.9 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000164/0.1305, allocations: 35.92 kB / 364.9 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.1306, allocations: 3.984 kB / 364.9 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001671/0.1307, allocations: 39.98 kB / 364.9 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.1308, allocations: 11.94 kB / 365 MB, free: 6.684 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.0001311/0.1309, allocations: 145.7 kB / 365.1 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.389e-05/0.1309, allocations: 15.81 kB / 365.1 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000431/0.1314, allocations: 222.9 kB / 365.3 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1314, allocations: 4 kB / 365.3 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1314, allocations: 0 / 365.3 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.1314, allocations: 0 / 365.3 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002714/0.1317, allocations: 277.4 kB / 365.6 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1317, allocations: 0 / 365.6 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.1318, allocations: 19.98 kB / 365.6 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.1318, allocations: 3.984 kB / 365.6 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.1318, allocations: 4 kB / 365.6 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.1318, allocations: 4 kB / 365.6 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.1318, allocations: 3.938 kB / 365.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004223/0.1323, allocations: 247.3 kB / 365.9 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.128e-05/0.1323, allocations: 96.91 kB / 366 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.269e-05/0.1324, allocations: 4 kB / 366 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.1326, allocations: 23.98 kB / 366 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.538e-05/0.1326, allocations: 19.97 kB / 366 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/0.1326, allocations: 4 kB / 366 MB, free: 5.496 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001085/0.1327, allocations: 144.4 kB / 366.2 MB, free: 5.355 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1328, allocations: 0 / 366.2 MB, free: 5.355 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002584/0.133, allocations: 51.83 kB / 366.2 MB, free: 5.305 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.0007282/0.1338, allocations: 0.8475 MB / 367.1 MB, free: 4.418 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000362/0.1341, allocations: 186.6 kB / 367.3 MB, free: 4.238 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1341, allocations: 4.062 kB / 367.3 MB, free: 4.234 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001621/0.1343, allocations: 83.89 kB / 367.3 MB, free: 4.152 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.1346, allocations: 39.92 kB / 367.4 MB, free: 4.113 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002297/0.1369, allocations: 2.241 MB / 369.6 MB, free: 1.785 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.1373, allocations: 0.736 MB / 370.4 MB, free: 1.023 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001035/0.1374, allocations: 41.45 kB / 370.4 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.277e-05/0.1375, allocations: 55.42 kB / 370.4 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1375, allocations: 4 kB / 370.5 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1806/0.3181, allocations: 3.587 MB / 374 MB, free: 18.82 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001252/0.3183, allocations: 167.8 kB / 374.2 MB, free: 18.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.825/2.143, allocations: 4.844 kB / 374.2 MB, free: 18.57 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