Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.TCtoPC.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.TCtoPC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.TCtoPC") translateModel(PNlib.Examples.ConTest.TCtoPC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.TCtoPC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001078/0.001078, allocations: 182.2 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.231/1.231, 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.001037/0.001037, allocations: 96.17 kB / 269.2 MB, free: 8.445 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.07063/0.07063, allocations: 16.87 MB / 333.4 MB, free: 8.121 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009217/0.0009217, allocations: 59.91 kB / 394.9 MB, free: 61.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06776/0.06869, allocations: 50.67 MB / 445.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.TCtoPC): time 0.002476/0.0712, allocations: 2.136 MB / 447.7 MB, free: 9.008 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00236/0.07358, allocations: 1.935 MB / 449.6 MB, free: 7.066 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001778/0.07377, allocations: 7.938 kB / 449.6 MB, free: 7.059 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.07401, allocations: 103.4 kB / 449.7 MB, free: 6.957 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002855/0.07432, allocations: 91.42 kB / 449.8 MB, free: 6.867 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009174/0.07524, allocations: 0.5968 MB / 450.4 MB, free: 6.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006058/0.07586, allocations: 1.143 MB / 451.6 MB, free: 5.125 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.07603, allocations: 136.3 kB / 451.7 MB, free: 4.988 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002572/0.0763, allocations: 446.5 kB / 452.1 MB, free: 4.551 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000277/0.07658, allocations: 318.3 kB / 452.4 MB, free: 4.238 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.535e-05/0.07666, allocations: 36 kB / 452.5 MB, free: 4.203 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004234/0.0771, allocations: 415.4 kB / 452.9 MB, free: 3.797 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.07722, allocations: 147.4 kB / 453 MB, free: 3.652 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002007/0.07743, allocations: 306.4 kB / 453.3 MB, free: 3.352 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006495/0.07809, allocations: 1.002 MB / 454.3 MB, free: 2.348 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.0781, allocations: 0 / 454.3 MB, free: 2.348 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.07811, allocations: 0 / 454.3 MB, free: 2.348 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.341e-06/0.07812, allocations: 0 / 454.3 MB, free: 2.348 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.001159/0.07928, allocations: 1.259 MB / 455.6 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.036e-05/0.07932, allocations: 8.031 kB / 455.6 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005387/0.07986, allocations: 136.1 kB / 455.7 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004332/0.08031, allocations: 418.8 kB / 456.1 MB, free: 388 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.136e-05/0.08041, allocations: 130.4 kB / 456.3 MB, free: 240 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.679e-05/0.0805, allocations: 75.97 kB / 456.3 MB, free: 164 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001536/0.08205, allocations: 1.124 MB / 457.5 MB, free: 14.99 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.08208, allocations: 3.938 kB / 457.5 MB, free: 14.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.258e-05/0.08216, allocations: 39.98 kB / 457.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.425e-05/0.08226, allocations: 52.95 kB / 457.6 MB, free: 14.89 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001253/0.08351, allocations: 0.7731 MB / 458.3 MB, free: 14.12 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003048/0.08657, allocations: 2.784 MB / 461.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.08776, allocations: 1.021 MB / 462.1 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008862/0.08866, allocations: 0.9046 MB / 463 MB, free: 9.25 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.094e-05/0.08872, allocations: 23.98 kB / 463.1 MB, free: 9.227 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008649/0.08959, allocations: 0.6569 MB / 463.7 MB, free: 8.539 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 2.575e-06/0.08961, allocations: 0 / 463.7 MB, free: 8.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=68): time 0.00308/0.09269, allocations: 2.089 MB / 465.8 MB, free: 6.371 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002557/0.09296, allocations: 0.5321 MB / 466.3 MB, free: 5.734 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003365/0.0933, allocations: 372 kB / 466.7 MB, free: 5.363 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.816e-05/0.09338, allocations: 61.69 kB / 466.8 MB, free: 5.297 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.09355, allocations: 252.3 kB / 467 MB, free: 5.043 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.09369, allocations: 193.8 kB / 467.2 MB, free: 4.852 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002302/0.09393, allocations: 198.5 kB / 467.4 MB, free: 4.652 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.09407, allocations: 374.7 kB / 467.8 MB, free: 4.277 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004875/0.09456, allocations: 318.1 kB / 468.1 MB, free: 3.961 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006982/0.09527, allocations: 0.65 MB / 468.7 MB, free: 3.168 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.09679, allocations: 1.612 MB / 470.3 MB, free: 1.297 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.822e-06/0.09681, allocations: 4 kB / 470.3 MB, free: 1.293 MB / 314.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.001944/0.09876, allocations: 1.562 MB / 471.9 MB, free: 15.65 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002145/0.09899, allocations: 358.7 kB / 472.3 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000975/0.09997, allocations: 0.712 MB / 473 MB, free: 14.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003083/0.1003, allocations: 77.23 kB / 473 MB, free: 14.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003087/0.1006, allocations: 107.8 kB / 473.1 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004024/0.101, allocations: 0.6068 MB / 473.8 MB, free: 13.67 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003532/0.1014, allocations: 103 kB / 473.9 MB, free: 13.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.603e-05/0.1015, allocations: 55.98 kB / 473.9 MB, free: 13.52 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: 44 * 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 (107): * Single equations (assignments): 95 * 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.0007419/0.1022, allocations: 0.7055 MB / 474.6 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.1024, allocations: 71.38 kB / 474.7 MB, free: 12.67 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002265/0.1047, allocations: 1.632 MB / 476.3 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.1047, allocations: 4 kB / 476.3 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1047, allocations: 0 / 476.3 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.1047, allocations: 3.984 kB / 476.3 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003348/0.1081, allocations: 2.502 MB / 478.8 MB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.002072/0.1101, allocations: 1.526 MB / 480.4 MB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000143/0.1103, allocations: 23.98 kB / 480.4 MB, free: 6.766 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002275/0.1105, allocations: 64.8 kB / 480.4 MB, free: 6.699 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.707e-05/0.1106, allocations: 39.95 kB / 480.5 MB, free: 6.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004482/0.1111, allocations: 0.5952 MB / 481.1 MB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1111, allocations: 3.938 kB / 481.1 MB, free: 6.035 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, {}, {1.0}, {}, 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.004453/0.1155, allocations: 3.195 MB / 484.3 MB, free: 2.691 MB / 330.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.