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: translateModel(PNlib.Examples.DisTest.DisLoopAndArcweight,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight") translateModel(PNlib.Examples.DisTest.DisLoopAndArcweight,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.active|T1.fire|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001657/0.001656, allocations: 103.8 kB / 16.41 MB, free: 6.5 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.001829/0.001829, allocations: 192.2 kB / 17.34 MB, free: 5.73 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.645/1.645, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1798/0.1798, allocations: 16.74 MB / 307.9 MB, free: 14.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002328/0.002329, allocations: 59.91 kB / 427 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1852/0.1875, allocations: 53.47 MB / 480.5 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.DisLoopAndArcweight): time 0.008785/0.1964, allocations: 1.864 MB / 482.3 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006531/0.203, allocations: 1.917 MB / 484.3 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000745/0.2038, allocations: 11.94 kB / 484.3 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008099/0.2046, allocations: 115 kB / 484.4 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001023/0.2057, allocations: 138.9 kB / 484.5 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008415/0.2142, allocations: 0.9044 MB / 485.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007801/0.222, allocations: 1.498 MB / 486.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000767/0.2228, allocations: 259 kB / 487.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001986/0.2248, allocations: 0.5726 MB / 487.7 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001024/0.2259, allocations: 497.9 kB / 488.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003247/0.2262, allocations: 140 kB / 488.4 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002249/0.2285, allocations: 0.8037 MB / 489.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004139/0.2289, allocations: 211.3 kB / 489.4 MB, free: 12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00105/0.23, allocations: 0.5759 MB / 490 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003744/0.2338, allocations: 1.808 MB / 491.8 MB, free: 9.609 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.2338, allocations: 0 / 491.8 MB, free: 9.609 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.2338, allocations: 0 / 491.8 MB, free: 9.609 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.529e-05/0.2339, allocations: 0 / 491.8 MB, free: 9.609 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.003856/0.2378, allocations: 1.558 MB / 493.3 MB, free: 7.938 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.2378, allocations: 11.89 kB / 493.3 MB, free: 7.926 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007991/0.2386, allocations: 135.8 kB / 493.5 MB, free: 7.793 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001481/0.2401, allocations: 0.5427 MB / 494 MB, free: 7.207 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00026/0.2404, allocations: 137.4 kB / 494.1 MB, free: 7.059 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003354/0.2408, allocations: 116 kB / 494.3 MB, free: 6.945 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005881/0.2467, allocations: 2.032 MB / 496.3 MB, free: 4.832 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.506e-05/0.2468, allocations: 0 / 496.3 MB, free: 4.832 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002589/0.247, allocations: 63.91 kB / 496.4 MB, free: 4.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003194/0.2474, allocations: 93.22 kB / 496.4 MB, free: 4.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004748/0.2521, allocations: 1.43 MB / 497.9 MB, free: 3.246 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01059/0.2628, allocations: 4.236 MB / 0.4903 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005197/0.268, allocations: 2.401 MB / 0.4927 GB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004516/0.2726, allocations: 2.317 MB / 0.4949 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001727/0.2728, allocations: 81.11 kB / 0.495 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003755/0.2766, allocations: 1.308 MB / 0.4963 GB, free: 8.711 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 4.829e-06/0.2766, allocations: 0 / 0.4963 GB, free: 8.711 MB / 382.1 MB Notification: Performance of matching and sorting (n=91): time 0.01143/0.288, allocations: 3.966 MB / 0.5002 GB, free: 4.691 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008692/0.2889, allocations: 0.6574 MB / 0.5008 GB, free: 3.918 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.2901, allocations: 0.5128 MB / 0.5013 GB, free: 3.398 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000199/0.2904, allocations: 73.69 kB / 0.5014 GB, free: 3.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004451/0.2908, allocations: 351.8 kB / 0.5017 GB, free: 2.969 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004046/0.2912, allocations: 241.2 kB / 0.502 GB, free: 2.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007291/0.292, allocations: 294.7 kB / 0.5022 GB, free: 2.434 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.2922, allocations: 326 kB / 0.5025 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001704/0.2939, allocations: 0.5537 MB / 0.5031 GB, free: 1.559 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002145/0.2961, allocations: 1.028 MB / 0.5041 GB, free: 328 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4211/0.7172, allocations: 3.178 MB / 0.5072 GB, free: 32.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-05/0.7173, allocations: 4.406 kB / 0.5072 GB, free: 32.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.006262/0.7236, allocations: 2.227 MB / 0.5094 GB, free: 31.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003227/0.724, allocations: 352.1 kB / 0.5097 GB, free: 31.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.645e-05/0.724, allocations: 15.56 kB / 0.5097 GB, free: 31.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.849e-05/0.7241, allocations: 22.5 kB / 0.5097 GB, free: 31.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008707/0.725, allocations: 160.6 kB / 0.5099 GB, free: 31.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.662e-05/0.7251, allocations: 31.73 kB / 0.5099 GB, free: 31.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001364/0.7265, allocations: 160.5 kB / 0.5101 GB, free: 31.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002163/0.7267, allocations: 74.38 kB / 0.5102 GB, free: 31.47 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.002221/0.729, allocations: 0.8972 MB / 0.511 GB, free: 30.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004317/0.7294, allocations: 97.39 kB / 0.5111 GB, free: 30.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009185/0.7386, allocations: 3.347 MB / 0.5144 GB, free: 29.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.216e-05/0.7387, allocations: 6.578 kB / 0.5144 GB, free: 29.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/0.7387, allocations: 1.297 kB / 0.5144 GB, free: 29.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.7388, allocations: 2.594 kB / 0.5144 GB, free: 29.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01364/0.7524, allocations: 4.752 MB / 0.519 GB, free: 27.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/0.7525, allocations: 4.609 kB / 0.519 GB, free: 27.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003366/0.7528, allocations: 44.38 kB / 0.5191 GB, free: 27.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.371e-05/0.7529, allocations: 2.375 kB / 0.5191 GB, free: 27.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002566/0.7532, allocations: 55.19 kB / 0.5191 GB, free: 27.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-05/0.7532, allocations: 7.781 kB / 0.5191 GB, free: 27.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.7532, allocations: 3.375 kB / 0.5192 GB, free: 27.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009472/0.7627, allocations: 3.464 MB / 0.5225 GB, free: 25.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002948/0.7631, allocations: 146.1 kB / 0.5227 GB, free: 25.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005504/0.7636, allocations: 98.06 kB / 0.5228 GB, free: 25.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001367/0.765, allocations: 105.8 kB / 0.5229 GB, free: 25.78 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001216/0.7662, allocations: 374.8 kB / 0.5232 GB, free: 25.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002628/0.7665, allocations: 69.8 kB / 0.5233 GB, free: 25.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006298/0.7672, allocations: 300.2 kB / 0.5236 GB, free: 25.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7672, allocations: 0 / 0.5236 GB, free: 25.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002716/0.7699, allocations: 489.7 kB / 0.524 GB, free: 25.45 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.001606/0.7716, allocations: 477.4 kB / 0.5245 GB, free: 25.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006336/0.7779, allocations: 2.665 MB / 0.5271 GB, free: 23.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/0.778, allocations: 3.844 kB / 0.5271 GB, free: 23.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006472/0.7845, allocations: 4.485 MB / 0.5315 GB, free: 20.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.7859, allocations: 145.6 kB / 0.5316 GB, free: 20.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01493/0.8008, allocations: 2.267 MB / 0.5338 GB, free: 18.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005964/0.8015, allocations: 1.006 MB / 0.5348 GB, free: 17.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002631/0.8018, allocations: 55.44 kB / 0.5349 GB, free: 17.28 MB / 382.1 MB Notification: Performance of SimCode: time 1.532e-06/0.8018, allocations: 0 / 0.5349 GB, free: 17.28 MB / 382.1 MB Notification: Performance of Templates: time 0.03912/0.8409, allocations: 16.79 MB / 0.5513 GB, free: 464 kB / 382.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.makefile make -j1 -f PNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPNlib_PNlib.Examples.DisTest.DisLoopAndArcweightCalcHelperMain.o OMCppPNlib_PNlib.Examples.DisTest.DisLoopAndArcweightCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.DisTest.DisLoopAndArcweightCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.DisLoopAndArcweightInitialize.cpp:737:62: error: invalid argument type 'StatArrayDim1' to unary expression _P1_P_activeConOut_P_vec_.assign((_P1_P_activeOut__pre && (!_functions->_OMC_LIT1))); ^~~~~~~~~~~~~~~~~~~~~~ ./OMCppPNlib_PNlib.Examples.DisTest.DisLoopAndArcweightInitialize.cpp:772:113: error: no matching function for call to object of type 'WrapArray' _P1_P_activeConOut_P_anychange_ = (_P1_P_activeConOut_P_anychange_ || ((!_P1_P_activeConOut_P_vec_(i_) && _discrete_events->pre(_P1_P_activeConOut_P_vec_)(i_)) || (_P1_P_activeConOut_P_vec_(i_) && !_discrete_events->pre(_P1_P_activeConOut_P_vec_)(i_)))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:704:14: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument virtual T& operator()(const vector& idx) ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:695:20: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument virtual const T& operator()(const vector& idx) const ^ In file included from OMCppPNlib_PNlib.Examples.DisTest.DisLoopAndArcweightCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.DisLoopAndArcweightInitialize.cpp:772:205: error: no matching function for call to object of type 'WrapArray' _P1_P_activeConOut_P_anychange_ = (_P1_P_activeConOut_P_anychange_ || ((!_P1_P_activeConOut_P_vec_(i_) && _discrete_events->pre(_P1_P_activeConOut_P_vec_)(i_)) || (_P1_P_activeConOut_P_vec_(i_) && !_discrete_events->pre(_P1_P_activeConOut_P_vec_)(i_)))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:704:14: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument virtual T& operator()(const vector& idx) ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:695:20: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument virtual const T& operator()(const vector& idx) const ^ In file included from OMCppPNlib_PNlib.Examples.DisTest.DisLoopAndArcweightCalcHelperMain.cpp:33: ./OMCppPNlib_PNlib.Examples.DisTest.DisLoopAndArcweight.cpp:146:81: error: invalid argument type 'StatArrayDim1' to unary expression _P1_P_activeConOut_P_vec_.assign((_discrete_events->pre(_P1_P_activeOut_) && (!_functions->_OMC_LIT1))); ^~~~~~~~~~~~~~~~~~~~~~ 4 errors generated. make: *** [: OMCppPNlib_PNlib.Examples.DisTest.DisLoopAndArcweightCalcHelperMain.o] Error 1