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 3.0.0-master/package.mo", uses=false) Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.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.006766/0.006766, allocations: 97.98 kB / 15.73 MB, free: 5.602 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.00114/0.00114, allocations: 195.3 kB / 16.68 MB, free: 5.523 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.0766/0.0766, allocations: 16.73 MB / 307.3 MB, free: 14.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 67.89 kB / 425.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1023, allocations: 53.47 MB / 479.3 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.DisLoopAndArcweight): time 0.004825/0.1072, allocations: 1.869 MB / 481.2 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005233/0.1124, allocations: 1.917 MB / 483.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005155/0.113, allocations: 7.938 kB / 483.1 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005733/0.1136, allocations: 127 kB / 483.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007668/0.1144, allocations: 154.9 kB / 483.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003021/0.1174, allocations: 0.9007 MB / 484.3 MB, free: 476 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002609/0.1201, allocations: 1.494 MB / 485.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006604/0.1208, allocations: 271 kB / 486 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00133/0.1221, allocations: 0.5648 MB / 486.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001177/0.1233, allocations: 0.4901 MB / 487.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005013/0.1238, allocations: 140 kB / 487.2 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001877/0.1257, allocations: 0.8037 MB / 488 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004184/0.1262, allocations: 211.2 kB / 488.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001301/0.1275, allocations: 0.5798 MB / 488.8 MB, free: 11.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003442/0.131, allocations: 1.815 MB / 490.6 MB, free: 10.08 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.131, allocations: 0 / 490.6 MB, free: 10.08 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.131, allocations: 4 kB / 490.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.066e-05/0.131, allocations: 0 / 490.6 MB, free: 10.07 MB / 366.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.003349/0.1344, allocations: 1.571 MB / 492.2 MB, free: 8.387 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/0.1345, allocations: 11.89 kB / 492.2 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003389/0.1348, allocations: 168 kB / 492.4 MB, free: 8.203 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006899/0.1355, allocations: 132.4 kB / 492.5 MB, free: 8.074 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/0.1368, allocations: 0.5542 MB / 493.1 MB, free: 7.477 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002244/0.137, allocations: 137.4 kB / 493.2 MB, free: 7.328 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002924/0.1373, allocations: 116 kB / 493.3 MB, free: 7.215 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004692/0.142, allocations: 2.032 MB / 495.3 MB, free: 5.102 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.942e-05/0.1421, allocations: 0 / 495.3 MB, free: 5.102 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002155/0.1423, allocations: 55.97 kB / 495.4 MB, free: 5.047 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002563/0.1426, allocations: 97.22 kB / 495.5 MB, free: 4.953 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003866/0.1465, allocations: 1.427 MB / 496.9 MB, free: 3.523 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008618/0.1551, allocations: 4.241 MB / 0.4894 GB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004009/0.1592, allocations: 2.409 MB / 0.4918 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003592/0.1628, allocations: 2.313 MB / 0.494 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001546/0.163, allocations: 89.09 kB / 0.4941 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002801/0.1658, allocations: 1.307 MB / 0.4954 GB, free: 8.973 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 3.727e-06/0.1658, allocations: 0 / 0.4954 GB, free: 8.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=91): time 0.006024/0.1719, allocations: 3.967 MB / 0.4993 GB, free: 4.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004049/0.1723, allocations: 0.6535 MB / 0.4999 GB, free: 4.184 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006815/0.173, allocations: 0.5247 MB / 0.5004 GB, free: 3.652 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001292/0.1731, allocations: 73.69 kB / 0.5005 GB, free: 3.574 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003061/0.1734, allocations: 360.8 kB / 0.5008 GB, free: 3.215 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002573/0.1737, allocations: 250.2 kB / 0.5011 GB, free: 2.969 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004311/0.1741, allocations: 302.8 kB / 0.5014 GB, free: 2.664 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1743, allocations: 326 kB / 0.5017 GB, free: 2.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009111/0.1752, allocations: 0.5498 MB / 0.5022 GB, free: 1.793 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001214/0.1764, allocations: 1.021 MB / 0.5032 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2024/0.3788, allocations: 3.185 MB / 0.5063 GB, free: 32.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.044e-05/0.3789, allocations: 3.719 kB / 0.5063 GB, free: 32.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003703/0.3826, allocations: 2.225 MB / 0.5085 GB, free: 31.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00021/0.3828, allocations: 362 kB / 0.5088 GB, free: 31.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-05/0.3829, allocations: 17 kB / 0.5089 GB, free: 31.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.365e-05/0.3829, allocations: 20.66 kB / 0.5089 GB, free: 31.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005182/0.3834, allocations: 157.6 kB / 0.509 GB, free: 31.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.654e-05/0.3835, allocations: 29.11 kB / 0.509 GB, free: 31.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000743/0.3842, allocations: 173.6 kB / 0.5092 GB, free: 31.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/0.3844, allocations: 71.52 kB / 0.5093 GB, free: 31.32 MB / 382.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.001251/0.3856, allocations: 0.8967 MB / 0.5102 GB, free: 30.76 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002177/0.3858, allocations: 103 kB / 0.5103 GB, free: 30.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004894/0.3907, allocations: 3.343 MB / 0.5135 GB, free: 29.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.376e-05/0.3908, allocations: 7.078 kB / 0.5135 GB, free: 29.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.3908, allocations: 0.8906 kB / 0.5135 GB, free: 29.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.3908, allocations: 2.906 kB / 0.5135 GB, free: 29.37 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007595/0.3984, allocations: 4.751 MB / 0.5182 GB, free: 27.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.3985, allocations: 0.6094 kB / 0.5182 GB, free: 27.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001842/0.3987, allocations: 44.14 kB / 0.5182 GB, free: 27.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.3987, allocations: 2.375 kB / 0.5182 GB, free: 27.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001457/0.3988, allocations: 56.09 kB / 0.5183 GB, free: 27.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.276e-06/0.3989, allocations: 6.609 kB / 0.5183 GB, free: 27.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3989, allocations: 1.219 kB / 0.5183 GB, free: 27.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005464/0.4043, allocations: 3.473 MB / 0.5217 GB, free: 25.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002478/0.4046, allocations: 142.6 kB / 0.5218 GB, free: 25.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003463/0.405, allocations: 91.12 kB / 0.5219 GB, free: 25.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007073/0.4057, allocations: 108.2 kB / 0.522 GB, free: 25.67 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007076/0.4064, allocations: 377.6 kB / 0.5224 GB, free: 25.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001637/0.4066, allocations: 64.41 kB / 0.5224 GB, free: 25.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000485/0.4071, allocations: 304.2 kB / 0.5227 GB, free: 25.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4071, allocations: 1.406 kB / 0.5227 GB, free: 25.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001683/0.4088, allocations: 497.9 kB / 0.5232 GB, free: 25.36 MB / 382.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.006473/0.4153, allocations: 4.389 MB / 0.5275 GB, free: 23.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003868/0.4192, allocations: 2.668 MB / 0.5301 GB, free: 21.46 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.4192, allocations: 0 / 0.5301 GB, free: 21.46 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002964/0.4222, allocations: 4.487 MB / 0.5345 GB, free: 16.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007316/0.4229, allocations: 143.1 kB / 0.5346 GB, free: 16.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0132/0.4361, allocations: 9.825 MB / 0.5442 GB, free: 6.469 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006085/0.4368, allocations: 1.023 MB / 0.5452 GB, free: 5.422 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004868/0.4373, allocations: 218.5 kB / 0.5454 GB, free: 5.207 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002948/0.4376, allocations: 255.3 kB / 0.5456 GB, free: 4.957 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4376, allocations: 0 / 0.5456 GB, free: 4.957 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05153/0.4892, allocations: 24.14 MB / 0.5692 GB, free: 12.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.098/9.587, allocations: 15.23 kB / 0.5692 GB, free: 12.77 MB / 414.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 & python3 -m fmpy simulate --output-file PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PNlib_PNlib_Examples_DisTest_DisLoopAndArcweight.fmu > PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight_res.csv","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.DisLoopAndArcweight.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches