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.0008327/0.0008328, allocations: 90.84 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008189/0.0008193, allocations: 194.4 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246 MB, free: 10.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002261/0.0002262, allocations: 8 kB / 306.8 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.117, allocations: 51.5 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001845/0.1189, allocations: 1.501 MB / 359.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.1199, allocations: 0.6315 MB / 360.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.877e-05/0.1201, allocations: 7.938 kB / 360.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.1202, allocations: 23.73 kB / 360.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001077/0.1203, allocations: 19.84 kB / 360.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002505/0.1206, allocations: 75.86 kB / 360.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002145/0.1208, allocations: 155.2 kB / 360.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.1209, allocations: 62.36 kB / 360.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001472/0.1211, allocations: 67.72 kB / 360.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.1212, allocations: 75.55 kB / 360.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.428e-05/0.1213, allocations: 8 kB / 360.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.486e-05/0.1213, allocations: 8 kB / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.683e-05/0.1214, allocations: 31.91 kB / 361 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.087e-05/0.1215, allocations: 57.58 kB / 361 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001525/0.1216, allocations: 120 kB / 361.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1216, allocations: 0 / 361.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1216, allocations: 0 / 361.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.1216, allocations: 0 / 361.1 MB, free: 10.91 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.0007723/0.1224, allocations: 0.4933 MB / 361.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.1225, allocations: 8.031 kB / 361.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.255e-05/0.1225, allocations: 50.55 kB / 361.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.1227, allocations: 39.7 kB / 361.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002392/0.1229, allocations: 226.7 kB / 361.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.123, allocations: 16 kB / 362 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.787e-05/0.123, allocations: 19.95 kB / 362 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000358/0.1234, allocations: 205.5 kB / 362.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.1234, allocations: 4 kB / 362.2 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.828e-05/0.1234, allocations: 8 kB / 362.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.847e-05/0.1234, allocations: 4 kB / 362.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003039/0.1238, allocations: 143.8 kB / 362.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009982/0.1248, allocations: 0.7973 MB / 363.1 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005871/0.1254, allocations: 214.6 kB / 363.3 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.1255, allocations: 64.83 kB / 363.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.648e-05/0.1256, allocations: 4 kB / 363.4 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002551/0.1258, allocations: 145 kB / 363.5 MB, free: 8.285 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.883e-06/0.1258, allocations: 4 kB / 363.5 MB, free: 8.281 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005629/0.1264, allocations: 253.2 kB / 363.8 MB, free: 8.027 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/0.1265, allocations: 85.11 kB / 363.9 MB, free: 7.926 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002124/0.1267, allocations: 222.8 kB / 364.1 MB, free: 7.699 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.1267, allocations: 29.7 kB / 364.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.635e-05/0.1268, allocations: 144.6 kB / 364.3 MB, free: 7.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.501e-05/0.1268, allocations: 31.62 kB / 364.3 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.243e-05/0.1269, allocations: 8 kB / 364.3 MB, free: 7.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.127, allocations: 330.8 kB / 364.6 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.1271, allocations: 71.89 kB / 364.7 MB, free: 7.078 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001915/0.1273, allocations: 137.6 kB / 364.8 MB, free: 6.914 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.1275, allocations: 88.16 kB / 364.9 MB, free: 6.828 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1275, allocations: 3.938 kB / 364.9 MB, free: 6.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004448/0.128, allocations: 265.1 kB / 365.2 MB, free: 6.559 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.128, allocations: 4 kB / 365.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.128, allocations: 4 kB / 365.2 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.128, allocations: 4 kB / 365.2 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.1282, allocations: 43.91 kB / 365.2 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.1282, allocations: 8.25 kB / 365.2 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.1284, allocations: 39.75 kB / 365.3 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.706e-05/0.1284, allocations: 12 kB / 365.3 MB, free: 6.445 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.0001317/0.1286, allocations: 148.7 kB / 365.4 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.856e-05/0.1286, allocations: 19.72 kB / 365.5 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000251/0.1289, allocations: 139 kB / 365.6 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1289, allocations: 0 / 365.6 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.1289, allocations: 4 kB / 365.6 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.1289, allocations: 0 / 365.6 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005885/0.1295, allocations: 482.2 kB / 366.1 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.1295, allocations: 4 kB / 366.1 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.1296, allocations: 23.92 kB / 366.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1296, allocations: 4 kB / 366.1 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.1297, allocations: 3.984 kB / 366.1 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.1297, allocations: 4 kB / 366.1 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1297, allocations: 0 / 366.1 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003964/0.1301, allocations: 299.9 kB / 366.4 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.122e-05/0.1301, allocations: 92.86 kB / 366.5 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.272e-05/0.1302, allocations: 8.172 kB / 366.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001602/0.1303, allocations: 19.98 kB / 366.5 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.374e-05/0.1304, allocations: 27.91 kB / 366.5 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.1304, allocations: 11.98 kB / 366.6 MB, free: 5.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001314/0.1306, allocations: 144.4 kB / 366.7 MB, free: 4.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1306, allocations: 0 / 366.7 MB, free: 4.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003357/0.1309, allocations: 39.91 kB / 366.7 MB, free: 4.891 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.0007426/0.1317, allocations: 0.8492 MB / 367.6 MB, free: 4.012 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003897/0.1321, allocations: 176.2 kB / 367.8 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.1321, allocations: 0 / 367.8 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001786/0.1323, allocations: 83.89 kB / 367.8 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000352/0.1326, allocations: 27.94 kB / 367.9 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.1345, allocations: 1.185 MB / 369.1 MB, free: 2.465 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.1348, allocations: 0.7286 MB / 369.8 MB, free: 1.711 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001112/0.1349, allocations: 37.53 kB / 369.8 MB, free: 1.676 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.135, allocations: 59.41 kB / 369.9 MB, free: 1.617 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.135, allocations: 0 / 369.9 MB, free: 1.617 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1941/0.3291, allocations: 3.593 MB / 373.5 MB, free: 18.75 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001477/0.3293, allocations: 170.6 kB / 373.6 MB, free: 18.51 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.873/2.202, allocations: 7.875 kB / 373.6 MB, free: 18.5 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