Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.PCtoTC.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.PCtoTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.PCtoTC") translateModel(PNlib.Examples.ConTest.PCtoTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="P1.t|T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.PCtoTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001232/0.001232, allocations: 182.8 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.217/1.217, allocations: 205.1 MB / 221.8 MB, free: 8.469 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.0009697/0.0009693, allocations: 102 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.07005/0.07005, allocations: 16.87 MB / 333.4 MB, free: 8.109 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001011, allocations: 47.92 kB / 394.9 MB, free: 61.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08112/0.08215, allocations: 50.69 MB / 445.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.PCtoTC): time 0.00261/0.0848, allocations: 2.124 MB / 447.7 MB, free: 9.004 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002405/0.08722, allocations: 1.935 MB / 449.6 MB, free: 7.062 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001678/0.0874, allocations: 7.938 kB / 449.6 MB, free: 7.055 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002597/0.08767, allocations: 103.4 kB / 449.7 MB, free: 6.953 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003437/0.08803, allocations: 107.4 kB / 449.8 MB, free: 6.848 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000903/0.08894, allocations: 0.5851 MB / 450.4 MB, free: 6.262 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006398/0.08959, allocations: 1.151 MB / 451.6 MB, free: 5.109 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.08978, allocations: 172.6 kB / 451.7 MB, free: 4.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002653/0.09005, allocations: 458.4 kB / 452.2 MB, free: 4.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003045/0.09036, allocations: 346.2 kB / 452.5 MB, free: 4.141 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.694e-05/0.09046, allocations: 47.94 kB / 452.6 MB, free: 4.094 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004649/0.09093, allocations: 415.4 kB / 453 MB, free: 3.688 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001262/0.09106, allocations: 155.4 kB / 453.1 MB, free: 3.535 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000238/0.09131, allocations: 350.2 kB / 453.5 MB, free: 3.191 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007096/0.09202, allocations: 1.107 MB / 454.6 MB, free: 2.082 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.09204, allocations: 0 / 454.6 MB, free: 2.082 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.32e-07/0.09204, allocations: 0 / 454.6 MB, free: 2.082 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.09206, allocations: 0 / 454.6 MB, free: 2.082 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.001335/0.09339, allocations: 1.314 MB / 455.9 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.09345, allocations: 16.02 kB / 455.9 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005672/0.09402, allocations: 132 kB / 456 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004965/0.09453, allocations: 454.4 kB / 456.5 MB, free: 20 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001583/0.09469, allocations: 142.4 kB / 456.6 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.09484, allocations: 87.89 kB / 456.7 MB, free: 15.78 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001953/0.0968, allocations: 1.336 MB / 458.1 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.09683, allocations: 4 kB / 458.1 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.9e-05/0.09693, allocations: 39.97 kB / 458.1 MB, free: 14.35 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.39e-05/0.09703, allocations: 57.27 kB / 458.1 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.09856, allocations: 0.9496 MB / 459.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003393/0.102, allocations: 2.917 MB / 462 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.1033, allocations: 1.193 MB / 463.2 MB, free: 9.098 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001071/0.1044, allocations: 1.065 MB / 464.3 MB, free: 8.023 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001815/0.1046, allocations: 109.2 kB / 464.4 MB, free: 7.898 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00103/0.1057, allocations: 0.7774 MB / 465.2 MB, free: 7.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=70): time 2.445e-06/0.1057, allocations: 0 / 465.2 MB, free: 7.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=70): time 0.003562/0.1092, allocations: 2.457 MB / 467.6 MB, free: 4.555 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003065/0.1096, allocations: 0.5598 MB / 468.2 MB, free: 3.887 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004133/0.11, allocations: 405.1 kB / 468.6 MB, free: 3.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.348e-05/0.1101, allocations: 65.69 kB / 468.6 MB, free: 3.41 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002144/0.1103, allocations: 280 kB / 468.9 MB, free: 3.133 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001595/0.1105, allocations: 189.7 kB / 469.1 MB, free: 2.945 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002788/0.1107, allocations: 226.5 kB / 469.3 MB, free: 2.719 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1109, allocations: 370.8 kB / 469.7 MB, free: 2.348 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006777/0.1116, allocations: 478 kB / 470.1 MB, free: 1.883 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000896/0.1125, allocations: 0.8018 MB / 470.9 MB, free: 0.918 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001724/0.1142, allocations: 1.779 MB / 472.7 MB, free: 14.87 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.1143, allocations: 4 kB / 472.7 MB, free: 14.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.00246/0.1167, allocations: 1.932 MB / 474.7 MB, free: 12.85 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002126/0.1169, allocations: 379.5 kB / 475 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.564e-05/0.117, allocations: 12 kB / 475 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002879/0.1173, allocations: 76.8 kB / 475.1 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000321/0.1176, allocations: 115.7 kB / 475.2 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003899/0.118, allocations: 0.5836 MB / 475.8 MB, free: 11.6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005159/0.1185, allocations: 138.9 kB / 475.9 MB, free: 11.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.131e-05/0.1186, allocations: 64.17 kB / 476 MB, free: 11.4 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: 48 * 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 (116): * Single equations (assignments): 104 * 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.0007695/0.1194, allocations: 0.7679 MB / 476.8 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.1196, allocations: 71.44 kB / 476.8 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002613/0.1222, allocations: 1.914 MB / 478.8 MB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/0.1222, allocations: 19.97 kB / 478.8 MB, free: 8.504 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1223, allocations: 0 / 478.8 MB, free: 8.504 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1223, allocations: 3.938 kB / 478.8 MB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003257/0.1255, allocations: 2.652 MB / 481.4 MB, free: 5.742 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.1256, allocations: 8 kB / 481.4 MB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001277/0.1257, allocations: 27.97 kB / 481.5 MB, free: 5.707 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001769/0.1259, allocations: 56.75 kB / 481.5 MB, free: 5.648 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.347e-05/0.126, allocations: 47.91 kB / 481.6 MB, free: 5.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003631/0.1263, allocations: 0.568 MB / 482.1 MB, free: 5.008 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1263, allocations: 4.062 kB / 482.1 MB, free: 5.004 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, {}, {1.0}, {} 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.1574/0.2837, allocations: 5.005 MB / 487.2 MB, free: 47.91 MB / 330.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.