Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo", uses=false) Using package PNlib with version 2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo) 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(PNlib.Examples.DisTest.DisLoopAndArcweight,fileNamePrefix="PNlib_PNlib_Examples_DisTest_DisLoopAndArcweight",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.DisTest.DisLoopAndArcweight,fileNamePrefix="PNlib_PNlib_Examples_DisTest_DisLoopAndArcweight",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.001091/0.001091, allocations: 108 kB / 15.63 MB, free: 112 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 194.4 kB / 16.55 MB, free: 6.656 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.477/1.477, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.1786/0.1786, allocations: 16.75 MB / 307.1 MB, free: 14.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 59.91 kB / 371.8 MB, free: 3.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/0.2452, allocations: 53.44 MB / 425.2 MB, free: 39.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.DisLoopAndArcweight): time 0.00246/0.2477, allocations: 1.866 MB / 427.1 MB, free: 38.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002617/0.2503, allocations: 1.919 MB / 429 MB, free: 38.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001985/0.2505, allocations: 9.469 kB / 429 MB, free: 38.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002954/0.2508, allocations: 115 kB / 429.1 MB, free: 38.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003105/0.2512, allocations: 130.8 kB / 429.3 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001422/0.2526, allocations: 0.9033 MB / 430.2 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001018/0.2536, allocations: 1.497 MB / 431.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002637/0.2539, allocations: 266.1 kB / 431.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004042/0.2543, allocations: 0.5753 MB / 432.5 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003641/0.2547, allocations: 497 kB / 433 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001539/0.2548, allocations: 142.4 kB / 433.1 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007721/0.2556, allocations: 0.8055 MB / 433.9 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.2558, allocations: 206.9 kB / 434.1 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003767/0.2562, allocations: 0.5654 MB / 434.7 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001135/0.2573, allocations: 1.798 MB / 436.5 MB, free: 35.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2573, allocations: 0 / 436.5 MB, free: 35.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2573, allocations: 2.844 kB / 436.5 MB, free: 35.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.2573, allocations: 0 / 436.5 MB, free: 35.09 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 235 * Number of variables: 235 Notification: Performance of Generate backend data structure: time 0.001481/0.2588, allocations: 1.567 MB / 438.1 MB, free: 33.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.2589, allocations: 12.48 kB / 438.1 MB, free: 33.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001597/0.259, allocations: 166.2 kB / 438.2 MB, free: 33.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003423/0.2594, allocations: 129.1 kB / 438.4 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005847/0.26, allocations: 0.5336 MB / 438.9 MB, free: 33.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/0.2601, allocations: 140.4 kB / 439 MB, free: 33.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.2602, allocations: 114 kB / 439.1 MB, free: 33.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002269/0.2625, allocations: 2.03 MB / 441.2 MB, free: 32.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.2625, allocations: 0 / 441.2 MB, free: 32.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001102/0.2627, allocations: 63.41 kB / 441.2 MB, free: 32.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000118/0.2628, allocations: 96.55 kB / 441.3 MB, free: 32.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001764/0.2645, allocations: 1.431 MB / 442.8 MB, free: 31.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00374/0.2683, allocations: 4.246 MB / 447 MB, free: 29.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/0.2701, allocations: 2.408 MB / 449.4 MB, free: 27.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001625/0.2717, allocations: 2.304 MB / 451.7 MB, free: 26.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.519e-05/0.2718, allocations: 86.78 kB / 451.8 MB, free: 26.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001544/0.2734, allocations: 1.302 MB / 453.1 MB, free: 25.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.154e-06/0.2734, allocations: 3.938 kB / 453.1 MB, free: 25.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=91): time 0.004858/0.2783, allocations: 3.968 MB / 457.1 MB, free: 23.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000273/0.2786, allocations: 0.6597 MB / 457.7 MB, free: 23.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005313/0.2791, allocations: 0.5086 MB / 458.2 MB, free: 23.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.126e-05/0.2792, allocations: 80.77 kB / 458.3 MB, free: 23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001791/0.2794, allocations: 340.8 kB / 458.7 MB, free: 22.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000156/0.2796, allocations: 237.8 kB / 458.9 MB, free: 22.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003594/0.2799, allocations: 300.2 kB / 459.2 MB, free: 22.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.035e-05/0.28, allocations: 325.5 kB / 459.5 MB, free: 22.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008199/0.2808, allocations: 0.5513 MB / 460 MB, free: 21.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/0.2819, allocations: 1.024 MB / 461.1 MB, free: 21.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003249/0.2852, allocations: 3.204 MB / 464.3 MB, free: 18.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.928e-05/0.2852, allocations: 3.844 kB / 464.3 MB, free: 18.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.002938/0.2881, allocations: 2.223 MB / 466.5 MB, free: 17.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001857/0.2883, allocations: 352.2 kB / 466.8 MB, free: 17.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.183e-05/0.2884, allocations: 17.88 kB / 466.9 MB, free: 17.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.547e-05/0.2884, allocations: 20.62 kB / 466.9 MB, free: 17.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004319/0.2888, allocations: 160.6 kB / 467 MB, free: 17.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.077e-05/0.2889, allocations: 31.36 kB / 467.1 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006063/0.2895, allocations: 162.3 kB / 467.2 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.2896, allocations: 70 kB / 467.3 MB, free: 17.29 MB / 350.1 MB Warning: Assuming fixed start value for the following 25 variables: P1.enableIn.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P1.enableIn.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P1.enableIn.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" type: Real P1.enableIn.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P1.enableIn.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P1.enableIn.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P1.enableIn.sumEnablingProbTAin:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P1.enableIn.nTAin:DISCRETE(fixed = true protected = true ) "number ofactive input transitions" type: Integer P1.enableIn.nremTAin:DISCRETE(fixed = true protected = true ) "number of remaining active input transitions" type: Integer P1.enableIn.Index:DISCRETE(fixed = true protected = true ) "priority Index" type: Integer P1.enableOut.valid:DISCRETE(fixed = true protected = true ) "valid solution" type: Boolean P1.enableOut.benefitLimit:DISCRETE(fixed = true protected = true ) "best valid benefit" type: Real P1.enableOut.benefitMax:DISCRETE(fixed = true protected = true ) "theoretical benefit" type: Real P1.enableOut.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P1.enableOut.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P1.enableOut.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P1.enableOut.sumEnablingProbTAout:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P1.enableOut.nTAout:DISCRETE(fixed = true protected = true ) "number of active output transitions" type: Integer P1.enableOut.nremTAout:DISCRETE(fixed = true protected = true ) "number of remaining active output transitions" type: Integer P1.enableOut.Index:DISCRETE(fixed = true protected = true ) "priority Index" type: Integer T1.ani:DISCRETE(fixed = true protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) "for transition animation" type: Real P1.firingSumOut.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer P1.firingSumIn.firingSum:DISCRETE(fixed = true protected = true ) "firing sum" type: Integer T1.firingTime:DISCRETE(fixed = true protected = true ) "next putative firing time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 149 ($PRE.P1.enableIn.valid,P1.enableIn.valid,$PRE.P1.enableIn.benefitLimit,P1.enableIn.benefitLimit,$PRE.P1.enableIn.benefitMax,P1.enableIn.benefitMax,$PRE.P1.enableIn.posTE,P1.enableIn.posTE,$PRE.P1.enableIn.k,P1.enableIn.k,$PRE.P1.enableIn.endWhile,P1.enableIn.endWhile,P1.enableIn.randNum,$PRE.P1.enableIn.randNum,P1.enableIn.state128[4],$PRE.P1.enableIn.state128[4],P1.enableIn.state128[3],$PRE.P1.enableIn.state128[3],P1.enableIn.state128[2],$PRE.P1.enableIn.state128[2],P1.enableIn.state128[1],$PRE.P1.enableIn.state128[1],P1.enableIn.cumEnablingProb[1],$PRE.P1.enableIn.cumEnablingProb[1],$PRE.P1.enableIn.sumEnablingProbTAin,P1.enableIn.sumEnablingProbTAin,$PRE.P1.enableIn.nTAin,P1.enableIn.nTAin,$PRE.P1.enableIn.nremTAin,P1.enableIn.nremTAin,P1.enableIn.remTAin[1],$PRE.P1.enableIn.remTAin[1],$PRE.P1.enableIn.Index,P1.enableIn.Index,$PRE.P1.enableOut.valid,P1.enableOut.valid,$PRE.P1.enableOut.benefitLimit,P1.enableOut.benefitLimit,$PRE.P1.enableOut.benefitMax,P1.enableOut.benefitMax,$PRE.P1.enableOut.posTE,P1.enableOut.posTE,$PRE.P1.enableOut.k,P1.enableOut.k,$PRE.P1.enableOut.endWhile,P1.enableOut.endWhile,P1.enableOut.randNum,$PRE.P1.enableOut.randNum,P1.enableOut.state128[4],$PRE.P1.enableOut.state128[4],P1.enableOut.state128[3],$PRE.P1.enableOut.state128[3],P1.enableOut.state128[2],$PRE.P1.enableOut.state128[2],P1.enableOut.state128[1],$PRE.P1.enableOut.state128[1],P1.enableOut.cumEnablingProb[1],$PRE.P1.enableOut.cumEnablingProb[1],$PRE.P1.enableOut.sumEnablingProbTAout,P1.enableOut.sumEnablingProbTAout,$PRE.P1.enableOut.nTAout,P1.enableOut.nTAout,$PRE.P1.enableOut.nremTAout,P1.enableOut.nremTAout,P1.enableOut.remTAout[1],$PRE.P1.enableOut.remTAout[1],$PRE.P1.enableOut.Index,P1.enableOut.Index,$PRE.P1.reStart,$whenCondition7,$PRE.P1.tokeninout,P1.outTransition[1].tokenInOut,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,$PRE.P1.firingSumOut.firingSum,$PRE.P1.firingSumIn.firingSum,P1.tokeninout,$whenCondition5,$whenCondition6,T1.firingCon,T1.outPlaces[1].disTransition,P1.inTransition[1].disPlace,T1.inPlaces[1].disTransition,P1.outTransition[1].normalArc,P1.outTransition[1].testValueint,P1.outTransition[1].arcType,P1.outTransition[1].disPlace,P1.reStart,P1.enableIn.disTransition[1],$PRE.T1.firingTime,$PRE.P1.enableIn.arcWeightSum,$PRE.P1.enableIn.TEin[1],$PRE.P1.enableOut.arcWeightSum,$PRE.P1.enableOut.TEout[1],P1.enableOut.arcWeight[1],P1.enableIn.arcWeight[1],T1.activation.disPlaceOut[1],P1.enableOut.disTransition[1],T1.activation.normalArc[1],T1.activation.testValueInt[1],T1.activation.arcType[1],T1.activation.disPlaceIn[1],T1.activation.active,T1.activation.maxTokensInt[1],T1.activation.minTokensInt[1],T1.activation.arcWeightIntOut[1],T1.activation.arcWeightIntIn[1],T1.activation.tIntOut[1],T1.activation.tIntIn[1],T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.outPlaces[1].enabledByInPlaces,T1.active,P1.enableIn.arcWeightSum,P1.enableIn.TEin[1],P1.enableIn.TEin_[1],P1.enableIn.active[1],P1.enableIn.TAein[1],P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P1.enableOut.TEout_[1],P1.enableOut.TAout[1],P1.firingSumOut.firingSum,P1.firingSumOut.arcWeight[1],P1.firingSumOut.fire[1],P1.firingSumIn.firingSum,P1.firingSumIn.arcWeight[1],P1.firingSumIn.fire[1],P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.delayPassedIn.vec[1],P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.delayPassedOut.vec[1],P1.activeConOut.anychange,P1.activeConOut.vec[1],P1.activeOut[1],$PRE.P1.activeOut[1],P1.t,$PRE.P1.t,$whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,P1.outTransition[1].fed,P1.inTransition[1].emptied) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 154 * Array equations: 1 * Algorithm blocks: 10 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001053/0.2907, allocations: 0.8943 MB / 468.2 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001892/0.2909, allocations: 104.6 kB / 468.3 MB, free: 16.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004535/0.2954, allocations: 3.349 MB / 471.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.233e-05/0.2955, allocations: 6.672 kB / 471.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.2955, allocations: 0 / 471.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/0.2955, allocations: 3.594 kB / 471.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006995/0.3025, allocations: 4.751 MB / 476.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.3025, allocations: 0.5156 kB / 476.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001722/0.3027, allocations: 43.98 kB / 476.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.3027, allocations: 1.531 kB / 476.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/0.3029, allocations: 54.95 kB / 476.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.3029, allocations: 2.516 kB / 476.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3029, allocations: 0 / 476.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004673/0.3076, allocations: 3.472 MB / 480 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.3077, allocations: 139.6 kB / 480.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/0.3079, allocations: 93.66 kB / 480.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006257/0.3086, allocations: 105.4 kB / 480.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006027/0.3092, allocations: 380.8 kB / 480.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/0.3093, allocations: 62.75 kB / 480.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003273/0.3097, allocations: 303.8 kB / 481 MB, free: 11.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3097, allocations: 1.125 kB / 481 MB, free: 11.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001342/0.311, allocations: 484.5 kB / 481.5 MB, free: 10.85 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 81 (T1.active,$whenCondition6,$whenCondition5,$whenCondition7,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,P1.t,P1.outTransition[1].tokenInOut,P1.tokeninout,P1.activeOut[1],P1.activeConOut.vec[1],P1.activeConOut.anychange,P1.delayPassedOut.vec[1],P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.delayPassedIn.vec[1],P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.firingSumIn.fire[1],P1.firingSumIn.arcWeight[1],P1.firingSumIn.firingSum,P1.firingSumOut.fire[1],P1.firingSumOut.arcWeight[1],P1.firingSumOut.firingSum,P1.enableOut.TAout[1],P1.enableOut.TEout_[1],P1.enableOut.state128[1],P1.enableOut.state128[2],P1.enableOut.state128[3],P1.enableOut.state128[4],P1.enableOut.TEout[1],P1.enableOut.remTAout[1],P1.enableOut.cumEnablingProb[1],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,P1.enableIn.TAein[1],P1.enableIn.active[1],P1.enableIn.TEin_[1],P1.enableIn.state128[1],P1.enableIn.state128[2],P1.enableIn.state128[3],P1.enableIn.state128[4],P1.enableIn.TEin[1],P1.enableIn.remTAin[1],P1.enableIn.cumEnablingProb[1],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,T1.outPlaces[1].enabledByInPlaces,T1.firingTime,T1.fireTime,T1.delayPassed,T1.ani,T1.activation.tIntIn[1],T1.activation.tIntOut[1],T1.activation.arcWeightIntIn[1],T1.activation.arcWeightIntOut[1],T1.activation.minTokensInt[1],T1.activation.maxTokensInt[1],T1.activation.active) * Number of discrete states: 56 (P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P1.tokeninout,P1.t,P1.activeOut[1],T1.activation.active,T1.delayPassed,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.activeConOut.anychange,i,P1.activeConOut.vec[i],P1.enableOut.TEout_[1],P1.enableOut.valid,P1.enableOut.benefitLimit,P1.enableOut.benefitMax,P1.enableOut.posTE,P1.enableOut.k,P1.enableOut.endWhile,P1.enableOut.state128[4],P1.enableOut.state128[3],P1.enableOut.state128[2],P1.enableOut.state128[1],P1.enableOut.randNum,P1.enableOut.cumEnablingProb[1],P1.enableOut.sumEnablingProbTAout,P1.enableOut.nTAout,P1.enableOut.nremTAout,P1.enableOut.remTAout[1],P1.enableOut.Index,$whenCondition1,P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P1.enableIn.TEin_[1],P1.enableIn.valid,P1.enableIn.benefitLimit,P1.enableIn.benefitMax,P1.enableIn.posTE,P1.enableIn.k,P1.enableIn.endWhile,P1.enableIn.state128[4],P1.enableIn.state128[3],P1.enableIn.state128[2],P1.enableIn.state128[1],P1.enableIn.randNum,P1.enableIn.cumEnablingProb[1],P1.enableIn.sumEnablingProbTAin,P1.enableIn.nTAin,P1.enableIn.nremTAin,P1.enableIn.remTAin[1],P1.enableIn.Index,$whenCondition2,P1.enableIn.arcWeightSum,P1.enableIn.TEin[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 36 * Array equations: 1 * Algorithm blocks: 8 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00509/0.3161, allocations: 4.386 MB / 485.9 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002962/0.3191, allocations: 2.676 MB / 488.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3191, allocations: 0 / 488.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002658/0.3218, allocations: 4.49 MB / 493.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007219/0.3225, allocations: 131.1 kB / 493.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01393/0.3365, allocations: 10.03 MB / 0.4914 GB, free: 4.875 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006135/0.3371, allocations: 1.026 MB / 0.4924 GB, free: 3.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005139/0.3376, allocations: 213.7 kB / 0.4926 GB, free: 3.609 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003134/0.338, allocations: 251.3 kB / 0.4929 GB, free: 3.363 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.338, allocations: 4 kB / 0.4929 GB, free: 3.359 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04508/0.3831, allocations: 23.96 MB / 0.5163 GB, free: 11.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.474/6.858, allocations: 7.406 kB / 0.5163 GB, free: 11.37 MB / 398.1 MB (rm -f PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.pipe >> ../files/PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight_res.mat --tempDir=temp_PNlib_PNlib_Examples_DisTest_DisLoopAndArcweight_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PNlib_PNlib_Examples_DisTest_DisLoopAndArcweight.fmu > PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.DisLoopAndArcweight.mat","../files/PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:P1.t,T1.active,T1.fire,T1.fire,time Variables in the result:P1.N,P1.animateMarking,P1.benefitType,P1.color[1],P1.color[2],P1.color[3],P1.enablingBeneIn[1],P1.enablingBeneOut[1],P1.enablingPrioIn[1],P1.enablingPrioOut[1],P1.enablingProbIn[1],P1.enablingProbOut[1],P1.enablingType,P1.inTransition[1].active,P1.inTransition[1].arcWeight,P1.inTransition[1].arcWeightint,P1.inTransition[1].decreasingFactor,P1.inTransition[1].disPlace,P1.inTransition[1].disTransition,P1.inTransition[1].emptied,P1.inTransition[1].enable,P1.inTransition[1].enabledByInPlaces,P1.inTransition[1].fire,P1.inTransition[1].instSpeed,P1.inTransition[1].maxSpeed,P1.inTransition[1].maxTokens,P1.inTransition[1].maxTokensint,P1.inTransition[1].prelimSpeed,P1.inTransition[1].speedSum,P1.inTransition[1].t,P1.inTransition[1].tint,P1.levelCon,P1.localSeedIn,P1.localSeedOut,P1.maxTokens,P1.minTokens,P1.nIn,P1.nOut,P1.outTransition[1].active,P1.outTransition[1].arcType,P1.outTransition[1].arcWeight,P1.outTransition[1].arcWeightint,P1.outTransition[1].decreasingFactor,P1.outTransition[1].disPlace,P1.outTransition[1].disTransition,P1.outTransition[1].enable,P1.outTransition[1].fed,P1.outTransition[1].fire,P1.outTransition[1].instSpeed,P1.outTransition[1].maxSpeed,P1.outTransition[1].minTokens,P1.outTransition[1].minTokensint,P1.outTransition[1].normalArc,P1.outTransition[1].prelimSpeed,P1.outTransition[1].speedSum,P1.outTransition[1].t,P1.outTransition[1].testValue,P1.outTransition[1].testValueint,P1.outTransition[1].tint,P1.outTransition[1].tokenInOut,P1.pd_t,P1.reStart,P1.reStartTokens,P1.showCapacity,P1.showTokenFlow,P1.startTokens,P1.t,T1.active,T1.arcWeightIn[1],T1.arcWeightOut[1],T1.delay,T1.fire,T1.firingCon,T1.inPlaces[1].active,T1.inPlaces[1].arcType,T1.inPlaces[1].arcWeight,T1.inPlaces[1].arcWeightint,T1.inPlaces[1].decreasingFactor,T1.inPlaces[1].disPlace,T1.inPlaces[1].disTransition,T1.inPlaces[1].enable,T1.inPlaces[1].fed,T1.inPlaces[1].fire,T1.inPlaces[1].instSpeed,T1.inPlaces[1].maxSpeed,T1.inPlaces[1].minTokens,T1.inPlaces[1].minTokensint,T1.inPlaces[1].normalArc,T1.inPlaces[1].prelimSpeed,T1.inPlaces[1].speedSum,T1.inPlaces[1].t,T1.inPlaces[1].testValue,T1.inPlaces[1].testValueint,T1.inPlaces[1].tint,T1.inPlaces[1].tokenInOut,T1.nIn,T1.nOut,T1.outPlaces[1].active,T1.outPlaces[1].arcWeight,T1.outPlaces[1].arcWeightint,T1.outPlaces[1].decreasingFactor,T1.outPlaces[1].disPlace,T1.outPlaces[1].disTransition,T1.outPlaces[1].emptied,T1.outPlaces[1].enable,T1.outPlaces[1].enabledByInPlaces,T1.outPlaces[1].fire,T1.outPlaces[1].instSpeed,T1.outPlaces[1].maxSpeed,T1.outPlaces[1].maxTokens,T1.outPlaces[1].maxTokensint,T1.outPlaces[1].prelimSpeed,T1.outPlaces[1].speedSum,T1.outPlaces[1].t,T1.outPlaces[1].tint,settings.M,settings.N,settings.animateHazardFunc,settings.animateMarking,settings.animatePlace,settings.animatePutFireTime,settings.animateSpeed,settings.animateTIarc,settings.animateTransition,settings.animateWeightTIarc,settings.globalSeed,settings.scale,settings.showCapacity,settings.showPlaceName,settings.showTime,settings.showTokenFlow,settings.showTransitionName,settings.timeFire,time