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.001111/0.001111, allocations: 108 kB / 15.61 MB, free: 152 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.001131/0.001131, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.391/1.391, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.2106/0.2106, allocations: 16.77 MB / 307.2 MB, free: 14.96 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 67.88 kB / 371.8 MB, free: 3.383 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2933, allocations: 53.44 MB / 425.2 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.DisLoopAndArcweight): time 0.002476/0.2958, allocations: 1.866 MB / 427.1 MB, free: 38.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002555/0.2984, allocations: 1.911 MB / 429 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001897/0.2986, allocations: 9.594 kB / 429 MB, free: 37.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002797/0.2989, allocations: 122.4 kB / 429.1 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003159/0.2992, allocations: 131.7 kB / 429.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001547/0.3007, allocations: 0.9044 MB / 430.1 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001138/0.3019, allocations: 1.492 MB / 431.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002978/0.3022, allocations: 272.5 kB / 431.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00044/0.3027, allocations: 0.5699 MB / 432.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000409/0.3031, allocations: 490.8 kB / 432.9 MB, free: 35.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001671/0.3033, allocations: 138.6 kB / 433.1 MB, free: 35.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008342/0.3041, allocations: 0.8036 MB / 433.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001637/0.3043, allocations: 203.2 kB / 434.1 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004141/0.3047, allocations: 0.5681 MB / 434.7 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001336/0.306, allocations: 1.761 MB / 436.4 MB, free: 34.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.3061, allocations: 4 kB / 436.4 MB, free: 34.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3061, allocations: 0 / 436.4 MB, free: 34.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.3061, allocations: 0 / 436.4 MB, free: 34.66 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.001726/0.3078, allocations: 1.555 MB / 438 MB, free: 33.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.3079, allocations: 15.48 kB / 438 MB, free: 33.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001771/0.308, allocations: 165.6 kB / 438.1 MB, free: 33.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003738/0.3084, allocations: 128.4 kB / 438.3 MB, free: 33.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000618/0.309, allocations: 0.539 MB / 438.8 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.3092, allocations: 144.2 kB / 439 MB, free: 32.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001532/0.3093, allocations: 112.9 kB / 439.1 MB, free: 32.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002475/0.3118, allocations: 2.029 MB / 441.1 MB, free: 31.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.3119, allocations: 3.938 kB / 441.1 MB, free: 31.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001219/0.312, allocations: 62.44 kB / 441.2 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000129/0.3121, allocations: 90.06 kB / 441.2 MB, free: 31.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001859/0.314, allocations: 1.424 MB / 442.7 MB, free: 31.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003989/0.318, allocations: 4.276 MB / 446.9 MB, free: 28.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001857/0.3199, allocations: 2.407 MB / 449.4 MB, free: 27.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001662/0.3215, allocations: 2.31 MB / 451.7 MB, free: 25.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.333e-05/0.3216, allocations: 86.34 kB / 451.7 MB, free: 25.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001541/0.3232, allocations: 1.308 MB / 453.1 MB, free: 25.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.995e-06/0.3232, allocations: 3 kB / 453.1 MB, free: 25.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=91): time 0.00496/0.3282, allocations: 3.96 MB / 457 MB, free: 23.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003032/0.3285, allocations: 0.6618 MB / 457.7 MB, free: 22.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006248/0.3291, allocations: 0.5067 MB / 458.2 MB, free: 22.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.3292, allocations: 81.41 kB / 458.3 MB, free: 22.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.3295, allocations: 343 kB / 458.6 MB, free: 22.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.3297, allocations: 242.9 kB / 458.8 MB, free: 22.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003838/0.33, allocations: 294.7 kB / 459.1 MB, free: 22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.591e-05/0.3301, allocations: 326.6 kB / 459.4 MB, free: 21.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008355/0.331, allocations: 0.5569 MB / 460 MB, free: 21.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001039/0.332, allocations: 1.028 MB / 461 MB, free: 20.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003087/0.3351, allocations: 3.196 MB / 464.2 MB, free: 18.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.925e-05/0.3351, allocations: 4.016 kB / 464.2 MB, free: 18.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.00297/0.3381, allocations: 2.219 MB / 466.4 MB, free: 17.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001587/0.3383, allocations: 356.5 kB / 466.8 MB, free: 16.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.427e-05/0.3383, allocations: 13.75 kB / 466.8 MB, free: 16.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.901e-05/0.3384, allocations: 22 kB / 466.8 MB, free: 16.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004287/0.3388, allocations: 159.5 kB / 467 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.965e-05/0.3388, allocations: 31.69 kB / 467 MB, free: 16.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006512/0.3395, allocations: 165.1 kB / 467.2 MB, free: 16.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/0.3396, allocations: 71.38 kB / 467.2 MB, free: 16.85 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.001158/0.3408, allocations: 0.8947 MB / 468.1 MB, free: 16.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002095/0.341, allocations: 100.1 kB / 468.2 MB, free: 16.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004578/0.3456, allocations: 3.348 MB / 471.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.34e-05/0.3456, allocations: 6.672 kB / 471.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.3457, allocations: 1.781 kB / 471.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.3457, allocations: 2.25 kB / 471.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006619/0.3523, allocations: 4.757 MB / 476.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.3523, allocations: 0.5625 kB / 476.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001549/0.3525, allocations: 39.84 kB / 476.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.3525, allocations: 2.281 kB / 476.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001236/0.3526, allocations: 53.03 kB / 476.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.3526, allocations: 2.25 kB / 476.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3526, allocations: 5.062 kB / 476.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004554/0.3572, allocations: 3.476 MB / 479.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.3573, allocations: 144 kB / 480.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002601/0.3576, allocations: 89.42 kB / 480.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006578/0.3583, allocations: 109.9 kB / 480.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006306/0.3589, allocations: 379.2 kB / 480.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001425/0.3591, allocations: 63.7 kB / 480.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003348/0.3594, allocations: 300 kB / 481 MB, free: 10.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3594, allocations: 3.938 kB / 481 MB, free: 10.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001509/0.3609, allocations: 486 kB / 481.5 MB, free: 10.54 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.005203/0.3661, allocations: 4.377 MB / 485.8 MB, free: 6.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003555/0.3697, allocations: 2.814 MB / 488.7 MB, free: 3.879 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.3698, allocations: 4 kB / 488.7 MB, free: 3.875 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003192/0.373, allocations: 4.489 MB / 493.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008351/0.3738, allocations: 131.8 kB / 493.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01451/0.3883, allocations: 9.951 MB / 0.4914 GB, free: 4.848 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006593/0.3891, allocations: 1.03 MB / 0.4924 GB, free: 3.789 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005207/0.3896, allocations: 213.2 kB / 0.4926 GB, free: 3.578 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003026/0.3899, allocations: 251.3 kB / 0.4929 GB, free: 3.332 MB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3899, allocations: 4 kB / 0.4929 GB, free: 3.328 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05343/0.4433, allocations: 23.97 MB / 0.5163 GB, free: 11.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.271/8.715, allocations: 6.406 kB / 0.5163 GB, free: 11.34 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 & 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