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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.001042/0.001042, allocations: 181.7 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.202/1.202, allocations: 205.1 MB / 221.8 MB, free: 8.48 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.0009461/0.0009457, allocations: 104.5 kB / 269.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.07032/0.07032, allocations: 16.88 MB / 333.4 MB, free: 8.117 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009956/0.0009954, allocations: 55.91 kB / 394.9 MB, free: 61.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08341/0.08442, allocations: 50.68 MB / 445.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.PCtoTCfunction): time 0.002774/0.08724, allocations: 2.134 MB / 447.7 MB, free: 8.996 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002909/0.09018, allocations: 1.931 MB / 449.6 MB, free: 7.059 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000396/0.0906, allocations: 4 kB / 449.6 MB, free: 7.055 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003754/0.09098, allocations: 111.3 kB / 449.7 MB, free: 6.945 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004739/0.09149, allocations: 95.42 kB / 449.8 MB, free: 6.852 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001275/0.09278, allocations: 0.5929 MB / 450.4 MB, free: 6.258 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009541/0.09375, allocations: 1.151 MB / 451.6 MB, free: 5.105 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002261/0.09399, allocations: 172.6 kB / 451.8 MB, free: 4.926 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005434/0.09454, allocations: 450.4 kB / 452.2 MB, free: 4.484 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005156/0.09507, allocations: 350.1 kB / 452.5 MB, free: 4.141 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001737/0.09525, allocations: 44 kB / 452.6 MB, free: 4.098 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006625/0.09592, allocations: 427.4 kB / 453 MB, free: 3.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001778/0.09611, allocations: 147.5 kB / 453.1 MB, free: 3.535 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000349/0.09646, allocations: 358.2 kB / 453.5 MB, free: 3.184 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001244/0.09772, allocations: 1.107 MB / 454.6 MB, free: 2.074 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.09773, allocations: 0 / 454.6 MB, free: 2.074 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.09774, allocations: 0 / 454.6 MB, free: 2.074 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.251e-05/0.09778, allocations: 0 / 454.6 MB, free: 2.074 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.001734/0.09952, allocations: 1.314 MB / 455.9 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.09957, allocations: 15.97 kB / 455.9 MB, free: 0.625 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005945/0.1002, allocations: 140 kB / 456.1 MB, free: 500 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004998/0.1007, allocations: 442.5 kB / 456.5 MB, free: 16 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001834/0.1009, allocations: 146.4 kB / 456.6 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.101, allocations: 83.89 kB / 456.7 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001817/0.1028, allocations: 1.338 MB / 458.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.1029, allocations: 0 / 458.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.475e-05/0.103, allocations: 39.98 kB / 458.1 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.522e-05/0.1031, allocations: 65.25 kB / 458.2 MB, free: 14.28 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/0.1046, allocations: 0.9418 MB / 459.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003369/0.1079, allocations: 2.948 MB / 462 MB, free: 10.28 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.1094, allocations: 1.256 MB / 463.3 MB, free: 9 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/0.1104, allocations: 1.131 MB / 464.4 MB, free: 7.863 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001377/0.1106, allocations: 105.2 kB / 464.5 MB, free: 7.742 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/0.1116, allocations: 0.797 MB / 465.3 MB, free: 6.914 MB / 314.7 MB Notification: Performance of pre-optimization done (n=70): time 1.763e-06/0.1116, allocations: 0 / 465.3 MB, free: 6.914 MB / 314.7 MB Notification: Performance of matching and sorting (n=70): time 0.003521/0.1152, allocations: 2.515 MB / 467.8 MB, free: 4.32 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002627/0.1154, allocations: 0.5558 MB / 468.4 MB, free: 3.656 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000361/0.1158, allocations: 399.9 kB / 468.8 MB, free: 3.258 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.859e-05/0.1159, allocations: 57.73 kB / 468.9 MB, free: 3.195 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001726/0.1161, allocations: 272.2 kB / 469.1 MB, free: 2.922 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.1162, allocations: 193.7 kB / 469.3 MB, free: 2.73 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002777/0.1165, allocations: 230.5 kB / 469.5 MB, free: 2.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.1166, allocations: 362.8 kB / 469.9 MB, free: 2.137 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006952/0.1173, allocations: 478 kB / 470.4 MB, free: 1.668 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008405/0.1182, allocations: 0.8001 MB / 471.2 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/0.1198, allocations: 1.777 MB / 472.9 MB, free: 14.67 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.1198, allocations: 0 / 472.9 MB, free: 14.67 MB / 330.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.00245/0.1223, allocations: 1.933 MB / 474.9 MB, free: 12.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001992/0.1225, allocations: 378.6 kB / 475.2 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.359e-05/0.1225, allocations: 12 kB / 475.2 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003086/0.1229, allocations: 80.78 kB / 475.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003215/0.1232, allocations: 115.7 kB / 475.4 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004062/0.1236, allocations: 0.5915 MB / 476 MB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004912/0.1241, allocations: 147 kB / 476.2 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.765e-05/0.1242, allocations: 55.98 kB / 476.2 MB, free: 11.2 MB / 330.7 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],P1.outTransition[1].tokenInOut,$PRE.P1.disMarksInOut,$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.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,T1.firingCon,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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0008101/0.125, allocations: 0.7599 MB / 477 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.1252, allocations: 71.44 kB / 477.1 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002658/0.1279, allocations: 1.981 MB / 479 MB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.484e-05/0.1279, allocations: 4 kB / 479 MB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1279, allocations: 0 / 479 MB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.1279, allocations: 3.938 kB / 479 MB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003871/0.1318, allocations: 2.72 MB / 481.8 MB, free: 5.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/0.1318, allocations: 0 / 481.8 MB, free: 5.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001602/0.132, allocations: 23.98 kB / 481.8 MB, free: 5.406 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002406/0.1322, allocations: 68.8 kB / 481.9 MB, free: 5.336 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000102/0.1324, allocations: 47.84 kB / 481.9 MB, free: 5.289 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004075/0.1328, allocations: 0.5836 MB / 482.5 MB, free: 4.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1328, allocations: 0 / 482.5 MB, free: 4.68 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 "(_, P1.decFactorOut) = PNlib.Functions.decreasingFactor(0, 1, P1.t_, P1.minMarks, P1.maxMarks, 0.0, -P1.conMarkChange, {}, {1.0}, {}, P1.prelimSpeedOut, {}, {P1.enableOut.arcWeight[1]}, {} and not {}, P1.fireOut and not {false})" 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.1641/0.2969, allocations: 5.156 MB / 487.6 MB, free: 47.79 MB / 330.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.