Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.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.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001105/0.001105, allocations: 94.72 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001262/0.001262, allocations: 205.6 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002547/0.000255, allocations: 4 kB / 306.7 MB, free: 1.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1164, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001901/0.1183, allocations: 1.505 MB / 359.7 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.1194, allocations: 0.6276 MB / 360.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.247e-05/0.1195, allocations: 3.938 kB / 360.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.562e-05/0.1196, allocations: 15.86 kB / 360.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001289/0.1197, allocations: 39.88 kB / 360.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002449/0.12, allocations: 63.86 kB / 360.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001832/0.1202, allocations: 115.5 kB / 360.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.1204, allocations: 58.39 kB / 360.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.1205, allocations: 63.64 kB / 360.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.1207, allocations: 67.69 kB / 360.7 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.327e-05/0.1207, allocations: 7.984 kB / 360.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.39e-05/0.1208, allocations: 12 kB / 360.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.099e-05/0.1208, allocations: 35.78 kB / 360.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.691e-05/0.1209, allocations: 57.58 kB / 360.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000159/0.1211, allocations: 124 kB / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.1211, allocations: 0 / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1211, allocations: 0 / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1211, allocations: 4 kB / 361 MB, free: 10.98 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0008248/0.1219, allocations: 486.4 kB / 361.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.122, allocations: 11.97 kB / 361.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.822e-05/0.122, allocations: 58.55 kB / 361.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.1222, allocations: 31.7 kB / 361.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002586/0.1224, allocations: 230.7 kB / 361.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.1225, allocations: 12 kB / 361.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.558e-05/0.1225, allocations: 19.95 kB / 361.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000368/0.1229, allocations: 209.5 kB / 362 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/0.1229, allocations: 0 / 362 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.107e-05/0.1229, allocations: 8 kB / 362 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.05e-05/0.1229, allocations: 7.984 kB / 362 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003164/0.1233, allocations: 147.8 kB / 362.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.1243, allocations: 0.7973 MB / 363 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006136/0.125, allocations: 210.7 kB / 363.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.636e-05/0.125, allocations: 7.984 kB / 363.2 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/0.1253, allocations: 149 kB / 363.3 MB, free: 8.418 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.763e-06/0.1253, allocations: 0 / 363.3 MB, free: 8.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005595/0.1259, allocations: 257.3 kB / 363.6 MB, free: 8.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.114e-05/0.1259, allocations: 81.09 kB / 363.6 MB, free: 8.062 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001914/0.1261, allocations: 214.8 kB / 363.9 MB, free: 7.844 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.1261, allocations: 33.7 kB / 363.9 MB, free: 7.805 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.801e-05/0.1262, allocations: 148.4 kB / 364 MB, free: 7.656 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.273e-05/0.1263, allocations: 31.62 kB / 364.1 MB, free: 7.625 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.293e-05/0.1263, allocations: 11.94 kB / 364.1 MB, free: 7.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.1264, allocations: 330.8 kB / 364.4 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001609/0.1266, allocations: 68.33 kB / 364.5 MB, free: 7.215 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.1268, allocations: 141.6 kB / 364.6 MB, free: 7.047 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001825/0.127, allocations: 83.91 kB / 364.7 MB, free: 6.965 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.127, allocations: 3.938 kB / 364.7 MB, free: 6.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004534/0.1274, allocations: 261.1 kB / 364.9 MB, free: 6.699 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.1275, allocations: 4 kB / 365 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.1275, allocations: 4 kB / 365 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.1275, allocations: 4 kB / 365 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.1277, allocations: 43.91 kB / 365 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.1277, allocations: 4 kB / 365 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/0.1279, allocations: 40.08 kB / 365 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.1279, allocations: 11.98 kB / 365.1 MB, free: 6.59 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001379/0.128, allocations: 144.7 kB / 365.2 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.883e-05/0.1281, allocations: 23.7 kB / 365.2 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002639/0.1283, allocations: 139 kB / 365.4 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1284, allocations: 0 / 365.4 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1284, allocations: 0 / 365.4 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.431e-06/0.1284, allocations: 4 kB / 365.4 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005823/0.129, allocations: 474.3 kB / 365.8 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.129, allocations: 0 / 365.8 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.1291, allocations: 23.92 kB / 365.8 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.1291, allocations: 8 kB / 365.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.1291, allocations: 3.984 kB / 365.9 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.1291, allocations: 320 / 365.9 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1292, allocations: 4 kB / 365.9 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004231/0.1296, allocations: 312 kB / 366.2 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.381e-05/0.1296, allocations: 104.8 kB / 366.3 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.921e-05/0.1297, allocations: 0 / 366.3 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.1299, allocations: 27.97 kB / 366.3 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.813e-05/0.1299, allocations: 23.91 kB / 366.3 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.13, allocations: 8 kB / 366.3 MB, free: 5.203 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001201/0.1301, allocations: 156.5 kB / 366.5 MB, free: 5.051 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1301, allocations: 0 / 366.5 MB, free: 5.051 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002966/0.1304, allocations: 43.84 kB / 366.5 MB, free: 5.008 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: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007546/0.1312, allocations: 0.9206 MB / 367.4 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003775/0.1316, allocations: 176 kB / 367.6 MB, free: 3.879 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1316, allocations: 0 / 367.6 MB, free: 3.879 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001701/0.1317, allocations: 83.89 kB / 367.7 MB, free: 3.797 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002462/0.132, allocations: 28.22 kB / 367.7 MB, free: 3.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002277/0.1343, allocations: 2.513 MB / 370.2 MB, free: 1.164 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003252/0.1346, allocations: 0.7403 MB / 371 MB, free: 408 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.1347, allocations: 37.52 kB / 371 MB, free: 372 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.744e-05/0.1348, allocations: 59.42 kB / 371.1 MB, free: 312 kB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1348, allocations: 0 / 371.1 MB, free: 312 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2013/0.3362, allocations: 3.578 MB / 374.7 MB, free: 18.89 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/0.3364, allocations: 183.2 kB / 374.8 MB, free: 18.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.815/2.151, allocations: 0 / 374.8 MB, free: 18.64 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat