Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.TCtoPC.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.TCtoPC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.TCtoPC") translateModel(PNlib.Examples.ConTest.TCtoPC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.TCtoPC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009972/0.0009972, allocations: 110.1 kB / 16.42 MB, free: 6.516 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.001098/0.001098, allocations: 190.7 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.307/1.307, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.0759/0.0759, allocations: 16.73 MB / 307.9 MB, free: 14.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.89 kB / 427 MB, free: 10.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09353/0.09476, allocations: 53.48 MB / 480.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.TCtoPC): time 0.002817/0.09761, allocations: 1.994 MB / 482.5 MB, free: 2.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002766/0.1004, allocations: 1.676 MB / 484.1 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002092/0.1006, allocations: 4 kB / 484.1 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003027/0.1009, allocations: 146.9 kB / 484.3 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000414/0.1014, allocations: 127 kB / 484.4 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001485/0.1029, allocations: 0.6849 MB / 485.1 MB, free: 316 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001512/0.1044, allocations: 1.416 MB / 486.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002487/0.1047, allocations: 143.8 kB / 486.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004852/0.1052, allocations: 0.5298 MB / 487.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004174/0.1056, allocations: 342.2 kB / 487.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001158/0.1057, allocations: 76 kB / 487.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007002/0.1064, allocations: 491.4 kB / 488.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000189/0.1066, allocations: 151.5 kB / 488.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003221/0.107, allocations: 354.3 kB / 488.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001038/0.108, allocations: 1.075 MB / 489.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.108, allocations: 0 / 489.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.108, allocations: 0 / 489.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.108, allocations: 0 / 489.6 MB, free: 11.75 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: 165 * Number of variables: 165 Notification: Performance of Generate backend data structure: time 0.001511/0.1096, allocations: 1.267 MB / 490.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.1096, allocations: 11.89 kB / 490.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006327/0.1102, allocations: 136.1 kB / 491.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005742/0.1108, allocations: 406.9 kB / 491.5 MB, free: 9.785 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001535/0.111, allocations: 146.7 kB / 491.6 MB, free: 9.621 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.1111, allocations: 75.97 kB / 491.7 MB, free: 9.547 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.1127, allocations: 1.122 MB / 492.8 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.1127, allocations: 0 / 492.8 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-05/0.1128, allocations: 28 kB / 492.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.546e-05/0.1129, allocations: 56.95 kB / 492.9 MB, free: 8.289 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.1143, allocations: 0.777 MB / 493.6 MB, free: 7.512 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003261/0.1175, allocations: 2.773 MB / 496.4 MB, free: 4.605 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.1188, allocations: 1.018 MB / 497.4 MB, free: 3.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009508/0.1197, allocations: 0.9047 MB / 498.3 MB, free: 2.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002092/0.1218, allocations: 2.896 MB / 0.4895 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009326/0.1228, allocations: 0.6567 MB / 0.4901 GB, free: 14.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=68): time 2.755e-06/0.1228, allocations: 0 / 0.4901 GB, free: 14.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=68): time 0.003444/0.1262, allocations: 2.093 MB / 0.4922 GB, free: 12.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003004/0.1266, allocations: 0.5321 MB / 0.4927 GB, free: 11.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004398/0.127, allocations: 372.1 kB / 0.4931 GB, free: 11.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.376e-05/0.1271, allocations: 61.69 kB / 0.4931 GB, free: 11.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001939/0.1273, allocations: 256.3 kB / 0.4934 GB, free: 10.94 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.1275, allocations: 177.8 kB / 0.4935 GB, free: 10.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002709/0.1277, allocations: 202.5 kB / 0.4937 GB, free: 10.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.1279, allocations: 366.8 kB / 0.4941 GB, free: 10.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005401/0.1285, allocations: 326.1 kB / 0.4944 GB, free: 9.871 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007239/0.1292, allocations: 0.6539 MB / 0.495 GB, free: 9.078 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/0.1308, allocations: 1.616 MB / 0.4966 GB, free: 7.203 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/0.1308, allocations: 8 kB / 0.4966 GB, free: 7.195 MB / 382.1 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.001983/0.1328, allocations: 1.559 MB / 0.4981 GB, free: 5.559 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001835/0.133, allocations: 354.6 kB / 0.4985 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001152/0.1342, allocations: 0.7319 MB / 0.4992 GB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003264/0.1345, allocations: 80.88 kB / 0.4993 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003102/0.1348, allocations: 107.8 kB / 0.4994 GB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004333/0.1353, allocations: 0.6108 MB / 0.5 GB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003858/0.1357, allocations: 99.11 kB / 0.5 GB, free: 3.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.062e-05/0.1358, allocations: 55.98 kB / 0.5001 GB, free: 3.402 MB / 382.1 MB Warning: Assuming fixed start value for the following 18 variables: P1.enableOut.Index:DISCRETE(fixed = true protected = true ) 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.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.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.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 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: 44 * Number of states: 0 () * Number of discrete variables: 101 ($PRE.P1.enableOut.Index,P1.enableOut.Index,$PRE.P1.enableOut.endWhile,P1.enableOut.endWhile,$PRE.P1.enableOut.sumEnablingProbTAout,P1.enableOut.sumEnablingProbTAout,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],$PRE.P1.enableOut.posTE,P1.enableOut.posTE,$PRE.P1.enableOut.k,P1.enableOut.k,$PRE.P1.enableOut.nTAout,P1.enableOut.nTAout,$PRE.P1.enableOut.nremTAout,P1.enableOut.nremTAout,$PRE.P1.enableOut.arcWeightSum,P1.enableOut.arcWeightSum,P1.delayPassedOut.numtrue,P1.delayPassedOut.anytrue,$whenCondition3,$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.disMarksIn.anytrue,$PRE.P1.disMarksOut.anytrue,P1.disMarksInOut,$whenCondition2,P1.disMarksOut.numtrue,P1.disMarksOut.anytrue,P1.inTransition[1].disPlace,P1.inTransition[1].maxTokensint,P1.inTransition[1].tint,T1.outPlaces[1].disTransition,T1.outPlaces[1].enabledByInPlaces,P1.reStart,T1.firingCon,P1.disMarksIn.vec[1],P1.disMarksIn.numtrue,P1.disMarksIn.anytrue,T1.fire_,T1.activation.arcWeightIntOut[1],P1.delayPassedIn.vec[1],T1.activation.disPlaceOut[1],T1.activation.maxTokensInt[1],T1.activation.tIntOut[1],P1.emptying.numtrue,P1.emptying.anytrue,P1.feeding.numtrue,P1.feeding.anytrue,P1.feeding.vec[1],P1.delayPassedIn.numtrue,P1.delayPassedIn.anytrue,P1.enableIn.TEin[1],$PRE.P1.enableIn.TEin[1],P1.enableIn.TEin_[1],P1.enableIn.active[1],P1.fireIn[1],$PRE.P1.fireIn[1],T1.activation.NoTokens,T1.activation.weaklyOutputActiveVec[1],T1.activation.active,T1.activation.emptied[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 95 * 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.0007834/0.1365, allocations: 0.7222 MB / 0.5008 GB, free: 2.613 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.1367, allocations: 67.38 kB / 0.5009 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002426/0.1391, allocations: 1.62 MB / 0.5025 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.1392, allocations: 0 / 0.5025 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.1956/0.3348, allocations: 1.544 MB / 0.504 GB, free: 35.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.335, allocations: 128.9 kB / 0.5041 GB, free: 34.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002016/0.3352, allocations: 74.42 kB / 0.5042 GB, free: 34.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003627/0.3355, allocations: 52.88 kB / 0.5042 GB, free: 34.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.3357, allocations: 60.8 kB / 0.5043 GB, free: 34.95 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(1, 0, P1.t_, P1.minMarks, P1.maxMarks, P1.conMarkChange, 0.0, {1.0}, {}, {P1.inTransition[1].prelimSpeed}, {}, {1.0}, {}, P1.fireIn and not {false}, {} and not {}) Variables: 1: P1.conMarkChange:VARIABLE(protected = true ) "continuous mark change" type: Real [/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): T1.instantaneousSpeed = min($cse1, P1.inTransition[1].prelimSpeed) 2/2 (1): $cse1 = min(8.777798510069901e304, P1.inTransition[1].decreasingFactor) 3/3 (1): $OMC$CF$sim1[1] = P1.inTransition[1].decreasingFactor 4/4 (1): ($OMC$CF$sim1, _) = PNlib.Functions.decreasingFactor(1, 0, P1.t_, P1.minMarks, P1.maxMarks, P1.conMarkChange, 0.0, {1.0}, {}, {P1.inTransition[1].prelimSpeed}, {}, {1.0}, {}, P1.fireIn and not {false}, {} and not {}) 5/5 (1): P1.conMarkChange = if P1.feeding.vec[1] then T1.instantaneousSpeed else 0.0 Variables: 1: T1.instantaneousSpeed:VARIABLE() "instantaneous speed" type: Real 2: P1.conMarkChange:VARIABLE(protected = true ) "continuous mark change" type: Real 3: $OMC$CF$sim1[1]:VARIABLE() type: Real [1] 4: P1.inTransition[1].decreasingFactor:VARIABLE(flow=false ) "Factor for decreasing the speed of continuous input transitions" type: Real [1] 5: $cse1:VARIABLE(protected = true ) type: Real unreplaceable [/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.0009427/0.3367, allocations: 0.6893 MB / 0.5049 GB, free: 34.42 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PNlib.Examples.ConTest.TCtoPC could not be translated