Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008659/0.0008659, allocations: 84.88 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009755/0.0009755, allocations: 180.6 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 223.3 MB / 241.2 MB, free: 5.262 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002647/0.0002647, allocations: 6.406 kB / 300.9 MB, free: 5.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1064, allocations: 50.43 MB / 351.3 MB, free: 11.33 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001819/0.1083, allocations: 1.495 MB / 352.8 MB, free: 9.816 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009533/0.1092, allocations: 0.573 MB / 353.4 MB, free: 9.242 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.1094, allocations: 7.938 kB / 353.4 MB, free: 9.234 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.1095, allocations: 27.8 kB / 353.4 MB, free: 9.207 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000128/0.1096, allocations: 23.78 kB / 353.5 MB, free: 9.184 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002596/0.1099, allocations: 59.94 kB / 353.5 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001997/0.1101, allocations: 155.5 kB / 353.7 MB, free: 8.973 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.1103, allocations: 58.25 kB / 353.7 MB, free: 8.914 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.1104, allocations: 59.72 kB / 353.8 MB, free: 8.855 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.1105, allocations: 71.61 kB / 353.9 MB, free: 8.785 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.113e-05/0.1106, allocations: 7.938 kB / 353.9 MB, free: 8.777 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.97e-05/0.1106, allocations: 16 kB / 353.9 MB, free: 8.762 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.042e-05/0.1107, allocations: 31.91 kB / 353.9 MB, free: 8.73 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.508e-05/0.1107, allocations: 49.58 kB / 354 MB, free: 8.676 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001424/0.1109, allocations: 119.8 kB / 354.1 MB, free: 8.559 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1109, allocations: 4 kB / 354.1 MB, free: 8.555 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1109, allocations: 0 / 354.1 MB, free: 8.555 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.1109, allocations: 0 / 354.1 MB, free: 8.555 MB / 286.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.0007731/0.1117, allocations: 490.5 kB / 354.6 MB, free: 8.027 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1117, allocations: 8.031 kB / 354.6 MB, free: 8.02 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.65e-05/0.1118, allocations: 58.5 kB / 354.6 MB, free: 7.953 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/0.1118, allocations: 15.81 kB / 354.6 MB, free: 7.938 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002329/0.1121, allocations: 234.6 kB / 354.9 MB, free: 7.668 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.1121, allocations: 12 kB / 354.9 MB, free: 7.656 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.594e-05/0.1121, allocations: 19.94 kB / 354.9 MB, free: 7.637 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003572/0.1125, allocations: 213.5 kB / 355.1 MB, free: 7.406 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.1125, allocations: 0 / 355.1 MB, free: 7.406 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.1126, allocations: 4 kB / 355.1 MB, free: 7.402 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.125e-05/0.1126, allocations: 15.94 kB / 355.1 MB, free: 7.387 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002963/0.1129, allocations: 147.8 kB / 355.3 MB, free: 7.242 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.1139, allocations: 0.7934 MB / 356.1 MB, free: 6.387 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000589/0.1145, allocations: 218.6 kB / 356.3 MB, free: 6.164 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.1147, allocations: 64.81 kB / 356.3 MB, free: 6.098 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.477e-05/0.1147, allocations: 7.953 kB / 356.4 MB, free: 6.09 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000262/0.115, allocations: 159.3 kB / 356.5 MB, free: 5.918 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.462e-06/0.115, allocations: 0 / 356.5 MB, free: 5.918 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005806/0.1156, allocations: 249.3 kB / 356.7 MB, free: 5.668 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.746e-05/0.1157, allocations: 89.11 kB / 356.8 MB, free: 5.562 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000203/0.1159, allocations: 218.7 kB / 357 MB, free: 5.34 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.1159, allocations: 33.7 kB / 357.1 MB, free: 5.301 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.92e-05/0.116, allocations: 136.2 kB / 357.2 MB, free: 5.164 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.563e-05/0.116, allocations: 35.62 kB / 357.3 MB, free: 5.129 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.123e-05/0.1161, allocations: 4 kB / 357.3 MB, free: 5.125 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1162, allocations: 330.8 kB / 357.6 MB, free: 4.793 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.1163, allocations: 71.95 kB / 357.6 MB, free: 4.723 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001804/0.1165, allocations: 136.5 kB / 357.8 MB, free: 4.559 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.1167, allocations: 83.89 kB / 357.9 MB, free: 4.477 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1167, allocations: 0 / 357.9 MB, free: 4.477 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004399/0.1172, allocations: 265 kB / 358.1 MB, free: 4.211 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.1172, allocations: 8 kB / 358.1 MB, free: 4.203 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1172, allocations: 0 / 358.1 MB, free: 4.203 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.1172, allocations: 4 kB / 358.1 MB, free: 4.199 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.1174, allocations: 48.17 kB / 358.2 MB, free: 4.152 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.1174, allocations: 3.984 kB / 358.2 MB, free: 4.148 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.1176, allocations: 35.83 kB / 358.2 MB, free: 4.113 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.1176, allocations: 11.94 kB / 358.2 MB, free: 4.102 MB / 286.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.0001342/0.1178, allocations: 148 kB / 358.4 MB, free: 3.949 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.398e-05/0.1178, allocations: 19.77 kB / 358.4 MB, free: 3.93 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002502/0.1181, allocations: 135.4 kB / 358.5 MB, free: 3.785 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.1181, allocations: 4 kB / 358.5 MB, free: 3.781 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.1181, allocations: 0 / 358.5 MB, free: 3.781 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.1181, allocations: 96 / 358.5 MB, free: 3.781 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005715/0.1187, allocations: 498.1 kB / 359 MB, free: 3.238 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1187, allocations: 0 / 359 MB, free: 3.238 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.1188, allocations: 19.98 kB / 359 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.634e-06/0.1188, allocations: 0 / 359 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.1188, allocations: 4 kB / 359 MB, free: 3.215 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.1188, allocations: 0 / 359 MB, free: 3.215 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1188, allocations: 320 / 359 MB, free: 3.215 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003984/0.1192, allocations: 300 kB / 359.3 MB, free: 2.902 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.614e-05/0.1193, allocations: 104.8 kB / 359.4 MB, free: 2.781 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.316e-05/0.1193, allocations: 8 kB / 359.4 MB, free: 2.773 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.1195, allocations: 19.98 kB / 359.5 MB, free: 2.754 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.682e-05/0.1196, allocations: 27.95 kB / 359.5 MB, free: 2.727 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-05/0.1196, allocations: 11.94 kB / 359.5 MB, free: 2.715 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001112/0.1198, allocations: 136.6 kB / 359.6 MB, free: 2.582 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1198, allocations: 0 / 359.6 MB, free: 2.582 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002938/0.1201, allocations: 43.94 kB / 359.7 MB, free: 2.539 MB / 286.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.0007621/0.1208, allocations: 0.8446 MB / 360.5 MB, free: 1.668 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003858/0.1212, allocations: 175.8 kB / 360.7 MB, free: 1.496 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1212, allocations: 0 / 360.7 MB, free: 1.496 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.1214, allocations: 79.89 kB / 360.8 MB, free: 1.418 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003348/0.1218, allocations: 28.48 kB / 360.8 MB, free: 1.391 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001812/0.1236, allocations: 1.185 MB / 362 MB, free: 132 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.1239, allocations: 0.7324 MB / 362.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001053/0.124, allocations: 37.52 kB / 362.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.1242, allocations: 63.41 kB / 362.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1242, allocations: 0 / 362.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01406/0.1382, allocations: 3.589 MB / 366.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/0.1384, allocations: 172.9 kB / 366.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.771/1.909, allocations: 0 / 366.6 MB, free: 11.57 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat does not exist to compare? outputFormat=mat