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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo", uses=false) Using package PNlib with version 2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001536/0.001536, allocations: 182.9 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.243/1.243, allocations: 205.1 MB / 221.8 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009793/0.0009793, allocations: 100 kB / 269.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.07275/0.07275, allocations: 16.86 MB / 333.4 MB, free: 8.121 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009711/0.0009713, allocations: 55.92 kB / 394.9 MB, free: 61.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07126/0.07224, allocations: 50.68 MB / 445.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.TCtoPCfunction): time 0.002652/0.07494, allocations: 2.138 MB / 447.7 MB, free: 8.996 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002354/0.07731, allocations: 1.939 MB / 449.6 MB, free: 7.051 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001552/0.07748, allocations: 7.938 kB / 449.6 MB, free: 7.043 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002416/0.07772, allocations: 103.4 kB / 449.7 MB, free: 6.941 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002891/0.07803, allocations: 95.42 kB / 449.8 MB, free: 6.848 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008299/0.07887, allocations: 0.5968 MB / 450.4 MB, free: 6.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006036/0.07948, allocations: 1.131 MB / 451.6 MB, free: 5.117 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.07966, allocations: 148.2 kB / 451.7 MB, free: 4.969 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002567/0.07992, allocations: 446.5 kB / 452.1 MB, free: 4.531 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002768/0.08021, allocations: 314.3 kB / 452.5 MB, free: 4.223 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.224e-05/0.08029, allocations: 36 kB / 452.5 MB, free: 4.188 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004126/0.08071, allocations: 411.4 kB / 452.9 MB, free: 3.785 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.08084, allocations: 147.4 kB / 453 MB, free: 3.641 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002046/0.08105, allocations: 314.4 kB / 453.3 MB, free: 3.332 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006642/0.08172, allocations: 0.9977 MB / 454.3 MB, free: 2.332 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.08173, allocations: 0 / 454.3 MB, free: 2.332 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.08174, allocations: 0 / 454.3 MB, free: 2.332 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.503e-06/0.08175, allocations: 3.938 kB / 454.3 MB, free: 2.328 MB / 298.7 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.001125/0.08288, allocations: 1.259 MB / 455.6 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.935e-05/0.08292, allocations: 8.031 kB / 455.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005112/0.08344, allocations: 136.1 kB / 455.7 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004267/0.08387, allocations: 410.8 kB / 456.1 MB, free: 376 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.154e-05/0.08397, allocations: 142.4 kB / 456.3 MB, free: 216 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.677e-05/0.08407, allocations: 67.98 kB / 456.4 MB, free: 148 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.0856, allocations: 1.13 MB / 457.5 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.08563, allocations: 3.938 kB / 457.5 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-05/0.08571, allocations: 31.98 kB / 457.5 MB, free: 14.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-05/0.08581, allocations: 60.95 kB / 457.6 MB, free: 14.87 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.08707, allocations: 0.7653 MB / 458.3 MB, free: 14.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003115/0.09019, allocations: 2.815 MB / 461.2 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.09141, allocations: 1.084 MB / 462.2 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000952/0.09238, allocations: 0.9671 MB / 463.2 MB, free: 9.082 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.347e-05/0.09244, allocations: 19.98 kB / 463.2 MB, free: 9.062 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008837/0.09333, allocations: 0.6726 MB / 463.9 MB, free: 8.359 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 1.763e-06/0.09335, allocations: 0 / 463.9 MB, free: 8.359 MB / 314.7 MB Notification: Performance of matching and sorting (n=68): time 0.003071/0.09642, allocations: 2.167 MB / 466.1 MB, free: 6.113 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002617/0.0967, allocations: 0.5321 MB / 466.6 MB, free: 5.477 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003203/0.09703, allocations: 368 kB / 467 MB, free: 5.109 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.983e-05/0.0971, allocations: 61.72 kB / 467 MB, free: 5.043 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.09725, allocations: 252.5 kB / 467.3 MB, free: 4.789 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001314/0.09739, allocations: 185.7 kB / 467.4 MB, free: 4.605 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002225/0.09762, allocations: 194.6 kB / 467.6 MB, free: 4.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.09775, allocations: 370.7 kB / 468 MB, free: 4.039 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004997/0.09826, allocations: 333.7 kB / 468.3 MB, free: 3.711 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006659/0.09893, allocations: 0.6382 MB / 469 MB, free: 2.93 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00152/0.1005, allocations: 1.61 MB / 470.6 MB, free: 1.066 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/0.1005, allocations: 4 kB / 470.6 MB, free: 1.062 MB / 314.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002035/0.1025, allocations: 1.554 MB / 472.1 MB, free: 15.43 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002131/0.1028, allocations: 354.7 kB / 472.5 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001031/0.1038, allocations: 0.7394 MB / 473.2 MB, free: 14.24 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003623/0.1042, allocations: 80.95 kB / 473.3 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002923/0.1045, allocations: 103.8 kB / 473.4 MB, free: 14.06 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004393/0.1049, allocations: 0.6185 MB / 474 MB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003513/0.1053, allocations: 103 kB / 474.1 MB, free: 13.31 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.877e-05/0.1054, allocations: 52 kB / 474.2 MB, free: 13.26 MB / 330.7 MB Warning: Assuming fixed start value for the following 18 variables: 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 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 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.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,$whenCondition3,P1.disMarksOut.numtrue,P1.disMarksOut.anytrue,$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,$whenCondition1,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],$whenCondition2) * 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.0007545/0.1061, allocations: 0.7087 MB / 474.9 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001474/0.1063, allocations: 71.38 kB / 474.9 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00237/0.1087, allocations: 1.683 MB / 476.6 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.655e-06/0.1087, allocations: 4 kB / 476.6 MB, free: 10.67 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.1087, allocations: 8 kB / 476.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1087, allocations: 0 / 476.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003252/0.112, allocations: 2.546 MB / 479.2 MB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.002161/0.1141, allocations: 1.581 MB / 480.8 MB, free: 6.379 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/0.1143, allocations: 27.97 kB / 480.8 MB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002574/0.1146, allocations: 72.78 kB / 480.9 MB, free: 6.277 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.129e-05/0.1147, allocations: 39.98 kB / 480.9 MB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000419/0.1151, allocations: 0.6029 MB / 481.5 MB, free: 5.609 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.1151, allocations: 4.094 kB / 481.5 MB, free: 5.605 MB / 330.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/Differentiate.mo:267:5-267:157:writable] Error: Derivative of expression "($OMC$CF$sim1, _) = PNlib.Functions.decreasingFactor(1, 0, P1.t_, P1.minMarks, P1.maxMarks, P1.conMarkChange, 0.0, {1.0}, {}, P1.prelimSpeedIn, {}, {P1.enableIn.arcWeight[1]}, {}, P1.fireIn and not {false}, {} and not {})" w.r.t. "dummyVarA" is non-existent. Error: Internal error SymbolicJacobian.deriveAll failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2440:7-2440:87:writable] Error: Internal error function generateSymbolicJacobian failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:2231:9-2231:79:writable] Error: Internal error function createJacobian failed Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004544/0.1197, allocations: 3.264 MB / 484.8 MB, free: 2.191 MB / 330.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.