Running command: "" <> buildModelFMU(PNlib.Examples.ConTest.SinglePC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SinglePC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PNlib): time 2.11/2.11, allocations: 222.8 MB / 235 MB, free: 9.25 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.01e-05/3.036e-05, allocations: 0 / 289.7 MB, free: 3.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1142, allocations: 51.69 MB / 341.4 MB, free: 200 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4316/0.5458, allocations: 79.16 MB / 420.5 MB, free: 11.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/0.5462, allocations: 67.95 kB / 420.6 MB, free: 11.05 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04337/0.5895, allocations: 9.369 MB / 430 MB, free: 1.664 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.5896, allocations: 3.938 kB / 430 MB, free: 1.66 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.24e-05/0.5896, allocations: 4 kB / 430 MB, free: 1.656 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001382/0.591, allocations: 0.8934 MB / 430.9 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.5911, allocations: 8.031 kB / 430.9 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001343/0.5912, allocations: 66.55 kB / 430.9 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009302/0.5922, allocations: 115.5 kB / 431 MB, free: 472 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004328/0.5926, allocations: 266.3 kB / 431.3 MB, free: 164 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.538e-05/0.5927, allocations: 16 kB / 431.3 MB, free: 148 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.448e-05/0.5928, allocations: 24 kB / 431.3 MB, free: 124 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006843/0.5934, allocations: 342.6 kB / 431.7 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.5935, allocations: 4 kB / 431.7 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.357e-05/0.5935, allocations: 12 kB / 431.7 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.5936, allocations: 8 kB / 431.7 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003948/0.594, allocations: 136 kB / 431.8 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002077/0.5961, allocations: 1.616 MB / 433.4 MB, free: 13.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004455/0.5965, allocations: 273 kB / 433.7 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003051/0.5968, allocations: 196.3 kB / 433.9 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.914e-05/0.5969, allocations: 16.11 kB / 433.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005062/0.5975, allocations: 302 kB / 434.2 MB, free: 12.98 MB / 362.7 MB Notification: Performance of pre-optimization done (n=47): time 3.397e-06/0.5975, allocations: 0 / 434.2 MB, free: 12.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.001055/0.5985, allocations: 0.5583 MB / 434.8 MB, free: 12.37 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002818/0.5988, allocations: 488.9 kB / 435.3 MB, free: 11.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003252/0.5992, allocations: 220.8 kB / 435.5 MB, free: 11.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001025/0.5993, allocations: 57.81 kB / 435.5 MB, free: 11.51 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.5994, allocations: 144.7 kB / 435.7 MB, free: 11.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/0.5996, allocations: 106.7 kB / 435.8 MB, free: 11.26 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.453e-05/0.5997, allocations: 12 kB / 435.8 MB, free: 11.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.5998, allocations: 350.8 kB / 436.1 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003747/0.6002, allocations: 141.2 kB / 436.3 MB, free: 10.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005631/0.6008, allocations: 380.4 kB / 436.6 MB, free: 10.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006938/0.6015, allocations: 0.489 MB / 437.1 MB, free: 9.723 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.6015, allocations: 4 kB / 437.1 MB, free: 9.719 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001847/0.6034, allocations: 0.9001 MB / 438 MB, free: 8.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002468/0.6037, allocations: 301 kB / 438.3 MB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.862e-05/0.6037, allocations: 11.94 kB / 438.3 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.677e-05/0.6038, allocations: 15.98 kB / 438.3 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004269/0.6042, allocations: 76.52 kB / 438.4 MB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.538e-05/0.6042, allocations: 15.94 kB / 438.4 MB, free: 8.277 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004149/0.6047, allocations: 59.58 kB / 438.5 MB, free: 8.219 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.6048, allocations: 35.98 kB / 438.5 MB, free: 8.184 MB / 362.7 MB Warning: Assuming fixed start value for the following 18 variables: P1.disMarksOut.anytrue:DISCRETE(fixed = false protected = true ) type: Boolean P1.disMarksIn.anytrue:DISCRETE(fixed = false protected = true ) type: Boolean P1.enableIn.arcWeightSum:DISCRETE(fixed = false protected = true ) "arc weight sum" type: Real P1.enableIn.nremTAin:DISCRETE(fixed = false protected = true ) "number of remaining active input transitions" type: Integer P1.enableIn.nTAin:DISCRETE(fixed = false protected = true ) "number ofactive input transitions" type: Integer P1.enableIn.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P1.enableIn.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P1.enableIn.sumEnablingProbTAin:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P1.enableIn.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P1.enableIn.Index:DISCRETE(fixed = false protected = true ) "priority Index" type: Integer P1.enableOut.arcWeightSum:DISCRETE(fixed = false protected = true ) "arc weight sum" type: Real P1.enableOut.nremTAout:DISCRETE(fixed = false protected = true ) "number of remaining active output transitions" type: Integer P1.enableOut.nTAout:DISCRETE(fixed = false protected = true ) "number of active output transitions" type: Integer P1.enableOut.k:DISCRETE(fixed = false protected = true ) "iteration index" type: Integer P1.enableOut.posTE:DISCRETE(fixed = false protected = true ) "possible enabled transition" type: Integer P1.enableOut.sumEnablingProbTAout:DISCRETE(fixed = false protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P1.enableOut.endWhile:DISCRETE(fixed = false protected = true ) type: Boolean P1.enableOut.Index:DISCRETE(fixed = false protected = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 71 ($whenCondition3,P1.disMarksInOut,$PRE.P1.disMarksOut.anytrue,$PRE.P1.disMarksIn.anytrue,P1.disMarksIn.anytrue,P1.disMarksIn.numtrue,P1.disMarksOut.anytrue,P1.disMarksOut.numtrue,P1.emptying.anytrue,P1.emptying.numtrue,P1.feeding.anytrue,P1.feeding.numtrue,$PRE.P1.enableIn.arcWeightSum,P1.enableIn.arcWeightSum,$PRE.P1.enableIn.nremTAin,P1.enableIn.nremTAin,$PRE.P1.enableIn.nTAin,P1.enableIn.nTAin,$PRE.P1.enableIn.k,P1.enableIn.k,$PRE.P1.enableIn.posTE,P1.enableIn.posTE,$PRE.P1.enableIn.state128[1],P1.enableIn.state128[1],$PRE.P1.enableIn.state128[2],P1.enableIn.state128[2],$PRE.P1.enableIn.state128[3],P1.enableIn.state128[3],$PRE.P1.enableIn.state128[4],P1.enableIn.state128[4],$PRE.P1.enableIn.randNum,P1.enableIn.randNum,$PRE.P1.enableIn.sumEnablingProbTAin,P1.enableIn.sumEnablingProbTAin,$PRE.P1.enableIn.endWhile,P1.enableIn.endWhile,$PRE.P1.enableIn.Index,P1.enableIn.Index,$whenCondition2,P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,$PRE.P1.enableOut.arcWeightSum,P1.enableOut.arcWeightSum,$PRE.P1.enableOut.nremTAout,P1.enableOut.nremTAout,$PRE.P1.enableOut.nTAout,P1.enableOut.nTAout,$PRE.P1.enableOut.k,P1.enableOut.k,$PRE.P1.enableOut.posTE,P1.enableOut.posTE,$PRE.P1.enableOut.state128[1],P1.enableOut.state128[1],$PRE.P1.enableOut.state128[2],P1.enableOut.state128[2],$PRE.P1.enableOut.state128[3],P1.enableOut.state128[3],$PRE.P1.enableOut.state128[4],P1.enableOut.state128[4],$PRE.P1.enableOut.randNum,P1.enableOut.randNum,$PRE.P1.enableOut.sumEnablingProbTAout,P1.enableOut.sumEnablingProbTAout,$PRE.P1.enableOut.endWhile,P1.enableOut.endWhile,$PRE.P1.enableOut.Index,P1.enableOut.Index,$whenCondition1,P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.reStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 10 * 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.0006308/0.6054, allocations: 490.7 kB / 439 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.6055, allocations: 39.81 kB / 439 MB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005906/0.6062, allocations: 254.8 kB / 439.3 MB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.6062, allocations: 0 / 439.3 MB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/0.6062, allocations: 7.953 kB / 439.3 MB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.6062, allocations: 0 / 439.3 MB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001197/0.6074, allocations: 0.6771 MB / 440 MB, free: 6.586 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.6074, allocations: 4 kB / 440 MB, free: 6.582 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001645/0.6076, allocations: 15.98 kB / 440 MB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.236e-06/0.6076, allocations: 7.938 kB / 440 MB, free: 6.559 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.094e-05/0.6077, allocations: 27.94 kB / 440 MB, free: 6.531 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.6077, allocations: 0 / 440 MB, free: 6.531 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.6077, allocations: 4 kB / 440 MB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001828/0.6096, allocations: 1.02 MB / 441.1 MB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.6097, allocations: 116.7 kB / 441.2 MB, free: 5.277 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001879/0.6099, allocations: 47.98 kB / 441.2 MB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002782/0.6102, allocations: 23.92 kB / 441.2 MB, free: 5.207 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.372e-05/0.6103, allocations: 35.98 kB / 441.3 MB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-05/0.6104, allocations: 23.98 kB / 441.3 MB, free: 5.148 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002281/0.6106, allocations: 153.4 kB / 441.5 MB, free: 4.996 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.6106, allocations: 0 / 441.5 MB, free: 4.996 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001042/0.6117, allocations: 179.8 kB / 441.6 MB, free: 4.82 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (P1.t_) * Number of discrete variables: 42 ($whenCondition1,P1.enableOut.state128[1],P1.enableOut.state128[2],P1.enableOut.state128[3],P1.enableOut.state128[4],P1.enableOut.arcWeightSum,P1.enableOut.nremTAout,P1.enableOut.nTAout,P1.enableOut.k,P1.enableOut.posTE,P1.enableOut.randNum,P1.enableOut.sumEnablingProbTAout,P1.enableOut.endWhile,P1.enableOut.Index,P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,$whenCondition2,P1.enableIn.state128[1],P1.enableIn.state128[2],P1.enableIn.state128[3],P1.enableIn.state128[4],P1.enableIn.arcWeightSum,P1.enableIn.nremTAin,P1.enableIn.nTAin,P1.enableIn.k,P1.enableIn.posTE,P1.enableIn.randNum,P1.enableIn.sumEnablingProbTAin,P1.enableIn.endWhile,P1.enableIn.Index,P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.feeding.anytrue,P1.feeding.numtrue,P1.emptying.anytrue,P1.emptying.numtrue,P1.disMarksInOut,$whenCondition3,P1.disMarksOut.anytrue,P1.disMarksOut.numtrue,P1.disMarksIn.anytrue,P1.disMarksIn.numtrue) * Number of discrete states: 41 (P1.disMarksOut.anytrue,P1.disMarksIn.anytrue,P1.disMarksIn.numtrue,P1.disMarksOut.numtrue,P1.disMarkChange,P1.emptying.numtrue,P1.emptying.anytrue,P1.feeding.numtrue,P1.feeding.anytrue,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.enableIn.arcWeightSum,P1.enableIn.nremTAin,P1.enableIn.nTAin,P1.enableIn.k,P1.enableIn.posTE,P1.enableIn.randNum,P1.enableIn.state128[4],P1.enableIn.state128[3],P1.enableIn.state128[2],P1.enableIn.state128[1],P1.enableIn.sumEnablingProbTAin,P1.enableIn.endWhile,P1.enableIn.Index,$whenCondition2,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.enableOut.arcWeightSum,P1.enableOut.nremTAout,P1.enableOut.nTAout,P1.enableOut.k,P1.enableOut.posTE,P1.enableOut.randNum,P1.enableOut.state128[4],P1.enableOut.state128[3],P1.enableOut.state128[2],P1.enableOut.state128[1],P1.enableOut.sumEnablingProbTAout,P1.enableOut.endWhile,P1.enableOut.Index,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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 Backend phase and start with SimCode phase: time 0.003151/0.6149, allocations: 2.046 MB / 443.7 MB, free: 2.688 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001613/0.6165, allocations: 1.04 MB / 444.7 MB, free: 1.523 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.932e-06/0.6166, allocations: 3.938 kB / 444.7 MB, free: 1.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.6176, allocations: 0.9484 MB / 445.7 MB, free: 484 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005077/0.6181, allocations: 44.48 kB / 445.7 MB, free: 440 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001979/0.6201, allocations: 0.5769 MB / 446.3 MB, free: 15.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.6206, allocations: 0.7724 MB / 447.1 MB, free: 15 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00021/0.6208, allocations: 42.94 kB / 447.1 MB, free: 14.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001762/0.621, allocations: 87.41 kB / 447.2 MB, free: 14.86 MB / 378.7 MB Notification: Performance of SimCode: time 1.323e-06/0.621, allocations: 0 / 447.2 MB, free: 14.86 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0455/0.6665, allocations: 7.517 MB / 454.7 MB, free: 7.398 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003125/0.6669, allocations: 156.8 kB / 454.9 MB, free: 7.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.437/3.104, allocations: 0 / 454.9 MB, free: 7.18 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result PNlib_PNlib.Examples.ConTest.SinglePC_res.mat does not exist to compare? outputFormat=mat