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.001106/0.001106, allocations: 99.19 kB / 16.02 MB, free: 76 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.001525/0.001525, allocations: 182.2 kB / 16.92 MB, free: 6.918 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.413/1.413, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1946/0.1946, allocations: 16.73 MB / 308.8 MB, free: 15.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003653/0.0003658, allocations: 8 kB / 374.1 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2816, allocations: 54.47 MB / 428.5 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.LoopAndArcweight): time 0.002712/0.2844, allocations: 2.441 MB / 431 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004694/0.2891, allocations: 2.654 MB / 433.6 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009714/0.2901, allocations: 9.75 kB / 433.6 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005772/0.2907, allocations: 171.1 kB / 433.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001157/0.2919, allocations: 162 kB / 434 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002396/0.2943, allocations: 0.9083 MB / 434.9 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002288/0.2966, allocations: 2.118 MB / 437 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005197/0.2971, allocations: 345.9 kB / 437.3 MB, free: 35.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001549/0.2987, allocations: 0.7422 MB / 438.1 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001646/0.3003, allocations: 0.6648 MB / 438.7 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000632/0.301, allocations: 77.34 kB / 438.8 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001351/0.3023, allocations: 459.3 kB / 439.3 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000505/0.3029, allocations: 320.1 kB / 439.6 MB, free: 34.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001134/0.304, allocations: 0.7595 MB / 440.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001618/0.3056, allocations: 1.606 MB / 441.9 MB, free: 34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3056, allocations: 0 / 441.9 MB, free: 34 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.3057, allocations: 0 / 441.9 MB, free: 34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.726e-05/0.3057, allocations: 0 / 441.9 MB, free: 34 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.002087/0.3078, allocations: 2.025 MB / 444 MB, free: 32.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.3078, allocations: 8.688 kB / 444 MB, free: 32.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001478/0.3093, allocations: 360 kB / 444.3 MB, free: 32.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009259/0.3102, allocations: 0.7556 MB / 445.1 MB, free: 31.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002528/0.3105, allocations: 388.7 kB / 445.5 MB, free: 31.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002505/0.3108, allocations: 186.6 kB / 445.6 MB, free: 31.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00403/0.3148, allocations: 3.069 MB / 448.7 MB, free: 30.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.458e-05/0.3149, allocations: 0 / 448.7 MB, free: 30.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001929/0.3151, allocations: 86.72 kB / 448.8 MB, free: 30.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002305/0.3153, allocations: 158.7 kB / 449 MB, free: 30.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003408/0.3187, allocations: 2.245 MB / 451.2 MB, free: 29.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007131/0.3259, allocations: 5.755 MB / 457 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003046/0.3289, allocations: 2.946 MB / 459.9 MB, free: 24.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002818/0.3318, allocations: 2.758 MB / 462.7 MB, free: 22.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001916/0.332, allocations: 114.9 kB / 462.8 MB, free: 22.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002567/0.3346, allocations: 1.726 MB / 464.5 MB, free: 21.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=148): time 2.625e-06/0.3346, allocations: 3.938 kB / 464.5 MB, free: 21.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=148): time 0.008895/0.3435, allocations: 5.499 MB / 470 MB, free: 19.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005037/0.344, allocations: 1.082 MB / 471.1 MB, free: 18.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/0.3451, allocations: 0.6803 MB / 471.8 MB, free: 18.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002003/0.3453, allocations: 106.1 kB / 471.9 MB, free: 18.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004133/0.3457, allocations: 0.5124 MB / 472.4 MB, free: 17.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003816/0.3461, allocations: 395.7 kB / 472.8 MB, free: 17.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004093/0.3465, allocations: 275.3 kB / 473 MB, free: 17.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.547e-05/0.3466, allocations: 333.5 kB / 473.4 MB, free: 16.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001639/0.3483, allocations: 0.9126 MB / 474.3 MB, free: 16.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002021/0.3503, allocations: 1.634 MB / 475.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003963/0.3543, allocations: 3.63 MB / 479.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.259e-05/0.3544, allocations: 6.312 kB / 479.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=285) (initialization): time 0.005981/0.3604, allocations: 3.574 MB / 483.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004005/0.3608, allocations: 0.6938 MB / 483.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00278/0.3636, allocations: 1.843 MB / 485.7 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001315/0.3649, allocations: 333.4 kB / 486 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008382/0.3658, allocations: 235.1 kB / 486.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006106/0.3664, allocations: 0.7784 MB / 487 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001334/0.3678, allocations: 273.8 kB / 487.3 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002907/0.3681, allocations: 123.9 kB / 487.4 MB, free: 7.906 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.002157/0.3702, allocations: 1.467 MB / 488.8 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005458/0.3708, allocations: 142.9 kB / 489 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005835/0.3766, allocations: 4.371 MB / 493.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.472e-05/0.3767, allocations: 11.98 kB / 493.4 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.517e-06/0.3767, allocations: 0 / 493.4 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.537e-06/0.3767, allocations: 3.984 kB / 493.4 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009663/0.3864, allocations: 6.396 MB / 499.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0063/0.3927, allocations: 4.218 MB / 0.4922 GB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002835/0.3931, allocations: 59.89 kB / 0.4922 GB, free: 6.766 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006806/0.3938, allocations: 228.7 kB / 0.4924 GB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002181/0.394, allocations: 91.94 kB / 0.4925 GB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007218/0.3947, allocations: 0.7397 MB / 0.4933 GB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/0.3947, allocations: 4.031 kB / 0.4933 GB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009935/0.4047, allocations: 6.49 MB / 0.4996 GB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002927/0.405, allocations: 183.8 kB / 0.4998 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000471/0.4055, allocations: 152 kB / 0.4999 GB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.4066, allocations: 167.8 kB / 0.5001 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006138/0.4073, allocations: 340.2 kB / 0.5004 GB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002732/0.4076, allocations: 99.86 kB / 0.5005 GB, free: 14.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005139/0.4081, allocations: 382.8 kB / 0.5009 GB, free: 13.74 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4081, allocations: 0 / 0.5009 GB, free: 13.74 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002127/0.4102, allocations: 0.5927 MB / 0.5014 GB, free: 13.15 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.001235/0.4115, allocations: 0.4887 MB / 0.5019 GB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006643/0.4181, allocations: 4.607 MB / 0.5064 GB, free: 7.785 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.4182, allocations: 0 / 0.5064 GB, free: 7.785 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006229/0.4244, allocations: 5.78 MB / 0.5121 GB, free: 1.781 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001446/0.4259, allocations: 197.5 kB / 0.5123 GB, free: 1.594 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007179/0.4331, allocations: 3.945 MB / 0.5161 GB, free: 13.61 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/0.4342, allocations: 1.257 MB / 0.5173 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002798/0.4345, allocations: 75.42 kB / 0.5174 GB, free: 12.25 MB / 398.1 MB Notification: Performance of SimCode: time 1.232e-06/0.4345, allocations: 0 / 0.5174 GB, free: 12.25 MB / 398.1 MB Notification: Performance of Templates: time 0.04202/0.4766, allocations: 28.33 MB / 0.5451 GB, free: 15.8 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