Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.PDtoTD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 102.3 kB / 19.7 MB, free: 2.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 217.9 kB / 23.01 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.431/1.431, allocations: 230.6 MB / 256.8 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo): time 0.07946/0.07946, allocations: 16.95 MB / 330.1 MB, free: 2.316 MB / 254.1 MB " [Timeout remaining time 180] Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PNlib.Examples.DisTest.PDtoTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTD") translateModel(PNlib.Examples.DisTest.PDtoTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="P1.t|T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.PDtoTD") [Timeout 660] "Notification: PNlib requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 71.91 kB / 461 MB, free: 1.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1187, allocations: 57.62 MB / 0.5065 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.PDtoTD): time 0.003338/0.122, allocations: 1.87 MB / 0.5083 GB, free: 6.227 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003762/0.1258, allocations: 1.952 MB / 0.5102 GB, free: 4.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002324/0.126, allocations: 7.938 kB / 0.5102 GB, free: 4.262 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000387/0.1264, allocations: 111.1 kB / 0.5103 GB, free: 4.152 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003936/0.1268, allocations: 139 kB / 0.5105 GB, free: 4.016 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002129/0.129, allocations: 0.9551 MB / 0.5114 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001547/0.1305, allocations: 1.365 MB / 0.5127 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001933/0.1307, allocations: 61.16 kB / 0.5128 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006351/0.1313, allocations: 0.5533 MB / 0.5133 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005631/0.1319, allocations: 394.1 kB / 0.5137 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001267/0.132, allocations: 88 kB / 0.5138 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2214/0.3534, allocations: 0.6475 MB / 0.5144 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003397/0.3537, allocations: 148.7 kB / 0.5146 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006322/0.3544, allocations: 398.3 kB / 0.515 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001758/0.3561, allocations: 1.195 MB / 0.5161 GB, free: 11.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3561, allocations: 1.125 kB / 0.5161 GB, free: 11.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3561, allocations: 0 / 0.5161 GB, free: 11.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.512e-05/0.3561, allocations: 1.156 kB / 0.5161 GB, free: 11.06 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 165 * Number of variables: 165 Notification: Performance of Generate backend data structure: time 0.001698/0.3578, allocations: 1.219 MB / 0.5173 GB, free: 10.26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.3579, allocations: 10.47 kB / 0.5173 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003458/0.3582, allocations: 94.67 kB / 0.5174 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005881/0.3588, allocations: 373.1 kB / 0.5178 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/0.3589, allocations: 112.4 kB / 0.5179 GB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.359, allocations: 78.44 kB / 0.518 GB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001741/0.3608, allocations: 1.321 MB / 0.5192 GB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.112e-05/0.3608, allocations: 4.969 kB / 0.5192 GB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.163e-05/0.3609, allocations: 38.59 kB / 0.5193 GB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001054/0.361, allocations: 54.77 kB / 0.5193 GB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001447/0.3624, allocations: 0.9016 MB / 0.5202 GB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003478/0.3659, allocations: 3.198 MB / 0.5233 GB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.367, allocations: 0.6579 MB / 0.524 GB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008328/0.3678, allocations: 0.567 MB / 0.5245 GB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.85e-05/0.3679, allocations: 8.047 kB / 0.5245 GB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001317/0.3692, allocations: 0.8941 MB / 0.5254 GB, free: 7.344 MB / 382.1 MB Notification: Performance of pre-optimization done (n=75): time 2.514e-06/0.3692, allocations: 0 / 0.5254 GB, free: 7.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=75): time 0.003627/0.3728, allocations: 2.542 MB / 0.5279 GB, free: 6.289 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002299/0.3731, allocations: 0.5647 MB / 0.5285 GB, free: 5.707 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004643/0.3735, allocations: 416.6 kB / 0.5288 GB, free: 5.488 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.667e-05/0.3736, allocations: 70.97 kB / 0.5289 GB, free: 5.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.3738, allocations: 272.7 kB / 0.5292 GB, free: 5.219 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.3739, allocations: 198 kB / 0.5294 GB, free: 5.082 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002969/0.3742, allocations: 227.5 kB / 0.5296 GB, free: 4.988 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.3743, allocations: 379.3 kB / 0.5299 GB, free: 4.645 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006812/0.375, allocations: 441.6 kB / 0.5304 GB, free: 4.512 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000827/0.3758, allocations: 0.8138 MB / 0.5312 GB, free: 3.879 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002477/0.3783, allocations: 2.534 MB / 0.5336 GB, free: 2.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.384e-05/0.3783, allocations: 3.5 kB / 0.5336 GB, free: 2.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002614/0.3809, allocations: 1.848 MB / 0.5354 GB, free: 1.184 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001488/0.3811, allocations: 336 kB / 0.5358 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.116e-05/0.3811, allocations: 10.66 kB / 0.5358 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.353e-05/0.3811, allocations: 19.09 kB / 0.5358 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003699/0.3815, allocations: 124.5 kB / 0.5359 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.012e-05/0.3815, allocations: 23.56 kB / 0.5359 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000552/0.3821, allocations: 140.4 kB / 0.5361 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.797e-05/0.3822, allocations: 55.41 kB / 0.5361 GB, free: 0.7539 MB / 382.1 MB Warning: Assuming fixed start value for the following 25 variables: P1.enableOut.valid:DISCRETE(fixed = true protected = true ) \"valid solution\" type: Boolean P1.enableOut.benefitLimit:DISCRETE(fixed = true protected = true ) \"best valid benefit\" type: Real P1.enableOut.benefitMax:DISCRETE(fixed = true protected = true ) \"theoretical benefit\" type: Real P1.enableOut.posTE:DISCRETE(fixed = true protected = true ) \"possible enabled transition\" type: Integer P1.enableOut.k:DISCRETE(fixed = true protected = true ) \"iteration index\" type: Integer P1.enableOut.endWhile:DISCRETE(fixed = true protected = true ) type: Boolean P1.enableOut.sumEnablingProbTAout:DISCRETE(fixed = true protected = true ) \"sum of the enabling probabilities of the active output transitions\" type: Real P1.enableOut.nTAout:DISCRETE(fixed = true protected = true ) \"number of active output transitions\" type: Integer P1.enableOut.nremTAout:DISCRETE(fixed = true protected = true ) \"number of remaining active output transitions\" type: Integer P1.enableOut.Index:DISCRETE(fixed = true protected = true ) \"priority Index\" type: Integer T1.ani:DISCRETE(fixed = true protected = true ) \"for transition animation\" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) \"for transition animation\" type: Real P1.firingSumOut.firingSum:DISCRETE(fixed = true protected = true ) \"firing sum\" type: Integer P1.firingSumIn.firingSum:DISCRETE(fixed = true protected = true ) \"firing sum\" type: Integer P1.enableIn.benefitLimit:DISCRETE(fixed = true protected = true ) \"best valid benefit\" type: Real P1.enableIn.valid:DISCRETE(fixed = true protected = true ) \"valid solution\" type: Boolean P1.enableIn.benefitMax:DISCRETE(fixed = true protected = true ) \"theoretical benefit\" type: Real P1.enableIn.Index:DISCRETE(fixed = true protected = true ) \"priority 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.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.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 T1.firingTime:DISCRETE(fixed = true protected = true ) \"next putative firing time\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 128 ($PRE.P1.enableOut.valid,P1.enableOut.valid,$PRE.P1.enableOut.benefitLimit,P1.enableOut.benefitLimit,$PRE.P1.enableOut.benefitMax,P1.enableOut.benefitMax,$PRE.P1.enableOut.posTE,P1.enableOut.posTE,$PRE.P1.enableOut.k,P1.enableOut.k,$PRE.P1.enableOut.endWhile,P1.enableOut.endWhile,P1.enableOut.randNum,$PRE.P1.enableOut.randNum,P1.enableOut.state128[4],$PRE.P1.enableOut.state128[4],P1.enableOut.state128[3],$PRE.P1.enableOut.state128[3],P1.enableOut.state128[2],$PRE.P1.enableOut.state128[2],P1.enableOut.state128[1],$PRE.P1.enableOut.state128[1],P1.enableOut.cumEnablingProb[1],$PRE.P1.enableOut.cumEnablingProb[1],$PRE.P1.enableOut.sumEnablingProbTAout,P1.enableOut.sumEnablingProbTAout,$PRE.P1.enableOut.nTAout,P1.enableOut.nTAout,$PRE.P1.enableOut.nremTAout,P1.enableOut.nremTAout,P1.enableOut.remTAout[1],$PRE.P1.enableOut.remTAout[1],$PRE.P1.enableOut.Index,P1.enableOut.Index,$PRE.P1.reStart,$whenCondition7,T1.inPlaces[1].tokenInOut,$PRE.P1.tokeninout,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,$PRE.P1.firingSumOut.firingSum,$PRE.P1.firingSumIn.firingSum,P1.tokeninout,$whenCondition5,$whenCondition6,P1.firingSumIn.firingSum,$PRE.P1.enableIn.benefitLimit,P1.enableIn.benefitLimit,$PRE.P1.enableIn.valid,P1.enableIn.valid,$PRE.P1.enableIn.benefitMax,P1.enableIn.benefitMax,$PRE.P1.enableIn.Index,P1.enableIn.Index,$PRE.P1.enableIn.endWhile,P1.enableIn.endWhile,$PRE.P1.enableIn.sumEnablingProbTAin,P1.enableIn.sumEnablingProbTAin,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],$PRE.P1.enableIn.posTE,P1.enableIn.posTE,$PRE.P1.enableIn.k,P1.enableIn.k,$PRE.P1.enableIn.nTAin,P1.enableIn.nTAin,$PRE.P1.enableIn.nremTAin,P1.enableIn.nremTAin,P1.enableIn.arcWeightSum,$PRE.P1.enableIn.arcWeightSum,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,$whenCondition1,T1.firingCon,T1.inPlaces[1].disTransition,P1.outTransition[1].normalArc,P1.outTransition[1].testValueint,P1.outTransition[1].arcType,P1.outTransition[1].disPlace,P1.reStart,$PRE.T1.firingTime,$PRE.P1.enableOut.arcWeightSum,$PRE.P1.enableOut.TEout[1],P1.enableOut.arcWeight[1],P1.enableOut.disTransition[1],T1.activation.normalArc[1],T1.activation.testValueInt[1],T1.activation.arcType[1],T1.activation.disPlaceIn[1],T1.activation.active,T1.activation.minTokensInt[1],T1.activation.arcWeightIntIn[1],T1.activation.tIntIn[1],T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P1.enableOut.TEout_[1],P1.enableOut.TAout[1],P1.firingSumOut.firingSum,P1.firingSumOut.arcWeight[1],P1.firingSumOut.fire[1],P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.delayPassedOut.vec[1],P1.activeConOut.anychange,P1.activeConOut.vec[1],P1.activeOut[1],$PRE.P1.activeOut[1],P1.t,$PRE.P1.t,$whenCondition2,$whenCondition3,$whenCondition4,T1.enabledByOutPlaces,P1.outTransition[1].fed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (135): * Single equations (assignments): 124 * Array equations: 1 * Algorithm blocks: 10 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009684/0.3832, allocations: 0.757 MB / 0.5369 GB, free: 240 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.3833, allocations: 76.81 kB / 0.5369 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003396/0.3867, allocations: 1.982 MB / 0.5389 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.116e-05/0.3867, allocations: 7.438 kB / 0.5389 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3867, allocations: 0 / 0.5389 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.3868, allocations: 7.047 kB / 0.5389 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004596/0.3914, allocations: 2.95 MB / 0.5418 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.3914, allocations: 0.6562 kB / 0.5418 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.3915, allocations: 27.73 kB / 0.5418 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.3915, allocations: 2.375 kB / 0.5418 GB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.647e-05/0.3916, allocations: 40.73 kB / 0.5418 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.3916, allocations: 1.312 kB / 0.5418 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3916, allocations: 1.375 kB / 0.5418 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003338/0.3949, allocations: 2.339 MB / 0.5441 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/0.395, allocations: 59.73 kB / 0.5442 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002079/0.3952, allocations: 76.61 kB / 0.5442 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004455/0.3957, allocations: 72.97 kB / 0.5443 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005125/0.3962, allocations: 338.3 kB / 0.5446 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/0.3963, allocations: 48.09 kB / 0.5447 GB, free: 12.74 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002925/0.3966, allocations: 249.9 kB / 0.5449 GB, free: 12.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3966, allocations: 0 / 0.5449 GB, free: 12.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00119/0.3978, allocations: 340.2 kB / 0.5452 GB, free: 12.55 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 68 ($whenCondition1,P1.delayPassedIn.anytrue,P1.delayPassedIn.numtrue,P1.enableIn.state128[1],P1.enableIn.state128[2],P1.enableIn.state128[3],P1.enableIn.state128[4],P1.enableIn.arcWeightSum,P1.enableIn.nremTAin,P1.enableIn.nTAin,P1.enableIn.k,P1.enableIn.posTE,P1.enableIn.randNum,P1.enableIn.sumEnablingProbTAin,P1.enableIn.endWhile,P1.enableIn.Index,P1.enableIn.benefitMax,P1.enableIn.valid,P1.enableIn.benefitLimit,T1.active,$whenCondition6,$whenCondition5,$whenCondition7,$whenCondition4,$whenCondition3,$whenCondition2,P1.t,P1.tokeninout,P1.activeOut[1],P1.activeConOut.vec[1],P1.activeConOut.anychange,P1.delayPassedOut.vec[1],P1.delayPassedOut.anytrue,P1.delayPassedOut.numtrue,P1.firingSumIn.firingSum,P1.firingSumOut.fire[1],P1.firingSumOut.arcWeight[1],P1.firingSumOut.firingSum,P1.enableOut.TAout[1],P1.enableOut.TEout_[1],P1.enableOut.state128[1],P1.enableOut.state128[2],P1.enableOut.state128[3],P1.enableOut.state128[4],P1.enableOut.TEout[1],P1.enableOut.remTAout[1],P1.enableOut.cumEnablingProb[1],P1.enableOut.arcWeightSum,P1.enableOut.nremTAout,P1.enableOut.nTAout,P1.enableOut.k,P1.enableOut.posTE,P1.enableOut.randNum,P1.enableOut.sumEnablingProbTAout,P1.enableOut.endWhile,P1.enableOut.Index,P1.enableOut.benefitMax,P1.enableOut.valid,P1.enableOut.benefitLimit,T1.inPlaces[1].tokenInOut,T1.firingTime,T1.fireTime,T1.delayPassed,T1.ani,T1.activation.tIntIn[1],T1.activation.arcWeightIntIn[1],T1.activation.minTokensInt[1],T1.activation.active) * Number of discrete states: 52 (P1.firingSumOut.firingSum,P1.firingSumIn.firingSum,P1.tokeninout,P1.t,P1.activeOut[1],T1.activation.active,T1.delayPassed,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,P1.activeConOut.anychange,i,P1.activeConOut.vec[i],P1.enableOut.TEout_[1],P1.enableOut.valid,P1.enableOut.benefitLimit,P1.enableOut.benefitMax,P1.enableOut.posTE,P1.enableOut.k,P1.enableOut.endWhile,P1.enableOut.state128[4],P1.enableOut.state128[3],P1.enableOut.state128[2],P1.enableOut.state128[1],P1.enableOut.randNum,P1.enableOut.cumEnablingProb[1],P1.enableOut.sumEnablingProbTAout,P1.enableOut.nTAout,P1.enableOut.nremTAout,P1.enableOut.remTAout[1],P1.enableOut.Index,$whenCondition2,P1.enableOut.arcWeightSum,P1.enableOut.TEout[1],P1.enableIn.benefitLimit,P1.enableIn.valid,P1.enableIn.benefitMax,P1.enableIn.Index,P1.enableIn.endWhile,P1.enableIn.sumEnablingProbTAin,P1.enableIn.state128[4],P1.enableIn.state128[3],P1.enableIn.state128[2],P1.enableIn.state128[1],P1.enableIn.randNum,P1.enableIn.posTE,P1.enableIn.k,P1.enableIn.nTAin,P1.enableIn.nremTAin,$whenCondition1,P1.enableIn.arcWeightSum,P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 24 * Array equations: 1 * Algorithm blocks: 8 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007758/0.3986, allocations: 384.1 kB / 0.5456 GB, free: 12.4 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002927/0.4015, allocations: 1.94 MB / 0.5475 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.4015, allocations: 0 / 0.5475 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0022/0.4037, allocations: 1.228 MB / 0.5487 GB, free: 10.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008285/0.4045, allocations: 107.2 kB / 0.5488 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003301/0.4078, allocations: 1.569 MB / 0.5503 GB, free: 9.613 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005894/0.4084, allocations: 0.9099 MB / 0.5512 GB, free: 8.812 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001717/0.4086, allocations: 52.92 kB / 0.5513 GB, free: 8.797 MB / 398.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4086, allocations: 0 / 0.5513 GB, free: 8.797 MB / 398.1 MB Notification: Performance of Templates: time 0.02068/0.4293, allocations: 12.36 MB / 0.5633 GB, free: 14.98 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTD.makefile [Timeout 660] make -j1 -f PNlib_PNlib.Examples.DisTest.PDtoTD.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPNlib_PNlib.Examples.DisTest.PDtoTDCalcHelperMain.o OMCppPNlib_PNlib.Examples.DisTest.PDtoTDCalcHelperMain.cpp In file included from OMCppPNlib_PNlib.Examples.DisTest.PDtoTDCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDInitialize.cpp:564:62: error: invalid argument type 'StatArrayDim1' to unary expression _P1_P_activeConOut_P_vec_.assign((_P1_P_activeOut__pre && (!_functions->_OMC_LIT1))); ^~~~~~~~~~~~~~~~~~~~~~ ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDInitialize.cpp:599:113: error: no matching function for call to object of type 'WrapArray' _P1_P_activeConOut_P_anychange_ = (_P1_P_activeConOut_P_anychange_ || ((!_P1_P_activeConOut_P_vec_(i_) && _discrete_events->pre(_P1_P_activeConOut_P_vec_)(i_)) || (_P1_P_activeConOut_P_vec_(i_) && !_discrete_events->pre(_P1_P_activeConOut_P_vec_)(i_)))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:704:14: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument virtual T& operator()(const vector& idx) ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:695:20: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument virtual const T& operator()(const vector& idx) const ^ In file included from OMCppPNlib_PNlib.Examples.DisTest.PDtoTDCalcHelperMain.cpp:29: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTDInitialize.cpp:599:205: error: no matching function for call to object of type 'WrapArray' _P1_P_activeConOut_P_anychange_ = (_P1_P_activeConOut_P_anychange_ || ((!_P1_P_activeConOut_P_vec_(i_) && _discrete_events->pre(_P1_P_activeConOut_P_vec_)(i_)) || (_P1_P_activeConOut_P_vec_(i_) && !_discrete_events->pre(_P1_P_activeConOut_P_vec_)(i_)))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:704:14: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument virtual T& operator()(const vector& idx) ^ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:695:20: note: candidate function not viable: no known conversion from 'int' to 'const vector' (aka 'const vector') for 1st argument virtual const T& operator()(const vector& idx) const ^ In file included from OMCppPNlib_PNlib.Examples.DisTest.PDtoTDCalcHelperMain.cpp:33: ./OMCppPNlib_PNlib.Examples.DisTest.PDtoTD.cpp:160:81: error: invalid argument type 'StatArrayDim1' to unary expression _P1_P_activeConOut_P_vec_.assign((_discrete_events->pre(_P1_P_activeOut_) && (!_functions->_OMC_LIT1))); ^~~~~~~~~~~~~~~~~~~~~~ 4 errors generated. make: *** [: OMCppPNlib_PNlib.Examples.DisTest.PDtoTDCalcHelperMain.o] Error 1 [Calling os._exit(0), Time elapsed: 4.273157787043601] Failed to read output from testmodel.py, exit status != 0: 0.4386239789891988 0.453128337 0.09389374099999995 Calling exit ...