Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001586/0.001591, allocations: 188.1 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.483/2.483, allocations: 205.4 MB / 222.5 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001103/0.001102, allocations: 90.92 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005357/0.0005359, allocations: 8 kB / 327 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1097, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002945/0.1127, allocations: 1.489 MB / 376.1 MB, free: 13.83 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001556/0.1143, allocations: 0.6207 MB / 376.7 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.1144, allocations: 0 / 376.7 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.1146, allocations: 15.86 kB / 376.8 MB, free: 13.19 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001683/0.1148, allocations: 39.88 kB / 376.8 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003222/0.1151, allocations: 59.81 kB / 376.9 MB, free: 13.09 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002503/0.1154, allocations: 111.7 kB / 377 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002122/0.1156, allocations: 50.42 kB / 377 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.1158, allocations: 63.7 kB / 377.1 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.1159, allocations: 71.61 kB / 377.1 MB, free: 12.79 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.211e-05/0.116, allocations: 8 kB / 377.1 MB, free: 12.79 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.416e-05/0.1161, allocations: 8 kB / 377.2 MB, free: 12.78 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.504e-05/0.1161, allocations: 31.84 kB / 377.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.212e-05/0.1162, allocations: 53.62 kB / 377.2 MB, free: 12.69 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002294/0.1165, allocations: 120 kB / 377.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1165, allocations: 0 / 377.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.298e-06/0.1165, allocations: 0 / 377.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.1165, allocations: 3.938 kB / 377.4 MB, free: 12.57 MB / 282.7 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.001181/0.1177, allocations: 490.6 kB / 377.8 MB, free: 12.04 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.1178, allocations: 12.03 kB / 377.9 MB, free: 12.03 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.076e-05/0.1178, allocations: 46.55 kB / 377.9 MB, free: 11.97 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.481e-05/0.1179, allocations: 27.72 kB / 377.9 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003518/0.1183, allocations: 234.6 kB / 378.2 MB, free: 11.68 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.949e-05/0.1183, allocations: 16 kB / 378.2 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.559e-05/0.1184, allocations: 16 kB / 378.2 MB, free: 11.64 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005791/0.119, allocations: 209.1 kB / 378.4 MB, free: 11.42 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.119, allocations: 4 kB / 378.4 MB, free: 11.42 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.222e-05/0.119, allocations: 7.984 kB / 378.4 MB, free: 11.41 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.01e-05/0.1191, allocations: 11.94 kB / 378.4 MB, free: 11.4 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005927/0.1197, allocations: 139.9 kB / 378.5 MB, free: 11.26 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.1213, allocations: 0.801 MB / 379.3 MB, free: 10.4 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.1224, allocations: 210.6 kB / 379.6 MB, free: 10.18 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.436e-05/0.1224, allocations: 0 / 379.6 MB, free: 10.18 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004203/0.1229, allocations: 157.7 kB / 379.7 MB, free: 10.01 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 2.034e-06/0.1229, allocations: 0 / 379.7 MB, free: 10.01 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009998/0.1239, allocations: 261.2 kB / 380 MB, free: 9.75 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.318e-05/0.124, allocations: 81.11 kB / 380 MB, free: 9.652 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003156/0.1243, allocations: 222.6 kB / 380.3 MB, free: 9.422 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.546e-05/0.1244, allocations: 29.7 kB / 380.3 MB, free: 9.387 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.1245, allocations: 198.8 kB / 380.5 MB, free: 9.191 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.091e-05/0.1246, allocations: 31.64 kB / 380.5 MB, free: 9.16 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.792e-05/0.1246, allocations: 8 kB / 380.5 MB, free: 9.152 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.1248, allocations: 326.8 kB / 380.8 MB, free: 8.824 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002775/0.1251, allocations: 67.95 kB / 380.9 MB, free: 8.758 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003525/0.1255, allocations: 146 kB / 381.1 MB, free: 8.586 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002986/0.1258, allocations: 79.97 kB / 381.1 MB, free: 8.508 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1258, allocations: 0 / 381.1 MB, free: 8.508 MB / 282.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007756/0.1266, allocations: 253.3 kB / 381.4 MB, free: 8.254 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.1266, allocations: 8 kB / 381.4 MB, free: 8.246 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.1266, allocations: 4 kB / 381.4 MB, free: 8.242 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.1267, allocations: 4 kB / 381.4 MB, free: 8.238 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003154/0.127, allocations: 39.92 kB / 381.4 MB, free: 8.199 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.57e-05/0.127, allocations: 8.297 kB / 381.4 MB, free: 8.191 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003028/0.1273, allocations: 43.83 kB / 381.5 MB, free: 8.148 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.909e-05/0.1274, allocations: 8 kB / 381.5 MB, free: 8.141 MB / 282.7 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.000228/0.1276, allocations: 152 kB / 381.6 MB, free: 7.984 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.399e-05/0.1277, allocations: 19.8 kB / 381.7 MB, free: 7.965 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003838/0.1281, allocations: 135 kB / 381.8 MB, free: 7.824 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.1281, allocations: 0 / 381.8 MB, free: 7.824 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.1281, allocations: 480 / 381.8 MB, free: 7.824 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.1281, allocations: 0 / 381.8 MB, free: 7.824 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000943/0.1291, allocations: 498.1 kB / 382.3 MB, free: 7.281 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1291, allocations: 0 / 382.3 MB, free: 7.281 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002036/0.1293, allocations: 19.98 kB / 382.3 MB, free: 7.262 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.264e-06/0.1293, allocations: 4 kB / 382.3 MB, free: 7.258 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.1293, allocations: 0 / 382.3 MB, free: 7.258 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.1294, allocations: 0 / 382.3 MB, free: 7.258 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1294, allocations: 4 kB / 382.3 MB, free: 7.254 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007034/0.1301, allocations: 313.5 kB / 382.6 MB, free: 6.926 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.1302, allocations: 100.9 kB / 382.7 MB, free: 6.809 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.184e-05/0.1303, allocations: 0 / 382.7 MB, free: 6.809 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002995/0.1306, allocations: 27.97 kB / 382.7 MB, free: 6.781 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.1307, allocations: 23.92 kB / 382.8 MB, free: 6.758 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.71e-05/0.1307, allocations: 7.938 kB / 382.8 MB, free: 6.75 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001879/0.1309, allocations: 148.4 kB / 382.9 MB, free: 6.605 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.1309, allocations: 4 kB / 382.9 MB, free: 6.602 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000457/0.1314, allocations: 39.91 kB / 383 MB, free: 6.562 MB / 282.7 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.001157/0.1326, allocations: 0.9123 MB / 383.9 MB, free: 5.617 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006701/0.1333, allocations: 176.2 kB / 384 MB, free: 5.445 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1333, allocations: 4 kB / 384 MB, free: 5.441 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003244/0.1336, allocations: 83.89 kB / 384.1 MB, free: 5.359 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003744/0.134, allocations: 27.89 kB / 384.2 MB, free: 5.332 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00357/0.1376, allocations: 2.565 MB / 386.7 MB, free: 2.672 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004371/0.1381, allocations: 0.7403 MB / 387.5 MB, free: 1.906 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001957/0.1383, allocations: 59.36 kB / 387.5 MB, free: 1.848 MB / 282.7 MB Notification: Performance of SimCode: time 1.392e-06/0.1383, allocations: 0 / 387.5 MB, free: 1.848 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.057/3.195, allocations: 3.142 MB / 390.7 MB, free: 19.78 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat