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.002006/0.002005, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.002059/0.002059, allocations: 183 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.684/2.684, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.144/0.144, allocations: 16.73 MB / 307.9 MB, free: 14.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00251/0.002511, allocations: 63.89 kB / 427 MB, free: 10.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2139/0.2165, allocations: 53.47 MB / 480.5 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.LoopAndArcweight): time 0.007518/0.2241, allocations: 2.72 MB / 483.2 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009328/0.2334, allocations: 2.25 MB / 485.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002192/0.2357, allocations: 11.94 kB / 485.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001635/0.2374, allocations: 222.3 kB / 485.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002849/0.2404, allocations: 222.3 kB / 485.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006407/0.2469, allocations: 1.036 MB / 486.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007069/0.254, allocations: 2.634 MB / 489.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001323/0.2554, allocations: 363.3 kB / 489.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003265/0.2587, allocations: 0.9855 MB / 490.9 MB, free: 10.49 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002802/0.2616, allocations: 0.7816 MB / 491.7 MB, free: 9.703 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001389/0.263, allocations: 204 kB / 491.9 MB, free: 9.504 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002966/0.266, allocations: 0.6048 MB / 492.5 MB, free: 8.898 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001151/0.2672, allocations: 374.8 kB / 492.8 MB, free: 8.531 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003141/0.2704, allocations: 0.879 MB / 493.7 MB, free: 7.648 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007074/0.2775, allocations: 2.329 MB / 496.1 MB, free: 5.312 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.22e-05/0.2776, allocations: 4 kB / 496.1 MB, free: 5.309 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.088e-06/0.2776, allocations: 0 / 496.1 MB, free: 5.309 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001251/0.2778, allocations: 0 / 496.1 MB, free: 5.309 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: 415 * Number of variables: 415 Notification: Performance of Generate backend data structure: time 0.01037/0.2882, allocations: 2.367 MB / 498.4 MB, free: 2.758 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.751e-05/0.2883, allocations: 11.89 kB / 498.4 MB, free: 2.746 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0038/0.2921, allocations: 350.9 kB / 498.8 MB, free: 2.402 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002868/0.295, allocations: 0.7518 MB / 499.5 MB, free: 1.613 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008584/0.2959, allocations: 393.7 kB / 499.9 MB, free: 1.172 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001012/0.2969, allocations: 188 kB / 0.4884 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01135/0.3083, allocations: 3.048 MB / 0.4914 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.78e-05/0.3085, allocations: 0 / 0.4914 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007887/0.3093, allocations: 95.95 kB / 0.4914 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005477/0.3099, allocations: 158.3 kB / 0.4916 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008519/0.3184, allocations: 2.22 MB / 0.4938 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01906/0.3375, allocations: 5.738 MB / 0.4994 GB, free: 5.457 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007267/0.3449, allocations: 2.93 MB / 0.5022 GB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.5465/0.8914, allocations: 2.754 MB / 0.5049 GB, free: 34.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005651/0.8971, allocations: 5.817 MB / 0.5106 GB, free: 27.96 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006303/0.9035, allocations: 1.716 MB / 0.5123 GB, free: 27.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 8.796e-06/0.9035, allocations: 1.375 kB / 0.5123 GB, free: 27.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=148): time 0.01904/0.9226, allocations: 5.441 MB / 0.5176 GB, free: 25.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001611/0.9243, allocations: 1.072 MB / 0.5186 GB, free: 24.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002425/0.9268, allocations: 0.6858 MB / 0.5193 GB, free: 24.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006175/0.9274, allocations: 101.5 kB / 0.5194 GB, free: 24.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008488/0.9283, allocations: 0.5108 MB / 0.5199 GB, free: 24.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009266/0.9293, allocations: 394.5 kB / 0.5203 GB, free: 23.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001255/0.9305, allocations: 473 kB / 0.5207 GB, free: 23.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.9307, allocations: 335 kB / 0.521 GB, free: 23.24 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00317/0.9339, allocations: 0.9048 MB / 0.5219 GB, free: 22.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004061/0.938, allocations: 1.634 MB / 0.5235 GB, free: 21.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007866/0.9459, allocations: 3.617 MB / 0.5271 GB, free: 18.92 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.432e-05/0.9461, allocations: 9.531 kB / 0.5271 GB, free: 18.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=285) (initialization): time 0.01155/0.9577, allocations: 3.559 MB / 0.5305 GB, free: 17.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000662/0.9584, allocations: 0.6956 MB / 0.5312 GB, free: 16.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006429/0.9648, allocations: 1.955 MB / 0.5331 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002467/0.9674, allocations: 292.1 kB / 0.5334 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001815/0.9693, allocations: 227.4 kB / 0.5336 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001368/0.9707, allocations: 0.8195 MB / 0.5344 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00275/0.9734, allocations: 260.1 kB / 0.5347 GB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006473/0.9741, allocations: 114.1 kB / 0.5348 GB, free: 14.76 MB / 382.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,9)} Notification: Performance of prepare postOptimizeDAE: time 0.003686/0.9778, allocations: 1.48 MB / 0.5362 GB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008671/0.9787, allocations: 141.5 kB / 0.5364 GB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01091/0.9897, allocations: 4.369 MB / 0.5406 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.997e-05/0.9898, allocations: 8 kB / 0.5406 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-05/0.9898, allocations: 3.938 kB / 0.5406 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.752e-05/0.9899, allocations: 11.59 kB / 0.5407 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01654/1.006, allocations: 6.394 MB / 0.5469 GB, free: 3.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01149/1.018, allocations: 4.231 MB / 0.551 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005498/1.019, allocations: 47.91 kB / 0.5511 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/1.02, allocations: 188.7 kB / 0.5513 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007659/1.021, allocations: 88.73 kB / 0.5513 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001411/1.022, allocations: 0.7878 MB / 0.5521 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/1.022, allocations: 3.938 kB / 0.5521 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02252/1.045, allocations: 6.517 MB / 0.5585 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004416/1.045, allocations: 173.5 kB / 0.5586 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001074/1.046, allocations: 160 kB / 0.5588 GB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002282/1.048, allocations: 151.6 kB / 0.5589 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001354/1.05, allocations: 340.2 kB / 0.5593 GB, free: 6.852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005645/1.05, allocations: 102.8 kB / 0.5594 GB, free: 6.754 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009116/1.051, allocations: 382.8 kB / 0.5597 GB, free: 6.379 MB / 398.1 MB Notification: Performance of sort global known variables: time 5e-07/1.051, allocations: 3.938 kB / 0.5597 GB, free: 6.375 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004321/1.056, allocations: 0.587 MB / 0.5603 GB, free: 5.801 MB / 398.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,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002207/1.058, allocations: 0.4947 MB / 0.5608 GB, free: 5.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01254/1.071, allocations: 4.6 MB / 0.5653 GB, free: 472 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-05/1.071, allocations: 4 kB / 0.5653 GB, free: 468 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01098/1.082, allocations: 5.785 MB / 0.5709 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001911/1.084, allocations: 189.3 kB / 0.5711 GB, free: 10.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01104/1.095, allocations: 3.5 MB / 0.5745 GB, free: 6.738 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001525/1.096, allocations: 1.257 MB / 0.5758 GB, free: 5.449 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004504/1.097, allocations: 79.42 kB / 0.5758 GB, free: 5.371 MB / 414.1 MB Notification: Performance of SimCode: time 1.533e-06/1.097, allocations: 0 / 0.5758 GB, free: 5.371 MB / 414.1 MB Notification: Performance of Templates: time 0.07419/1.171, allocations: 28.8 MB / 0.604 GB, free: 8.457 MB / 446.1 MB make -j1 -f PNlib_PNlib.Examples.ConTest.LoopAndArcweight.makefile make -j1 -f PNlib_PNlib.Examples.ConTest.LoopAndArcweight.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.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.LoopAndArcweightAlgloop323.cpp:119:267: 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_inPlaces1_P_speedSum_, _system->_T1_P_outPlaces1_P_speedSum_, tmp219, tmp220, tmp221, tmp222, tmp223, tmp224, (_system->_P1_P_fireIn_ && (!tmp225)), (_system->_P1_P_fireOut_ && (!tmp226)), tmp227); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgloop323.cpp:119:307: 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_inPlaces1_P_speedSum_, _system->_T1_P_outPlaces1_P_speedSum_, tmp219, tmp220, tmp221, tmp222, tmp223, tmp224, (_system->_P1_P_fireIn_ && (!tmp225)), (_system->_P1_P_fireOut_ && (!tmp226)), tmp227); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgloop323.cpp:149:226: 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, tmp228, tmp229, tmp230, tmp231, tmp232, tmp233, (_system->_P2_P_fireIn_ && (!tmp234)), (tmp235 && (!tmp236)), tmp237); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgloop323.cpp:149: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, tmp228, tmp229, tmp230, tmp231, tmp232, tmp233, (_system->_P2_P_fireIn_ && (!tmp234)), (tmp235 && (!tmp236)), tmp237); ^~~~~~~ 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.LoopAndArcweightAlgloop84.cpp:118:267: 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_inPlaces1_P_speedSum_, _system->_T1_P_outPlaces1_P_speedSum_, tmp246, tmp247, tmp248, tmp249, tmp250, tmp251, (_system->_P1_P_fireIn_ && (!tmp252)), (_system->_P1_P_fireOut_ && (!tmp253)), tmp254); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgloop84.cpp:118:307: 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_inPlaces1_P_speedSum_, _system->_T1_P_outPlaces1_P_speedSum_, tmp246, tmp247, tmp248, tmp249, tmp250, tmp251, (_system->_P1_P_fireIn_ && (!tmp252)), (_system->_P1_P_fireOut_ && (!tmp253)), tmp254); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgloop84.cpp:147:226: 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, tmp255, tmp256, tmp257, tmp258, tmp259, tmp260, (_system->_P2_P_fireIn_ && (!tmp261)), (tmp262 && (!tmp263)), tmp264); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightAlgloop84.cpp:147: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, tmp255, tmp256, tmp257, tmp258, tmp259, tmp260, (_system->_P2_P_fireIn_ && (!tmp261)), (tmp262 && (!tmp263)), tmp264); ^~~~~~~ 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:1560:63: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_OddsAndEnds_boolAnd(tmp333,(!tmp334),tmp335); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweight.cpp:1981:81: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_OddsAndEnds_boolAnd(_P1_P_enableOut_P_TAout_,(!tmp377),tmp378); ^~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweight.cpp:2190:77: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_OddsAndEnds_boolOr(_P1_P_enableOut_P_TEout__,(!_functions->_OMC_LIT1),tmp416); ^~~~~~~~~~~~~~~~~~~~~~ ./OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweight.cpp:2580:63: error: invalid argument type 'StatArrayDim1' to unary expression _functions->PNlib_Functions_OddsAndEnds_boolAnd(tmp426,(!tmp427),tmp428); ^~~~~~~ 13 errors generated. make: *** [: OMCppPNlib_PNlib.Examples.ConTest.LoopAndArcweightCalcHelperMain.o] Error 1