Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.PCtoTC.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.PCtoTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.PCtoTC") translateModel(PNlib.Examples.ConTest.PCtoTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.PCtoTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001539/0.00154, allocations: 115.2 kB / 16.42 MB, free: 6.449 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.001666/0.001666, allocations: 183.9 kB / 17.35 MB, free: 5.738 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.319/1.319, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07467/0.07467, allocations: 16.73 MB / 307.9 MB, free: 14.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 67.88 kB / 427 MB, free: 10.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09042/0.09159, allocations: 53.48 MB / 480.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.PCtoTC): time 0.003051/0.09469, allocations: 1.995 MB / 482.5 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002996/0.09771, allocations: 1.68 MB / 484.1 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002117/0.09794, allocations: 8 kB / 484.2 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003235/0.09828, allocations: 131 kB / 484.3 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004253/0.09872, allocations: 135 kB / 484.4 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001413/0.1001, allocations: 0.6888 MB / 485.1 MB, free: 340 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001389/0.1015, allocations: 1.432 MB / 486.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002581/0.1018, allocations: 164.6 kB / 486.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005001/0.1023, allocations: 0.5415 MB / 487.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004247/0.1028, allocations: 370.2 kB / 487.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000127/0.1029, allocations: 88 kB / 487.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006345/0.1035, allocations: 0.4955 MB / 488.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001781/0.1037, allocations: 171.3 kB / 488.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003634/0.1041, allocations: 402.2 kB / 488.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001166/0.1053, allocations: 1.196 MB / 489.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1053, allocations: 0 / 489.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1053, allocations: 7.938 kB / 489.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.384e-05/0.1053, allocations: 0 / 489.9 MB, free: 11.46 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.00176/0.1071, allocations: 1.314 MB / 491.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.1071, allocations: 15.89 kB / 491.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006711/0.1078, allocations: 148 kB / 491.4 MB, free: 9.875 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006738/0.1085, allocations: 438.9 kB / 491.8 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/0.1087, allocations: 142.5 kB / 492 MB, free: 9.246 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/0.1088, allocations: 83.98 kB / 492.1 MB, free: 9.164 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00197/0.1108, allocations: 1.333 MB / 493.4 MB, free: 7.785 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.1108, allocations: 4 kB / 493.4 MB, free: 7.781 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-05/0.1109, allocations: 35.98 kB / 493.4 MB, free: 7.746 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001042/0.111, allocations: 65.25 kB / 493.5 MB, free: 7.684 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/0.1127, allocations: 0.9418 MB / 494.4 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003625/0.1163, allocations: 2.92 MB / 497.4 MB, free: 3.703 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001448/0.1178, allocations: 1.189 MB / 498.6 MB, free: 2.496 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001154/0.1189, allocations: 1.065 MB / 499.6 MB, free: 1.426 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002188/0.1211, allocations: 2.971 MB / 0.4908 GB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001097/0.1222, allocations: 0.7813 MB / 0.4916 GB, free: 13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=70): time 3.196e-06/0.1222, allocations: 0 / 0.4916 GB, free: 13 MB / 382.1 MB Notification: Performance of matching and sorting (n=70): time 0.003781/0.126, allocations: 2.461 MB / 0.494 GB, free: 10.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003129/0.1264, allocations: 0.5519 MB / 0.4945 GB, free: 9.789 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004481/0.1268, allocations: 409.1 kB / 0.4949 GB, free: 9.375 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.169e-05/0.1269, allocations: 61.69 kB / 0.495 GB, free: 9.309 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002374/0.1272, allocations: 288 kB / 0.4952 GB, free: 9.023 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001745/0.1273, allocations: 189.7 kB / 0.4954 GB, free: 8.836 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003085/0.1277, allocations: 230.5 kB / 0.4956 GB, free: 8.605 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1278, allocations: 366.8 kB / 0.496 GB, free: 8.238 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007189/0.1285, allocations: 470 kB / 0.4964 GB, free: 7.777 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009311/0.1295, allocations: 0.8096 MB / 0.4972 GB, free: 6.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001853/0.1314, allocations: 1.779 MB / 0.499 GB, free: 4.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.388e-06/0.1314, allocations: 4 kB / 0.499 GB, free: 4.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002572/0.134, allocations: 1.929 MB / 0.5009 GB, free: 2.758 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002425/0.1342, allocations: 378.6 kB / 0.5012 GB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001604/0.1358, allocations: 1.048 MB / 0.5022 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003593/0.1362, allocations: 76.8 kB / 0.5023 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003406/0.1365, allocations: 119.8 kB / 0.5024 GB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004693/0.137, allocations: 0.6186 MB / 0.503 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005242/0.1376, allocations: 126.9 kB / 0.5032 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.1377, allocations: 63.98 kB / 0.5032 GB, free: 216 kB / 382.1 MB Warning: Assuming fixed start value for the following 18 variables: 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.disMarksIn.anytrue:DISCRETE(fixed = true protected = true ) type: Boolean P1.disMarksOut.anytrue:DISCRETE(fixed = true protected = true ) type: Boolean 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 P1.enableIn.arcWeightSum:DISCRETE(fixed = true protected = true ) "arc weight sum" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 108 ($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.disMarksInOut,P1.outTransition[1].tokenInOut,$PRE.P1.disMarksIn.anytrue,$PRE.P1.disMarksOut.anytrue,P1.disMarksInOut,$whenCondition3,P1.disMarksIn.numtrue,P1.disMarksIn.anytrue,$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,$PRE.P1.enableIn.arcWeightSum,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.outTransition[1].minTokensint,P1.outTransition[1].tint,P1.reStart,P1.disMarksOut.vec[1],P1.disMarksOut.numtrue,P1.disMarksOut.anytrue,P1.delayPassedOut.vec[1],T1.activation.arcWeightIntIn[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],T1.fire_,T1.activation.NoTokens,T1.activation.weaklyInputActiveVec[1],T1.activation.active,T1.activation.fed[1],P1.emptying.numtrue,P1.emptying.anytrue,P1.emptying.vec[1],P1.feeding.numtrue,P1.feeding.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.fireOut[1],$PRE.P1.fireOut[1],$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 11 * 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,3)} Notification: Performance of prepare postOptimizeDAE: time 0.2221/0.3598, allocations: 0.7553 MB / 0.5039 GB, free: 34.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000242/0.3601, allocations: 70.92 kB / 0.504 GB, free: 34.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003077/0.3632, allocations: 1.919 MB / 0.5059 GB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.3632, allocations: 1.891 kB / 0.5059 GB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.002579/0.3658, allocations: 1.823 MB / 0.5077 GB, free: 33.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.3659, allocations: 125.7 kB / 0.5078 GB, free: 33.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002002/0.3661, allocations: 72.55 kB / 0.5079 GB, free: 33.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00046/0.3666, allocations: 73.84 kB / 0.5079 GB, free: 33.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004308/0.367, allocations: 257.1 kB / 0.5082 GB, free: 33.52 MB / 382.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): (_, $OMC$CF$sim1) = PNlib.Functions.decreasingFactor(0, 1, P1.t_, P1.minMarks, P1.maxMarks, 0.0, -P1.conMarkChange, {}, {1.0}, {}, {T1.inPlaces[1].prelimSpeed}, {}, {1.0}, {} and not {}, P1.fireOut and not {false}) Variables: 1: $OMC$CF$sim1[1]:VARIABLE() type: Real [1] [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): (_, $OMC$CF$sim1) = PNlib.Functions.decreasingFactor(0, 1, P1.t_, P1.minMarks, P1.maxMarks, 0.0, -P1.conMarkChange, {}, {1.0}, {}, {T1.inPlaces[1].prelimSpeed}, {}, {1.0}, {} and not {}, P1.fireOut and not {false}) 2/2 (1): $OMC$CF$sim1[1] = T1.inPlaces[1].decreasingFactor 3/3 (1): $cse1 = min(T1.inPlaces[1].decreasingFactor, 8.777798510069901e304) 4/4 (1): T1.instantaneousSpeed = min($cse1, T1.inPlaces[1].prelimSpeed) 5/5 (1): -P1.conMarkChange = if P1.emptying.vec[1] then T1.instantaneousSpeed else 0.0 Variables: 1: P1.conMarkChange:VARIABLE(protected = true ) "continuous mark change" type: Real 2: T1.instantaneousSpeed:VARIABLE() "instantaneous speed" type: Real 3: $cse1:VARIABLE(protected = true ) type: Real unreplaceable 4: T1.inPlaces[1].decreasingFactor:VARIABLE(flow=false ) "Factor of continuous input places for decreasing the speed" type: Real [1] 5: $OMC$CF$sim1[1]:VARIABLE() type: Real [1] [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001098/0.3681, allocations: 0.9341 MB / 0.5091 GB, free: 32.7 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PNlib.Examples.ConTest.PCtoTC could not be translated