Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.LoopAndArcweight.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.ConTest.LoopAndArcweight,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.LoopAndArcweight") translateModel(PNlib.Examples.ConTest.LoopAndArcweight,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|P2.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.LoopAndArcweight") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 100.1 kB / 15.88 MB, free: 12 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.00172/0.00172, allocations: 200.5 kB / 16.79 MB, free: 6.809 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.354/1.354, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.18/0.18, allocations: 16.77 MB / 307.4 MB, free: 15.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001241, allocations: 63.89 kB / 371.6 MB, free: 3.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2516, allocations: 53.45 MB / 425.1 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.LoopAndArcweight): time 0.003077/0.2547, allocations: 2.843 MB / 427.9 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003739/0.2585, allocations: 2.677 MB / 430.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004166/0.2589, allocations: 7 kB / 430.6 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003888/0.2593, allocations: 170.4 kB / 430.8 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004944/0.2598, allocations: 161.8 kB / 430.9 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001645/0.2615, allocations: 0.9088 MB / 431.8 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001664/0.2632, allocations: 2.119 MB / 434 MB, free: 35.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004274/0.2636, allocations: 352.3 kB / 434.3 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.2647, allocations: 0.7903 MB / 435.1 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000842/0.2656, allocations: 0.7314 MB / 435.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002852/0.2659, allocations: 102.3 kB / 435.9 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008235/0.2667, allocations: 470.1 kB / 436.4 MB, free: 34.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003366/0.267, allocations: 359.7 kB / 436.7 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000801/0.2678, allocations: 0.7732 MB / 437.5 MB, free: 33.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00149/0.2693, allocations: 1.648 MB / 439.2 MB, free: 33.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.2694, allocations: 0 / 439.2 MB, free: 33.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2694, allocations: 3.938 kB / 439.2 MB, free: 33.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.547e-05/0.2694, allocations: 0 / 439.2 MB, free: 33.1 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: 415 * Number of variables: 415 Notification: Performance of Generate backend data structure: time 0.00283/0.2723, allocations: 2.372 MB / 441.5 MB, free: 31.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.2723, allocations: 11.69 kB / 441.5 MB, free: 31.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001615/0.2739, allocations: 352.6 kB / 441.9 MB, free: 31.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.275, allocations: 0.754 MB / 442.6 MB, free: 30.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002604/0.2753, allocations: 388.3 kB / 443 MB, free: 30.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002961/0.2756, allocations: 185.5 kB / 443.2 MB, free: 30.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004261/0.2799, allocations: 3.061 MB / 446.3 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.169e-05/0.2799, allocations: 0 / 446.3 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001983/0.2801, allocations: 91.94 kB / 446.4 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002281/0.2804, allocations: 157.4 kB / 446.5 MB, free: 29.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003273/0.2837, allocations: 2.227 MB / 448.7 MB, free: 28.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006481/0.2902, allocations: 5.747 MB / 454.5 MB, free: 24.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002468/0.2927, allocations: 2.928 MB / 457.4 MB, free: 23.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002327/0.295, allocations: 2.754 MB / 460.2 MB, free: 21.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001741/0.2952, allocations: 109.7 kB / 460.3 MB, free: 21.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002417/0.2976, allocations: 1.707 MB / 462 MB, free: 20.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=148): time 2.915e-06/0.2977, allocations: 3.938 kB / 462 MB, free: 20.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=148): time 0.008284/0.3059, allocations: 5.442 MB / 467.4 MB, free: 18.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000431/0.3064, allocations: 1.073 MB / 468.5 MB, free: 17.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008679/0.3073, allocations: 0.6836 MB / 469.2 MB, free: 17.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001965/0.3075, allocations: 104.4 kB / 469.3 MB, free: 17.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003521/0.3079, allocations: 0.5137 MB / 469.8 MB, free: 16.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003322/0.3082, allocations: 387.7 kB / 470.2 MB, free: 16.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005737/0.3088, allocations: 470 kB / 470.6 MB, free: 16.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.474e-05/0.3089, allocations: 334 kB / 471 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001381/0.3102, allocations: 0.907 MB / 471.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00177/0.312, allocations: 1.633 MB / 473.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003357/0.3154, allocations: 3.609 MB / 477.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.648e-05/0.3155, allocations: 6.812 kB / 477.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=285) (initialization): time 0.005016/0.3205, allocations: 3.563 MB / 480.7 MB, free: 9.738 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003122/0.3208, allocations: 0.6944 MB / 481.4 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002497/0.3233, allocations: 1.828 MB / 483.2 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001181/0.3245, allocations: 273.7 kB / 483.5 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000798/0.3253, allocations: 234.6 kB / 483.7 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000627/0.326, allocations: 0.7677 MB / 484.5 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/0.3272, allocations: 256.3 kB / 484.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002803/0.3275, allocations: 132.2 kB / 484.8 MB, free: 7.195 MB / 350.1 MB Warning: Assuming fixed start value for the following 36 variables: P2.enableOut.Index:DISCRETE(fixed = true protected = true ) type: Integer P2.enableOut.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P2.enableOut.sumEnablingProbTAout:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active output transitions" type: Real P2.enableOut.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P2.enableOut.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P2.enableOut.nTAout:DISCRETE(fixed = true protected = true ) "number of active output transitions" type: Integer P2.enableOut.nremTAout:DISCRETE(fixed = true protected = true ) "number of remaining active output transitions" type: Integer P2.enableOut.arcWeightSum:DISCRETE(fixed = true protected = true ) "arc weight sum" type: Real P2.enableIn.posTE:DISCRETE(fixed = true protected = true ) "possible enabled transition" type: Integer P2.enableIn.k:DISCRETE(fixed = true protected = true ) "iteration index" type: Integer P2.enableIn.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P2.enableIn.sumEnablingProbTAin:DISCRETE(fixed = true protected = true ) "sum of the enabling probabilities of the active input transitions" type: Real P2.enableIn.nTAin:DISCRETE(fixed = true protected = true ) "number ofactive input transitions" type: Integer P2.enableIn.nremTAin:DISCRETE(fixed = true protected = true ) "number of remaining active input transitions" type: Integer P2.enableIn.Index:DISCRETE(fixed = true protected = true ) "priority Index" type: Integer P2.enableIn.arcWeightSum:DISCRETE(fixed = true protected = true ) "arc weight sum" 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 ) type: Integer P1.enableOut.arcWeightSum:DISCRETE(fixed = true protected = true ) "arc weight sum" 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.enableIn.arcWeightSum:DISCRETE(fixed = true protected = true ) "arc weight sum" type: Real P2.disMarksIn.anytrue:DISCRETE(fixed = true protected = true ) type: Boolean P2.disMarksOut.anytrue:DISCRETE(fixed = true protected = true ) type: Boolean P1.disMarksIn.anytrue:DISCRETE(fixed = true protected = true ) type: Boolean P1.disMarksOut.anytrue:DISCRETE(fixed = true protected = true ) type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 96 * Number of states: 0 () * Number of discrete variables: 231 ($PRE.P2.enableOut.Index,P2.enableOut.Index,$PRE.P2.enableOut.endWhile,P2.enableOut.endWhile,$PRE.P2.enableOut.sumEnablingProbTAout,P2.enableOut.sumEnablingProbTAout,P2.enableOut.randNum,$PRE.P2.enableOut.randNum,P2.enableOut.state128[4],$PRE.P2.enableOut.state128[4],P2.enableOut.state128[3],$PRE.P2.enableOut.state128[3],P2.enableOut.state128[2],$PRE.P2.enableOut.state128[2],P2.enableOut.state128[1],$PRE.P2.enableOut.state128[1],$PRE.P2.enableOut.posTE,P2.enableOut.posTE,$PRE.P2.enableOut.k,P2.enableOut.k,$PRE.P2.enableOut.nTAout,P2.enableOut.nTAout,$PRE.P2.enableOut.nremTAout,P2.enableOut.nremTAout,$PRE.P2.enableOut.arcWeightSum,P2.enableOut.arcWeightSum,P2.delayPassedOut.numtrue,P2.delayPassedOut.anytrue,$whenCondition6,$PRE.P2.enableIn.posTE,P2.enableIn.posTE,$PRE.P2.enableIn.k,P2.enableIn.k,$PRE.P2.enableIn.endWhile,P2.enableIn.endWhile,P2.enableIn.randNum,$PRE.P2.enableIn.randNum,P2.enableIn.state128[4],$PRE.P2.enableIn.state128[4],P2.enableIn.state128[3],$PRE.P2.enableIn.state128[3],P2.enableIn.state128[2],$PRE.P2.enableIn.state128[2],P2.enableIn.state128[1],$PRE.P2.enableIn.state128[1],P2.enableIn.cumEnablingProb[1],$PRE.P2.enableIn.cumEnablingProb[1],$PRE.P2.enableIn.sumEnablingProbTAin,P2.enableIn.sumEnablingProbTAin,$PRE.P2.enableIn.nTAin,P2.enableIn.nTAin,$PRE.P2.enableIn.nremTAin,P2.enableIn.nremTAin,P2.enableIn.remTAin[1],$PRE.P2.enableIn.remTAin[1],$PRE.P2.enableIn.Index,P2.enableIn.Index,$PRE.P2.enableIn.arcWeightSum,P2.enableIn.arcWeightSum,P2.enableIn.disTAin[1],$PRE.P2.enableIn.disTAin[1],$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.enableOut.arcWeightSum,P1.enableOut.arcWeightSum,P1.enableOut.disTAout[1],$PRE.P1.enableOut.disTAout[1],$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.enableIn.arcWeightSum,P1.enableIn.arcWeightSum,P1.enableIn.disTAin[1],$PRE.P1.enableIn.disTAin[1],$PRE.P1.disMarksInOut,P1.outTransition[1].tokenInOut,$PRE.P2.disMarksIn.anytrue,$PRE.P2.disMarksOut.anytrue,P2.disMarksInOut,$whenCondition5,$PRE.P1.disMarksIn.anytrue,$PRE.P1.disMarksOut.anytrue,P1.disMarksInOut,$whenCondition4,P2.disMarksOut.numtrue,P2.disMarksOut.anytrue,P2.inTransition[1].disPlace,P2.inTransition[1].maxTokensint,P2.inTransition[1].tint,T1.outPlaces[2].disTransition,T1.outPlaces[2].enabledByInPlaces,P2.reStart,T1.firingCon,T1.outPlaces[1].disTransition,T1.outPlaces[1].enabledByInPlaces,P1.inTransition[1].disPlace,P1.inTransition[1].maxTokensint,P1.inTransition[1].tint,T1.inPlaces[1].disTransition,P1.outTransition[1].normalArc,P1.outTransition[1].testValueint,P1.outTransition[1].arcType,P1.outTransition[1].disPlace,P1.outTransition[1].minTokensint,P1.outTransition[1].tint,P1.reStart,P1.disMarksOut.vec[1],P1.disMarksOut.numtrue,P1.disMarksOut.anytrue,P1.disMarksIn.vec[1],P1.disMarksIn.numtrue,P1.disMarksIn.anytrue,P2.disMarksIn.vec[1],P2.disMarksIn.numtrue,P2.disMarksIn.anytrue,P1.delayPassedOut.vec[1],P1.delayPassedIn.vec[1],T1.activation.arcWeightIntIn[1],T1.activation.arcWeightIntOut[1],T1.activation.arcWeightIntOut[2],P2.delayPassedIn.vec[1],T1.activation.disPlaceOut[2],T1.activation.maxTokensInt[2],T1.activation.tIntOut[2],T1.activation.disPlaceOut[1],T1.activation.maxTokensInt[1],T1.activation.tIntOut[1],T1.activation.normalArc[1],T1.activation.testValueInt[1],T1.activation.arcType[1],T1.activation.disPlaceIn[1],T1.activation.minTokensInt[1],T1.activation.tIntIn[1],P2.emptying.numtrue,P2.emptying.anytrue,P2.feeding.numtrue,P2.feeding.anytrue,P2.feeding.vec[1],P2.delayPassedIn.numtrue,P2.delayPassedIn.anytrue,P2.enableIn.TEin[1],$PRE.P2.enableIn.TEin[1],P2.enableIn.TEin_[1],P2.enableIn.active[1],P2.fireIn[1],$PRE.P2.fireIn[1],T1.fire_,T1.activation.NoTokens,T1.activation.weaklyOutputActiveVec[2],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T1.activation.emptied[2],T1.activation.emptied[1],T1.activation.fed[1],P1.emptying.numtrue,P1.emptying.anytrue,P1.emptying.vec[1],P1.feeding.numtrue,P1.feeding.anytrue,P1.feeding.vec[1],P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.enableOut.TEout[1],$PRE.P1.enableOut.TEout[1],P1.enableOut.TEout_[1],P1.enableOut.TAout[1],P1.enableIn.TEin[1],$PRE.P1.enableIn.TEin[1],P1.enableIn.TEin_[1],P1.enableIn.active[1],P1.fireOut[1],$PRE.P1.fireOut[1],P1.fireIn[1],$PRE.P1.fireIn[1],$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (240): * Single equations (assignments): 218 * Array equations: 0 * Algorithm blocks: 21 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.001907/0.3294, allocations: 1.465 MB / 486.3 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004876/0.3299, allocations: 143.9 kB / 486.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005962/0.3358, allocations: 4.355 MB / 490.8 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.281e-05/0.3359, allocations: 15.92 kB / 490.8 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.238e-06/0.3359, allocations: 0 / 490.8 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.716e-06/0.3359, allocations: 4 kB / 490.8 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01049/0.3464, allocations: 6.37 MB / 497.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.006964/0.3534, allocations: 4.198 MB / 0.4896 GB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002871/0.3538, allocations: 47.91 kB / 0.4897 GB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005858/0.3544, allocations: 196.7 kB / 0.4899 GB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003369/0.3547, allocations: 91.94 kB / 0.49 GB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000713/0.3554, allocations: 0.7449 MB / 0.4907 GB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3555, allocations: 64 / 0.4907 GB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01053/0.366, allocations: 6.458 MB / 0.497 GB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002154/0.3663, allocations: 171.7 kB / 0.4972 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005519/0.3668, allocations: 159.9 kB / 0.4973 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.3679, allocations: 147.9 kB / 0.4975 GB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006515/0.3686, allocations: 340.2 kB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003317/0.369, allocations: 103.9 kB / 0.4979 GB, free: 13.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005035/0.3695, allocations: 382.8 kB / 0.4982 GB, free: 13.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3695, allocations: 0 / 0.4982 GB, free: 13.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002113/0.3716, allocations: 0.5888 MB / 0.4988 GB, free: 13.03 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (P1.t_,P2.t_) * Number of discrete variables: 119 (P2.disMarksInOut,$cse3[1],$whenCondition5,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition3,P1.outTransition[1].tokenInOut,P1.disMarksInOut,P1.fireIn[1],P1.fireOut[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.disTAin[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.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.disTAout[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.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.disMarksOut.anytrue,P1.disMarksOut.numtrue,P1.disMarksIn.anytrue,P1.disMarksIn.numtrue,P1.feeding.vec[1],P1.feeding.anytrue,P1.feeding.numtrue,P1.emptying.vec[1],P1.emptying.anytrue,P1.emptying.numtrue,T1.activation.fed[1],T1.activation.emptied[1],T1.activation.emptied[2],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyOutputActiveVec[2],T1.activation.NoTokens,T1.fire_,P2.fireIn[1],P2.enableIn.active[1],P2.enableIn.TEin_[1],P2.enableIn.state128[1],P2.enableIn.state128[2],P2.enableIn.state128[3],P2.enableIn.state128[4],P2.enableIn.TEin[1],P2.enableIn.disTAin[1],P2.enableIn.remTAin[1],P2.enableIn.cumEnablingProb[1],P2.enableIn.arcWeightSum,P2.enableIn.nremTAin,P2.enableIn.nTAin,P2.enableIn.k,P2.enableIn.posTE,P2.enableIn.randNum,P2.enableIn.sumEnablingProbTAin,P2.enableIn.endWhile,P2.enableIn.Index,P2.delayPassedIn.anytrue,P2.delayPassedIn.numtrue,P2.disMarksOut.anytrue,P2.disMarksOut.numtrue,P2.disMarksIn.anytrue,P2.disMarksIn.numtrue,P2.feeding.vec[1],P2.feeding.anytrue,P2.feeding.numtrue,P2.emptying.anytrue,P2.emptying.numtrue,$whenCondition6,P2.enableOut.state128[1],P2.enableOut.state128[2],P2.enableOut.state128[3],P2.enableOut.state128[4],P2.enableOut.arcWeightSum,P2.enableOut.nremTAout,P2.enableOut.nTAout,P2.enableOut.k,P2.enableOut.posTE,P2.enableOut.randNum,P2.enableOut.sumEnablingProbTAout,P2.enableOut.endWhile,P2.enableOut.Index,P2.delayPassedOut.anytrue,P2.delayPassedOut.numtrue) * Number of discrete states: 106 (P2.delayPassedOut.numtrue,P2.delayPassedOut.anytrue,P2.enableOut.Index,P2.enableOut.endWhile,P2.enableOut.sumEnablingProbTAout,P2.enableOut.state128[4],P2.enableOut.state128[3],P2.enableOut.state128[2],P2.enableOut.state128[1],P2.enableOut.randNum,P2.enableOut.posTE,P2.enableOut.k,P2.enableOut.nTAout,P2.enableOut.nremTAout,P2.enableOut.arcWeightSum,$whenCondition6,P1.disMarksInOut,P2.fireIn[1],P2.disMarksOut.anytrue,P2.disMarksIn.anytrue,P1.fireIn[1],P1.fireOut[1],P1.disMarksOut.anytrue,P1.disMarksIn.anytrue,P2.emptying.numtrue,P2.emptying.anytrue,P2.feeding.numtrue,P2.feeding.anytrue,P2.disMarksIn.numtrue,P2.disMarksOut.numtrue,P2.delayPassedIn.numtrue,P2.delayPassedIn.anytrue,P1.emptying.numtrue,P1.emptying.anytrue,P1.feeding.numtrue,P1.feeding.anytrue,T1.activation.weaklyOutputActiveVec[2],T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T1.activation.NoTokens,P2.enableIn.TEin_[1],P2.enableIn.posTE,P2.enableIn.k,P2.enableIn.endWhile,P2.enableIn.state128[4],P2.enableIn.state128[3],P2.enableIn.state128[2],P2.enableIn.state128[1],P2.enableIn.randNum,P2.enableIn.cumEnablingProb[1],P2.enableIn.sumEnablingProbTAin,P2.enableIn.nTAin,P2.enableIn.nremTAin,P2.enableIn.remTAin[1],P2.enableIn.Index,P2.enableIn.arcWeightSum,P2.enableIn.disTAin[1],$whenCondition3,P2.enableIn.TEin[1],P1.disMarksIn.numtrue,P1.disMarksOut.numtrue,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.enableOut.TEout_[1],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,P1.enableOut.arcWeightSum,P1.enableOut.disTAout[1],$whenCondition2,P1.enableOut.TEout[1],P1.enableIn.TEin_[1],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,P1.enableIn.arcWeightSum,P1.enableIn.disTAin[1],$whenCondition1,P1.enableIn.TEin[1],P2.disMarkChange,P1.disMarkChange) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 40 * Array equations: 1 * Algorithm blocks: 17 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001209/0.3728, allocations: 0.4998 MB / 0.4993 GB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006393/0.3792, allocations: 4.581 MB / 0.5038 GB, free: 7.684 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.3793, allocations: 0 / 0.5038 GB, free: 7.684 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005939/0.3852, allocations: 5.77 MB / 0.5094 GB, free: 1.688 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001361/0.3866, allocations: 188.5 kB / 0.5096 GB, free: 1.504 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006112/0.3928, allocations: 3.937 MB / 0.5134 GB, free: 13.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008308/0.3936, allocations: 1.249 MB / 0.5147 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002419/0.3939, allocations: 71.42 kB / 0.5147 GB, free: 12.18 MB / 398.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3939, allocations: 8 kB / 0.5147 GB, free: 12.17 MB / 398.1 MB Notification: Performance of Templates: time 0.04657/0.4405, allocations: 28.49 MB / 0.5426 GB, free: 15.56 MB / 430.1 MB make -j1 -f PNlib_PNlib.Examples.ConTest.LoopAndArcweight.makefile make -j1 -f PNlib_PNlib.Examples.ConTest.LoopAndArcweight.makefile clang++ -std=c++14 -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.ConTest.LoopAndArcweightCalcHelperMain.o OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightCalcHelperMain.cpp:25: In file included from ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgLoopMain.cpp:12: ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgloop319.cpp:107:299: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_decreasingFactor(1, 1, __z[0], _system->_P1_P_minMarks_, _system->_P1_P_maxMarks_, _system->_T1_P_speedSumIn_(1), _system->_T1_P_speedSumOut_(1), tmp217, tmp218, _system->_P1_P_prelimSpeedIn_, _system->_P1_P_prelimSpeedIn_, tmp219, tmp220, (_system->_P1_P_fireIn_ && (!tmp221)), (_system->_P1_P_fireOut_ && (!tmp222)), tmp223); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgloop319.cpp:107:339: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_decreasingFactor(1, 1, __z[0], _system->_P1_P_minMarks_, _system->_P1_P_maxMarks_, _system->_T1_P_speedSumIn_(1), _system->_T1_P_speedSumOut_(1), tmp217, tmp218, _system->_P1_P_prelimSpeedIn_, _system->_P1_P_prelimSpeedIn_, tmp219, tmp220, (_system->_P1_P_fireIn_ && (!tmp221)), (_system->_P1_P_fireOut_ && (!tmp222)), tmp223); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgloop319.cpp:141:249: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_decreasingFactor(1, 0, __z[1], _system->_P2_P_minMarks_, _system->_P2_P_maxMarks_, _system->_P2_P_conMarkChange_, 0.0, tmp225, tmp226, _system->_P1_P_prelimSpeedIn_, tmp227, tmp228, tmp229, (_system->_P2_P_fireIn_ && (!tmp230)), (tmp231 && (!tmp232)), tmp233); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgloop319.cpp:141:272: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_decreasingFactor(1, 0, __z[1], _system->_P2_P_minMarks_, _system->_P2_P_maxMarks_, _system->_P2_P_conMarkChange_, 0.0, tmp225, tmp226, _system->_P1_P_prelimSpeedIn_, tmp227, tmp228, tmp229, (_system->_P2_P_fireIn_ && (!tmp230)), (tmp231 && (!tmp232)), tmp233); ^~~~~~~ In file included from OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightCalcHelperMain.cpp:25: In file included from ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgLoopMain.cpp:15: ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgloop82.cpp:112:299: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_decreasingFactor(1, 1, __z[0], _system->_P1_P_minMarks_, _system->_P1_P_maxMarks_, _system->_T1_P_speedSumIn_(1), _system->_T1_P_speedSumOut_(1), tmp241, tmp242, _system->_P1_P_prelimSpeedIn_, _system->_P1_P_prelimSpeedIn_, tmp243, tmp244, (_system->_P1_P_fireIn_ && (!tmp245)), (_system->_P1_P_fireOut_ && (!tmp246)), tmp247); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgloop82.cpp:112:339: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_decreasingFactor(1, 1, __z[0], _system->_P1_P_minMarks_, _system->_P1_P_maxMarks_, _system->_T1_P_speedSumIn_(1), _system->_T1_P_speedSumOut_(1), tmp241, tmp242, _system->_P1_P_prelimSpeedIn_, _system->_P1_P_prelimSpeedIn_, tmp243, tmp244, (_system->_P1_P_fireIn_ && (!tmp245)), (_system->_P1_P_fireOut_ && (!tmp246)), tmp247); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgloop82.cpp:139:249: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_decreasingFactor(1, 0, __z[1], _system->_P2_P_minMarks_, _system->_P2_P_maxMarks_, _system->_P2_P_conMarkChange_, 0.0, tmp248, tmp249, _system->_P1_P_prelimSpeedIn_, tmp250, tmp251, tmp252, (_system->_P2_P_fireIn_ && (!tmp253)), (tmp254 && (!tmp255)), tmp256); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgloop82.cpp:139:272: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_decreasingFactor(1, 0, __z[1], _system->_P2_P_minMarks_, _system->_P2_P_maxMarks_, _system->_P2_P_conMarkChange_, 0.0, tmp248, tmp249, _system->_P1_P_prelimSpeedIn_, tmp250, tmp251, tmp252, (_system->_P2_P_fireIn_ && (!tmp253)), (tmp254 && (!tmp255)), tmp256); ^~~~~~~ In file included from OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightInitialize.cpp:1214:77: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_OddsAndEnds_boolOr(_P1_P_enableOut_P_TEout__,(!_functions->_OMC_LIT1),tmp48); ^~~~~~~~~~~~~~~~~~~~~~ In file included from OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightCalcHelperMain.cpp:33: ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweight.cpp:1561:63: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_OddsAndEnds_boolAnd(tmp325,(!tmp326),tmp327); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweight.cpp:1982:81: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_OddsAndEnds_boolAnd(_P1_P_enableOut_P_TAout_,(!tmp369),tmp370); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweight.cpp:2191:77: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_OddsAndEnds_boolOr(_P1_P_enableOut_P_TEout__,(!_functions->_OMC_LIT1),tmp408); ^~~~~~~~~~~~~~~~~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweight.cpp:2581:63: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_OddsAndEnds_boolAnd(tmp418,(!tmp419),tmp420); ^~~~~~~ 13 errors generated. make: *** [: OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightCalcHelperMain.o] Error 1