Running command: "" <> buildModelFMU(PNlib.Examples.DisTest.SinglePD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SinglePD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PNlib): time 2.036/2.036, allocations: 222.9 MB / 235 MB, free: 9.25 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.414e-05/3.425e-05, allocations: 4 kB / 289.7 MB, free: 3.969 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1092, allocations: 51.68 MB / 341.4 MB, free: 192 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4417/0.551, allocations: 79.83 MB / 421.2 MB, free: 10.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.5513, allocations: 66.56 kB / 421.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0494/0.6007, allocations: 11 MB / 432.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.6008, allocations: 4 kB / 432.3 MB, free: 15.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.889e-05/0.6008, allocations: 4 kB / 432.3 MB, free: 15.45 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001537/0.6024, allocations: 0.9109 MB / 433.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.6024, allocations: 12.03 kB / 433.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001423/0.6026, allocations: 70.53 kB / 433.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002582/0.6029, allocations: 51.62 kB / 433.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003891/0.6033, allocations: 246.5 kB / 433.6 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/0.6033, allocations: 16 kB / 433.6 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.223e-05/0.6034, allocations: 20 kB / 433.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000611/0.604, allocations: 336.5 kB / 433.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.604, allocations: 3.938 kB / 433.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/0.6041, allocations: 12 kB / 433.9 MB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.6041, allocations: 4 kB / 433.9 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003324/0.6044, allocations: 124 kB / 434.1 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.6059, allocations: 1.432 MB / 435.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004893/0.6064, allocations: 315.7 kB / 435.8 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003615/0.6068, allocations: 254.8 kB / 436 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.6068, allocations: 0 / 436 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005247/0.6073, allocations: 316.2 kB / 436.4 MB, free: 10.99 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 2.515e-06/0.6073, allocations: 0 / 436.4 MB, free: 10.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.0009998/0.6084, allocations: 0.5315 MB / 436.9 MB, free: 10.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002627/0.6086, allocations: 419.8 kB / 437.3 MB, free: 9.914 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002839/0.6089, allocations: 210.5 kB / 437.5 MB, free: 9.703 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.251e-05/0.609, allocations: 61.69 kB / 437.6 MB, free: 9.637 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.6092, allocations: 121 kB / 437.7 MB, free: 9.516 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.6093, allocations: 118.6 kB / 437.8 MB, free: 9.398 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-05/0.6094, allocations: 12 kB / 437.8 MB, free: 9.387 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.6096, allocations: 354.8 kB / 438.2 MB, free: 9.031 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003645/0.6099, allocations: 141.2 kB / 438.3 MB, free: 8.895 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005414/0.6105, allocations: 362 kB / 438.6 MB, free: 8.449 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006638/0.6112, allocations: 479 kB / 439.1 MB, free: 7.926 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.6112, allocations: 0 / 439.1 MB, free: 7.926 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00168/0.6129, allocations: 0.8829 MB / 440 MB, free: 6.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001939/0.6131, allocations: 275.3 kB / 440.3 MB, free: 6.656 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.745e-05/0.6131, allocations: 4 kB / 440.3 MB, free: 6.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.124e-05/0.6132, allocations: 15.94 kB / 440.3 MB, free: 6.637 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003877/0.6136, allocations: 67.78 kB / 440.3 MB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.817e-05/0.6136, allocations: 16.48 kB / 440.4 MB, free: 6.555 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003378/0.614, allocations: 55.55 kB / 440.4 MB, free: 6.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-05/0.6141, allocations: 32 kB / 440.4 MB, free: 6.469 MB / 362.7 MB Warning: Assuming fixed start value for the following 22 variables: P1.firingSumIn.firingSum:DISCRETE(fixed = false protected = true ) "firing sum" type: Integer P1.firingSumOut.firingSum:DISCRETE(fixed = false protected = true ) "firing sum" type: Integer 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.enableIn.benefitMax:DISCRETE(fixed = false protected = true ) "theoretical benefit" type: Real P1.enableIn.valid:DISCRETE(fixed = false protected = true ) "valid solution" type: Boolean P1.enableIn.benefitLimit:DISCRETE(fixed = false protected = true ) "best valid benefit" 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 ) "priority Index" type: Integer P1.enableOut.benefitMax:DISCRETE(fixed = false protected = true ) "theoretical benefit" type: Real P1.enableOut.valid:DISCRETE(fixed = false protected = true ) "valid solution" type: Boolean P1.enableOut.benefitLimit:DISCRETE(fixed = false protected = true ) "best valid benefit" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 84 ($whenCondition5,$PRE.P1.reStart,P1.firingSumIn.firingSum,P1.firingSumOut.firingSum,$whenCondition4,$whenCondition3,P1.tokeninout,$PRE.P1.firingSumIn.firingSum,$PRE.P1.firingSumOut.firingSum,$PRE.P1.t,P1.t,P1.pret,$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,$PRE.P1.enableIn.benefitMax,P1.enableIn.benefitMax,$PRE.P1.enableIn.valid,P1.enableIn.valid,$PRE.P1.enableIn.benefitLimit,P1.enableIn.benefitLimit,$whenCondition2,P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,$PRE.P1.enableIn.arcWeightSum,P1.enableIn.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,$PRE.P1.enableOut.benefitMax,P1.enableOut.benefitMax,$PRE.P1.enableOut.valid,P1.enableOut.valid,$PRE.P1.enableOut.benefitLimit,P1.enableOut.benefitLimit,$whenCondition1,P1.activeConOut.anychange,P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,$PRE.P1.enableOut.arcWeightSum,P1.enableOut.arcWeightSum,P1.reStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 9 * 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.0006906/0.6148, allocations: 479.2 kB / 440.9 MB, free: 5.949 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.6149, allocations: 43.61 kB / 441 MB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.308e-05/0.615, allocations: 17.66 kB / 441 MB, free: 5.887 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.615, allocations: 8 kB / 441 MB, free: 5.879 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.615, allocations: 0 / 441 MB, free: 5.879 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.615, allocations: 3.984 kB / 441 MB, free: 5.875 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005275/0.6156, allocations: 389.1 kB / 441.4 MB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.6156, allocations: 0 / 441.4 MB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.229e-05/0.6157, allocations: 15.94 kB / 441.4 MB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.6157, allocations: 0 / 441.4 MB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.313e-05/0.6158, allocations: 23.98 kB / 441.4 MB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.6158, allocations: 0 / 441.4 MB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.6158, allocations: 0 / 441.4 MB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.6172, allocations: 0.77 MB / 442.2 MB, free: 4.559 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.883e-05/0.6173, allocations: 108.7 kB / 442.3 MB, free: 4.434 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001917/0.6175, allocations: 55.97 kB / 442.3 MB, free: 4.379 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.6177, allocations: 19.95 kB / 442.4 MB, free: 4.359 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.52e-05/0.6178, allocations: 27.91 kB / 442.4 MB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.397e-05/0.6179, allocations: 23.98 kB / 442.4 MB, free: 4.309 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001861/0.6181, allocations: 149.9 kB / 442.6 MB, free: 4.164 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.6181, allocations: 0 / 442.6 MB, free: 4.164 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007198/0.6188, allocations: 120 kB / 442.7 MB, free: 4.047 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 47 ($whenCondition4,$whenCondition3,$whenCondition5,P1.t,P1.pret,P1.tokeninout,P1.firingSumIn.firingSum,P1.firingSumOut.firingSum,$whenCondition2,P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,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.enableIn.benefitMax,P1.enableIn.valid,P1.enableIn.benefitLimit,$whenCondition1,P1.activeConOut.anychange,P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,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.enableOut.benefitMax,P1.enableOut.valid,P1.enableOut.benefitLimit) * Number of discrete states: 42 (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,P1.enableOut.benefitMax,P1.enableOut.valid,P1.enableOut.benefitLimit,$whenCondition1,P1.enableOut.arcWeightSum,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.activeConOut.anychange,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,P1.enableIn.benefitMax,P1.enableIn.valid,P1.enableIn.benefitLimit,$whenCondition2,P1.enableIn.arcWeightSum,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.firingSumIn.firingSum,P1.firingSumOut.firingSum,P1.t) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 7 * Record equations: 0 * When equations: 1 * 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.002168/0.621, allocations: 1.585 MB / 444.3 MB, free: 2.391 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001549/0.6226, allocations: 0.9893 MB / 445.2 MB, free: 1.293 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.6226, allocations: 7.938 kB / 445.3 MB, free: 1.285 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001237/0.6239, allocations: 1.156 MB / 446.4 MB, free: 44 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004784/0.6244, allocations: 52.75 kB / 446.5 MB, free: 15.99 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/0.626, allocations: 0.5182 MB / 447 MB, free: 15.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.6264, allocations: 0.7727 MB / 447.8 MB, free: 14.62 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001702/0.6265, allocations: 38.95 kB / 447.8 MB, free: 14.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001822/0.6267, allocations: 87.39 kB / 447.9 MB, free: 14.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.705e-06/0.6268, allocations: 0 / 447.9 MB, free: 14.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03093/0.6577, allocations: 7.017 MB / 454.9 MB, free: 7.543 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003488/0.6581, allocations: 172 kB / 455.1 MB, free: 7.312 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.593/3.251, allocations: 0 / 455.1 MB, free: 7.312 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result PNlib_PNlib.Examples.DisTest.SinglePD_res.mat does not exist to compare? outputFormat=mat