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.001122/0.001122, allocations: 108.5 kB / 16.41 MB, free: 6.406 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.00114/0.00114, allocations: 192.3 kB / 17.35 MB, free: 5.691 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.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07883/0.07883, allocations: 16.74 MB / 307.9 MB, free: 14.18 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 63.91 kB / 427 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08987/0.09123, allocations: 53.46 MB / 480.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.TCtoPCfunction): time 0.003195/0.09446, allocations: 2.015 MB / 482.5 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003153/0.09764, allocations: 1.68 MB / 484.2 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003736/0.09804, allocations: 4 kB / 484.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004011/0.09845, allocations: 131 kB / 484.3 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005201/0.099, allocations: 127 kB / 484.4 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001648/0.1007, allocations: 0.693 MB / 485.1 MB, free: 312 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001609/0.1023, allocations: 1.412 MB / 486.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002741/0.1026, allocations: 147.8 kB / 486.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006844/0.1033, allocations: 0.5298 MB / 487.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005207/0.1038, allocations: 342.2 kB / 487.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001694/0.104, allocations: 72 kB / 487.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006957/0.1047, allocations: 495.4 kB / 488.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002021/0.1049, allocations: 147.5 kB / 488.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003648/0.1053, allocations: 350.4 kB / 488.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001356/0.1066, allocations: 1.083 MB / 489.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1067, allocations: 0 / 489.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1067, allocations: 0 / 489.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.642e-05/0.1067, 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.001773/0.1085, allocations: 1.263 MB / 490.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.1085, allocations: 15.83 kB / 490.9 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006747/0.1092, allocations: 136.1 kB / 491.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006143/0.1098, allocations: 410.9 kB / 491.5 MB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/0.11, allocations: 142.7 kB / 491.6 MB, free: 9.617 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.1101, allocations: 64 kB / 491.7 MB, free: 9.555 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001726/0.1118, allocations: 1.13 MB / 492.8 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/0.1119, allocations: 0 / 492.8 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.369e-05/0.112, allocations: 35.98 kB / 492.8 MB, free: 8.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.453e-05/0.1121, allocations: 52.95 kB / 492.9 MB, free: 8.285 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.1135, allocations: 0.7731 MB / 493.7 MB, free: 7.512 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003467/0.1169, allocations: 2.796 MB / 496.4 MB, free: 4.582 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/0.1182, allocations: 1.084 MB / 497.5 MB, free: 3.484 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009851/0.1192, allocations: 0.975 MB / 498.5 MB, free: 2.504 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001919/0.1212, allocations: 2.88 MB / 0.4896 GB, free: 15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000953/0.1221, allocations: 0.6839 MB / 0.4903 GB, free: 14.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=68): time 2.034e-06/0.1221, allocations: 0 / 0.4903 GB, free: 14.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=68): time 0.00337/0.1255, allocations: 2.166 MB / 0.4924 GB, free: 12.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002728/0.1258, allocations: 0.5359 MB / 0.4929 GB, free: 11.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003669/0.1262, allocations: 368 kB / 0.4933 GB, free: 11.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.538e-05/0.1263, allocations: 57.7 kB / 0.4933 GB, free: 10.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001807/0.1265, allocations: 256.4 kB / 0.4936 GB, free: 10.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.1266, allocations: 181.8 kB / 0.4938 GB, free: 10.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002547/0.1269, allocations: 198.5 kB / 0.494 GB, free: 10.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.127, allocations: 362.8 kB / 0.4943 GB, free: 9.957 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005528/0.1276, allocations: 333.8 kB / 0.4946 GB, free: 9.633 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007318/0.1283, allocations: 0.6421 MB / 0.4952 GB, free: 8.852 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001644/0.13, allocations: 1.603 MB / 0.4968 GB, free: 6.996 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-05/0.13, allocations: 0 / 0.4968 GB, free: 6.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002167/0.1322, allocations: 1.562 MB / 0.4983 GB, free: 5.355 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001968/0.1324, allocations: 354.6 kB / 0.4987 GB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001198/0.1336, allocations: 0.7518 MB / 0.4994 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003562/0.134, allocations: 84.92 kB / 0.4995 GB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003236/0.1343, allocations: 103.8 kB / 0.4996 GB, free: 3.969 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004439/0.1348, allocations: 0.6224 MB / 0.5002 GB, free: 3.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004215/0.1352, allocations: 107.2 kB / 0.5003 GB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.441e-05/0.1353, allocations: 48 kB / 0.5003 GB, free: 3.168 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.0009798/0.1363, allocations: 0.7131 MB / 0.501 GB, free: 2.383 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.1365, allocations: 71.38 kB / 0.5011 GB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002473/0.1389, allocations: 1.683 MB / 0.5028 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.139, allocations: 0 / 0.5028 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.1992/0.3381, allocations: 1.58 MB / 0.5043 GB, free: 35.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.3383, allocations: 121.3 kB / 0.5044 GB, free: 35.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001923/0.3385, allocations: 69.72 kB / 0.5045 GB, free: 35.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003657/0.3389, allocations: 51.77 kB / 0.5045 GB, free: 35.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001741/0.339, allocations: 63.11 kB / 0.5046 GB, free: 35.04 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.0009191/0.34, allocations: 0.5874 MB / 0.5052 GB, free: 34.56 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