Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.PCtoTCfunction.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.PCtoTCfunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.PCtoTCfunction") translateModel(PNlib.Examples.ConTest.PCtoTCfunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.PCtoTCfunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 118 kB / 16.42 MB, free: 6.465 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.001725/0.001726, allocations: 189.5 kB / 17.35 MB, free: 5.715 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.296/1.296, allocations: 222.9 MB / 241 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.07471/0.07471, allocations: 16.73 MB / 307.9 MB, free: 14.22 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 63.89 kB / 427 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09423/0.09548, allocations: 53.48 MB / 480.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.PCtoTCfunction): time 0.002928/0.09844, allocations: 1.999 MB / 482.5 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002812/0.1013, allocations: 1.674 MB / 484.1 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001785/0.1015, allocations: 11.94 kB / 484.2 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003069/0.1018, allocations: 135 kB / 484.3 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003993/0.1022, allocations: 135 kB / 484.4 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001284/0.1035, allocations: 0.6845 MB / 485.1 MB, free: 320 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001288/0.1048, allocations: 1.436 MB / 486.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003162/0.1051, allocations: 160.6 kB / 486.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000695/0.1058, allocations: 0.5414 MB / 487.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004592/0.1063, allocations: 374.2 kB / 487.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001348/0.1064, allocations: 88 kB / 487.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006607/0.1071, allocations: 0.4993 MB / 488.2 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001851/0.1073, allocations: 167.4 kB / 488.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003737/0.1077, allocations: 390.3 kB / 488.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001144/0.1088, allocations: 1.204 MB / 489.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1089, allocations: 3.938 kB / 489.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1089, allocations: 0 / 489.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.1089, allocations: 0 / 489.9 MB, free: 11.45 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.001651/0.1105, allocations: 1.318 MB / 491.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.1106, allocations: 8.031 kB / 491.3 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006688/0.1113, allocations: 144 kB / 491.4 MB, free: 9.867 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006302/0.1119, allocations: 438.9 kB / 491.8 MB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001489/0.1121, allocations: 150.5 kB / 492 MB, free: 9.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.1122, allocations: 83.92 kB / 492.1 MB, free: 9.148 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001966/0.1142, allocations: 1.33 MB / 493.4 MB, free: 7.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.177e-05/0.1142, allocations: 3.984 kB / 493.4 MB, free: 7.766 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.1143, allocations: 39.98 kB / 493.4 MB, free: 7.727 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001126/0.1145, allocations: 69.19 kB / 493.5 MB, free: 7.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001603/0.1161, allocations: 0.9341 MB / 494.4 MB, free: 6.723 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003737/0.1198, allocations: 2.94 MB / 497.4 MB, free: 3.668 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/0.1214, allocations: 1.258 MB / 498.6 MB, free: 2.395 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001252/0.1226, allocations: 1.135 MB / 499.8 MB, free: 1.254 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002175/0.1248, allocations: 2.956 MB / 0.4909 GB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001153/0.126, allocations: 0.8129 MB / 0.4917 GB, free: 12.81 MB / 382.1 MB Notification: Performance of pre-optimization done (n=70): time 2.885e-06/0.126, allocations: 0 / 0.4917 GB, free: 12.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=70): time 0.003765/0.1298, allocations: 2.515 MB / 0.4942 GB, free: 10.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003043/0.1301, allocations: 0.552 MB / 0.4947 GB, free: 9.547 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004132/0.1305, allocations: 392 kB / 0.4951 GB, free: 9.152 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.091e-05/0.1306, allocations: 61.69 kB / 0.4952 GB, free: 9.086 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002009/0.1308, allocations: 276.1 kB / 0.4954 GB, free: 8.809 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001741/0.131, allocations: 197.6 kB / 0.4956 GB, free: 8.613 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003055/0.1313, allocations: 226.5 kB / 0.4958 GB, free: 8.383 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.1315, allocations: 370.8 kB / 0.4962 GB, free: 8.012 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007336/0.1322, allocations: 478 kB / 0.4966 GB, free: 7.547 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009574/0.1332, allocations: 0.8001 MB / 0.4974 GB, free: 6.598 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001891/0.1351, allocations: 1.758 MB / 0.4991 GB, free: 4.574 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/0.1351, allocations: 4 kB / 0.4991 GB, free: 4.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002725/0.1378, allocations: 1.925 MB / 0.501 GB, free: 2.566 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002338/0.1381, allocations: 378.6 kB / 0.5014 GB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001678/0.1398, allocations: 1.064 MB / 0.5024 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003422/0.1401, allocations: 88.88 kB / 0.5025 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003452/0.1405, allocations: 111.8 kB / 0.5026 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004769/0.141, allocations: 0.6302 MB / 0.5032 GB, free: 180 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005297/0.1415, allocations: 131.1 kB / 0.5034 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.1894/0.3309, allocations: 57.22 kB / 0.5034 GB, free: 34.77 MB / 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: 46 * 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 (114): * Single equations (assignments): 102 * 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.001403/0.3323, allocations: 0.7495 MB / 0.5041 GB, free: 34.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002398/0.3325, allocations: 70.75 kB / 0.5042 GB, free: 34.35 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00293/0.3355, allocations: 1.979 MB / 0.5061 GB, free: 34.08 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/0.3355, allocations: 3.234 kB / 0.5062 GB, free: 34.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.002398/0.3379, allocations: 1.873 MB / 0.508 GB, free: 33.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.108e-05/0.338, allocations: 123.5 kB / 0.5081 GB, free: 33.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001767/0.3382, allocations: 78.52 kB / 0.5082 GB, free: 33.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004927/0.3387, allocations: 72.19 kB / 0.5082 GB, free: 33.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004042/0.3391, allocations: 253.2 kB / 0.5085 GB, free: 33.43 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}, {}, {P1.enableOut.arcWeight[1]}, {} 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}, {}, {P1.enableOut.arcWeight[1]}, {} 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 P1.enableOut.arcWeight[1] * 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.0009868/0.3401, allocations: 0.9562 MB / 0.5094 GB, free: 32.61 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PNlib.Examples.ConTest.PCtoTCfunction could not be translated