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.00173/0.001729, allocations: 108 kB / 16.41 MB, free: 6.469 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.002082/0.002082, allocations: 193.6 kB / 17.34 MB, free: 5.758 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.785/2.785, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.2014/0.2014, allocations: 16.73 MB / 307.9 MB, free: 14.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002122/0.002122, allocations: 63.91 kB / 427 MB, free: 10.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2123, allocations: 53.48 MB / 480.5 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.LoopAndArcweight): time 0.006922/0.2193, allocations: 2.718 MB / 483.2 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007215/0.2266, allocations: 2.258 MB / 485.4 MB, free: 4 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001741/0.2284, allocations: 11.98 kB / 485.4 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009634/0.2294, allocations: 222.2 kB / 485.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001595/0.2311, allocations: 222.2 kB / 485.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008999/0.2402, allocations: 1.032 MB / 486.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01027/0.2505, allocations: 2.637 MB / 489.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001089/0.2517, allocations: 363.3 kB / 489.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002644/0.2543, allocations: 0.9777 MB / 490.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002565/0.2569, allocations: 0.7816 MB / 491.7 MB, free: 9.754 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001038/0.258, allocations: 208 kB / 491.9 MB, free: 9.551 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003158/0.2612, allocations: 0.6087 MB / 492.5 MB, free: 8.941 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009477/0.2622, allocations: 374.8 kB / 492.8 MB, free: 8.574 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009979/0.2722, allocations: 0.879 MB / 493.7 MB, free: 7.691 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006011/0.2783, allocations: 2.329 MB / 496.1 MB, free: 5.355 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.214e-05/0.2784, allocations: 4 kB / 496.1 MB, free: 5.352 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.2784, allocations: 0 / 496.1 MB, free: 5.352 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.446e-05/0.2785, allocations: 0 / 496.1 MB, free: 5.352 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.0169/0.2954, allocations: 2.367 MB / 498.4 MB, free: 2.801 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.667e-05/0.2955, allocations: 11.89 kB / 498.4 MB, free: 2.789 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003797/0.2993, allocations: 354.9 kB / 498.8 MB, free: 2.441 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007425/0.3068, allocations: 0.7479 MB / 499.5 MB, free: 1.656 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.008891/0.3158, allocations: 385.8 kB / 499.9 MB, free: 1.223 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001426/0.3173, allocations: 191.9 kB / 0.4884 GB, free: 1.035 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01204/0.3294, allocations: 3.048 MB / 0.4914 GB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.33e-05/0.3295, allocations: 3.938 kB / 0.4914 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004167/0.33, allocations: 91.95 kB / 0.4914 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004884/0.3305, allocations: 154.4 kB / 0.4916 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00793/0.3384, allocations: 2.227 MB / 0.4938 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0165/0.355, allocations: 5.738 MB / 0.4994 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006396/0.3615, allocations: 2.93 MB / 0.5022 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.5467/0.9083, allocations: 2.745 MB / 0.5049 GB, free: 34.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00479/0.9131, allocations: 5.817 MB / 0.5106 GB, free: 28.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00581/0.919, allocations: 1.72 MB / 0.5123 GB, free: 27.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 7.163e-06/0.9191, allocations: 1.469 kB / 0.5123 GB, free: 27.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=148): time 0.01551/0.9346, allocations: 5.434 MB / 0.5176 GB, free: 25.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001049/0.9357, allocations: 1.073 MB / 0.5186 GB, free: 24.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001903/0.9377, allocations: 0.6831 MB / 0.5193 GB, free: 24.51 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005757/0.9383, allocations: 105.4 kB / 0.5194 GB, free: 24.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007839/0.9391, allocations: 0.5148 MB / 0.5199 GB, free: 24.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.005083/0.9442, allocations: 392.3 kB / 0.5203 GB, free: 23.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001411/0.9456, allocations: 469.6 kB / 0.5207 GB, free: 23.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.9458, allocations: 337.2 kB / 0.521 GB, free: 23.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002744/0.9486, allocations: 0.908 MB / 0.5219 GB, free: 23.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003346/0.9519, allocations: 1.633 MB / 0.5235 GB, free: 21.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01146/0.9634, allocations: 3.614 MB / 0.5271 GB, free: 18.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.901e-05/0.9636, allocations: 6.156 kB / 0.5271 GB, free: 18.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=285) (initialization): time 0.01526/0.9789, allocations: 3.564 MB / 0.5305 GB, free: 17.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007079/0.9797, allocations: 0.6977 MB / 0.5312 GB, free: 16.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006102/0.9858, allocations: 1.947 MB / 0.5331 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002419/0.9883, allocations: 291 kB / 0.5334 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001811/0.9901, allocations: 235.5 kB / 0.5336 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001448/0.9916, allocations: 0.8215 MB / 0.5344 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002811/0.9945, allocations: 258.3 kB / 0.5347 GB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005977/0.9951, allocations: 113.4 kB / 0.5348 GB, free: 14.83 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.003577/0.9987, allocations: 1.48 MB / 0.5362 GB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007128/0.9994, allocations: 147.4 kB / 0.5364 GB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01053/1.01, allocations: 4.358 MB / 0.5406 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.159e-05/1.01, allocations: 8 kB / 0.5406 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.771e-05/1.01, allocations: 3.938 kB / 0.5406 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/1.01, allocations: 9.844 kB / 0.5406 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01299/1.023, allocations: 6.405 MB / 0.5469 GB, free: 3.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.009151/1.032, allocations: 4.225 MB / 0.551 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004542/1.033, allocations: 55.89 kB / 0.5511 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008749/1.034, allocations: 184.7 kB / 0.5513 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005696/1.034, allocations: 87.95 kB / 0.5513 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/1.036, allocations: 0.7968 MB / 0.5521 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.036, allocations: 0 / 0.5521 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01849/1.054, allocations: 6.51 MB / 0.5585 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005587/1.055, allocations: 175.7 kB / 0.5586 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00104/1.056, allocations: 156 kB / 0.5588 GB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002065/1.058, allocations: 143.9 kB / 0.5589 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002205/1.06, allocations: 351.8 kB / 0.5593 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005352/1.061, allocations: 99.39 kB / 0.5594 GB, free: 6.812 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009446/1.062, allocations: 386.8 kB / 0.5597 GB, free: 6.434 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.5e-07/1.062, allocations: 0 / 0.5597 GB, free: 6.434 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004377/1.066, allocations: 0.5941 MB / 0.5603 GB, free: 5.852 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.001834/1.068, allocations: 0.4983 MB / 0.5608 GB, free: 5.371 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01192/1.08, allocations: 4.601 MB / 0.5653 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.149e-05/1.08, allocations: 8.125 kB / 0.5653 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01111/1.091, allocations: 5.777 MB / 0.5709 GB, free: 10.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00197/1.093, allocations: 189.5 kB / 0.5711 GB, free: 10.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01207/1.105, allocations: 3.493 MB / 0.5745 GB, free: 6.797 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001773/1.107, allocations: 1.253 MB / 0.5757 GB, free: 5.512 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005253/1.108, allocations: 79.42 kB / 0.5758 GB, free: 5.434 MB / 414.1 MB Notification: Performance of SimCode: time 2.885e-06/1.108, allocations: 0 / 0.5758 GB, free: 5.434 MB / 414.1 MB Notification: Performance of Templates: time 0.08208/1.19, allocations: 28.99 MB / 0.6041 GB, free: 8.32 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