Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.TCtoPCfunction.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.TCtoPCfunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.TCtoPCfunction") translateModel(PNlib.Examples.ConTest.TCtoPCfunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.TCtoPCfunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 108.7 kB / 16.41 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.00126/0.001261, allocations: 188.3 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.321/1.321, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07769/0.07769, allocations: 16.73 MB / 307.9 MB, free: 14.22 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.91 kB / 427 MB, free: 10.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07922/0.08051, allocations: 53.47 MB / 480.5 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.TCtoPCfunction): time 0.002972/0.08351, allocations: 2.003 MB / 482.5 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003014/0.08655, allocations: 1.672 MB / 484.1 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003111/0.08688, allocations: 11.94 kB / 484.2 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003367/0.08724, allocations: 135 kB / 484.3 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004711/0.08772, allocations: 147 kB / 484.4 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001415/0.08915, allocations: 0.6926 MB / 485.1 MB, free: 312 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001435/0.0906, allocations: 1.412 MB / 486.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002282/0.09084, allocations: 143.8 kB / 486.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005736/0.09142, allocations: 0.5415 MB / 487.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000433/0.09186, allocations: 334.2 kB / 487.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.09199, allocations: 76 kB / 487.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006465/0.09264, allocations: 491.4 kB / 488.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000163/0.09281, allocations: 155.4 kB / 488.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003131/0.09314, allocations: 350.4 kB / 488.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001046/0.09419, allocations: 1.078 MB / 489.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.0942, allocations: 0 / 489.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.09421, allocations: 0 / 489.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.423e-06/0.09422, allocations: 0 / 489.7 MB, free: 11.74 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.00139/0.09562, allocations: 1.281 MB / 491 MB, free: 10.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.004e-05/0.09566, allocations: 11.89 kB / 491 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006064/0.09627, allocations: 136.4 kB / 491.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004879/0.09677, allocations: 407.2 kB / 491.5 MB, free: 9.762 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001249/0.0969, allocations: 146.7 kB / 491.6 MB, free: 9.598 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.09703, allocations: 67.98 kB / 491.7 MB, free: 9.531 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001629/0.09867, allocations: 1.133 MB / 492.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.0987, allocations: 3.984 kB / 492.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.526e-05/0.09878, allocations: 31.98 kB / 492.9 MB, free: 8.312 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.095e-05/0.09887, allocations: 56.95 kB / 492.9 MB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.1002, allocations: 0.7653 MB / 493.7 MB, free: 7.488 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003153/0.1034, allocations: 2.801 MB / 496.5 MB, free: 4.555 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/0.1046, allocations: 1.088 MB / 497.6 MB, free: 3.449 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009893/0.1056, allocations: 0.9633 MB / 498.6 MB, free: 2.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001796/0.1074, allocations: 2.888 MB / 0.4897 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009429/0.1084, allocations: 0.6801 MB / 0.4904 GB, free: 14.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=68): time 1.823e-06/0.1084, allocations: 0 / 0.4904 GB, free: 14.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=68): time 0.003356/0.1118, allocations: 2.174 MB / 0.4925 GB, free: 12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002488/0.112, allocations: 0.5282 MB / 0.493 GB, free: 11.37 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003343/0.1124, allocations: 360.3 kB / 0.4933 GB, free: 11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.941e-05/0.1125, allocations: 69.72 kB / 0.4934 GB, free: 10.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001605/0.1126, allocations: 261 kB / 0.4936 GB, free: 10.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.1128, allocations: 186.6 kB / 0.4938 GB, free: 10.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002512/0.113, allocations: 202.5 kB / 0.494 GB, free: 10.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1132, allocations: 362.8 kB / 0.4944 GB, free: 9.914 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005314/0.1137, allocations: 333.8 kB / 0.4947 GB, free: 9.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007206/0.1144, allocations: 0.6382 MB / 0.4953 GB, free: 8.812 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001596/0.1161, allocations: 1.622 MB / 0.4969 GB, free: 6.938 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.1161, allocations: 0 / 0.4969 GB, free: 6.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002066/0.1181, allocations: 1.559 MB / 0.4984 GB, free: 5.301 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001852/0.1183, allocations: 350.7 kB / 0.4987 GB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001197/0.1195, allocations: 0.748 MB / 0.4995 GB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003206/0.1199, allocations: 84.92 kB / 0.4996 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003156/0.1202, allocations: 107.7 kB / 0.4997 GB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004264/0.1206, allocations: 0.6225 MB / 0.5003 GB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003817/0.121, allocations: 115.2 kB / 0.5004 GB, free: 3.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.223e-05/0.1211, allocations: 51.98 kB / 0.5004 GB, free: 3.105 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: 42 * 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 (105): * Single equations (assignments): 93 * 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.000662/0.1218, allocations: 0.7088 MB / 0.5011 GB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.122, allocations: 75.61 kB / 0.5012 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002444/0.1244, allocations: 1.679 MB / 0.5028 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.1244, allocations: 3.984 kB / 0.5028 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.1771/0.3015, allocations: 1.579 MB / 0.5044 GB, free: 35.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.455e-05/0.3016, allocations: 121.9 kB / 0.5045 GB, free: 35.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002041/0.3018, allocations: 70.14 kB / 0.5046 GB, free: 35.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003807/0.3022, allocations: 49.59 kB / 0.5046 GB, free: 35.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.3024, allocations: 65.69 kB / 0.5047 GB, free: 35.02 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}, {}, {P1.enableIn.arcWeight[1]}, {}, P1.fireIn and not {false}, {} and not {}) 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(1, 0, P1.t_, P1.minMarks, P1.maxMarks, P1.conMarkChange, 0.0, {1.0}, {}, {P1.inTransition[1].prelimSpeed}, {}, {P1.enableIn.arcWeight[1]}, {}, P1.fireIn and not {false}, {} and not {}) 2/2 (1): $OMC$CF$sim1[1] = P1.inTransition[1].decreasingFactor 3/3 (1): $cse1 = min(8.777798510069901e304, P1.inTransition[1].decreasingFactor) 4/4 (1): T1.instantaneousSpeed = min($cse1, P1.inTransition[1].prelimSpeed) 5/5 (1): P1.conMarkChange = if P1.feeding.vec[1] then P1.enableIn.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: P1.inTransition[1].decreasingFactor:VARIABLE(flow=false ) "Factor for decreasing the speed of continuous input transitions" 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.0008823/0.3033, allocations: 0.589 MB / 0.5052 GB, free: 34.54 MB / 382.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model PNlib.Examples.ConTest.TCtoPCfunction could not be translated