Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test10.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo", uses=false) Using package ConPNlib with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo) Running command: translateModel(ConPNlib.Examples.Test10,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ConPNlib_ConPNlib.Examples.Test10") translateModel(ConPNlib.Examples.Test10,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ConPNlib_ConPNlib.Examples.Test10") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.02618/0.02618, allocations: 1.358 MB / 16.31 MB, free: 5.352 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.727e-05/1.739e-05, allocations: 0 / 23.22 MB, free: 4.043 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0007901/0.0008339, allocations: 355.6 kB / 23.56 MB, free: 3.891 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test10): time 0.002193/0.003044, allocations: 1.838 MB / 25.4 MB, free: 2.234 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.002203/0.005284, allocations: 0.966 MB / 26.37 MB, free: 1.266 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000393/0.005706, allocations: 7.938 kB / 26.37 MB, free: 1.258 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0004101/0.006131, allocations: 166.9 kB / 26.54 MB, free: 1.094 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.001269/0.007413, allocations: 393.6 kB / 26.92 MB, free: 0.7109 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002905/0.007723, allocations: 79.89 kB / 27 MB, free: 0.6328 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0006302/0.008369, allocations: 475.1 kB / 27.46 MB, free: 172 kB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006664/0.00905, allocations: 356.6 kB / 27.81 MB, free: 4.449 MB / 18.57 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004429/0.009508, allocations: 262.4 kB / 28.07 MB, free: 4.191 MB / 18.57 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004228/0.009945, allocations: 290.2 kB / 28.35 MB, free: 3.906 MB / 18.57 MB Notification: Performance of NFPackage.collectConstants: time 9.73e-05/0.01006, allocations: 28 kB / 28.38 MB, free: 3.879 MB / 18.57 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005493/0.01062, allocations: 195.7 kB / 28.57 MB, free: 3.688 MB / 18.57 MB Notification: Performance of NFScalarize.scalarize: time 0.0002339/0.01087, allocations: 163.3 kB / 28.73 MB, free: 3.527 MB / 18.57 MB Notification: Performance of NFVerifyModel.verify: time 0.0001996/0.01108, allocations: 153.2 kB / 28.88 MB, free: 3.371 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.001312/0.0124, allocations: 0.7486 MB / 29.63 MB, free: 2.621 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.01244, allocations: 4 kB / 29.63 MB, free: 2.617 MB / 18.57 MB Notification: Performance of FrontEnd: time 2.364e-06/0.01245, allocations: 0 / 29.63 MB, free: 2.617 MB / 18.57 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.01248, allocations: 0 / 29.63 MB, free: 2.617 MB / 18.57 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.00197/0.01445, allocations: 1.006 MB / 30.64 MB, free: 1.547 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.01452, allocations: 8.297 kB / 30.65 MB, free: 1.539 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003272/0.01486, allocations: 107.6 kB / 30.75 MB, free: 1.434 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001084/0.01596, allocations: 494 kB / 31.23 MB, free: 0.9102 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.01611, allocations: 94.58 kB / 31.33 MB, free: 0.8164 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002662/0.01639, allocations: 120.3 kB / 31.44 MB, free: 0.6992 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01552/0.03193, allocations: 1.576 MB / 33.02 MB, free: 7.246 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.286e-05/0.03203, allocations: 2.734 kB / 33.02 MB, free: 7.246 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001458/0.03218, allocations: 54.84 kB / 33.08 MB, free: 7.211 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002226/0.03241, allocations: 98.44 kB / 33.17 MB, free: 7.184 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003039/0.03547, allocations: 1.119 MB / 34.29 MB, free: 6.668 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006123/0.04164, allocations: 3.484 MB / 37.78 MB, free: 3.062 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/0.04324, allocations: 0.6661 MB / 38.44 MB, free: 2.367 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005308/0.04381, allocations: 0.5956 MB / 39.04 MB, free: 1.645 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.04386, allocations: 42.94 kB / 39.08 MB, free: 1.594 MB / 18.57 MB Notification: Performance of pre-optimization done (n=51): time 3.597e-06/0.04387, allocations: 3 kB / 39.08 MB, free: 1.594 MB / 18.57 MB Notification: Performance of matching and sorting (n=51): time 0.002862/0.04674, allocations: 1.334 MB / 40.42 MB, free: 196 kB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01209/0.05887, allocations: 267.1 kB / 40.68 MB, free: 6.641 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007363/0.05966, allocations: 416.1 kB / 41.08 MB, free: 6.531 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 0.0001383/0.05983, allocations: 37.84 kB / 41.12 MB, free: 6.5 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.000379/0.06022, allocations: 450.9 kB / 41.56 MB, free: 6.281 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002246/0.06046, allocations: 173.6 kB / 41.73 MB, free: 6.184 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.809e-05/0.06054, allocations: 16.88 kB / 41.75 MB, free: 6.18 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.06065, allocations: 359.9 kB / 42.1 MB, free: 5.848 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009848/0.06168, allocations: 377.8 kB / 42.47 MB, free: 5.742 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/0.06283, allocations: 0.5936 MB / 43.06 MB, free: 5.375 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/0.06392, allocations: 461.8 kB / 43.51 MB, free: 5.176 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/0.06397, allocations: 0 / 43.51 MB, free: 5.176 MB / 18.57 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002625/0.06661, allocations: 1.123 MB / 44.63 MB, free: 4.504 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.06676, allocations: 87.36 kB / 44.72 MB, free: 4.406 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.06679, allocations: 8 kB / 44.73 MB, free: 4.398 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.061e-05/0.06683, allocations: 9.75 kB / 44.74 MB, free: 4.391 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006786/0.06752, allocations: 123.8 kB / 44.86 MB, free: 4.27 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.072e-05/0.06756, allocations: 15.78 kB / 44.87 MB, free: 4.258 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006435/0.06821, allocations: 119.1 kB / 44.99 MB, free: 4.145 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/0.06834, allocations: 39.98 kB / 45.03 MB, free: 4.105 MB / 18.57 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.P1.fireOut[1],P1.emptying,$PRE.P2.fireOut[1],$PRE.P2.fireOut[2],P2.emptying,$PRE.P3.fireIn[1],P3.feeding,$PRE.P4.fireIn[1],P4.feeding,IA1.outTransition.arcType,P2.outTransition[1].arcType,P1.outTransition[1].arcType,P1.fireOut[1],P2.fireOut[1],P2.fireOut[2],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyInputActiveVec[2],T1.activation.weaklyOutputActiveVec[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],P4.fireIn[1],T1.activation.arcType[1],T2.activation.arcType[1],T1.activation.arcType[2],T2.activation.emptied[1],T1.activation.emptied[1],T1.activation.fed[2],T1.activation.fed[1],T2.outPlaces[1].enabledByInPlaces,T1.outPlaces[1].enabledByInPlaces,P2.outTransition[2].arcType) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 81 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008167/0.06916, allocations: 455.6 kB / 45.47 MB, free: 3.641 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.06932, allocations: 51.44 kB / 45.52 MB, free: 3.59 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002255/0.07159, allocations: 0.9381 MB / 46.46 MB, free: 2.633 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.134e-05/0.07168, allocations: 14.17 kB / 46.47 MB, free: 2.621 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.525e-06/0.0717, allocations: 3.938 kB / 46.48 MB, free: 2.617 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.07172, allocations: 15.94 kB / 46.49 MB, free: 2.602 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01668/0.0884, allocations: 1.74 MB / 48.23 MB, free: 5.469 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.08846, allocations: 1.344 kB / 48.24 MB, free: 5.469 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000596/0.08907, allocations: 83.88 kB / 48.32 MB, free: 5.469 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.987e-06/0.08909, allocations: 3.875 kB / 48.32 MB, free: 5.469 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.603e-05/0.08919, allocations: 22.72 kB / 48.34 MB, free: 5.469 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.455e-06/0.08921, allocations: 8.906 kB / 48.35 MB, free: 5.469 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.08922, allocations: 0 / 48.35 MB, free: 5.469 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003171/0.0924, allocations: 1.408 MB / 49.76 MB, free: 5.109 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001311/0.09258, allocations: 121.1 kB / 49.88 MB, free: 5.016 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001656/0.09276, allocations: 25.92 kB / 49.9 MB, free: 5.004 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004751/0.09324, allocations: 65.88 kB / 49.97 MB, free: 4.996 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003654/0.09362, allocations: 127.9 kB / 50.09 MB, free: 4.969 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.868e-05/0.09373, allocations: 31.41 kB / 50.12 MB, free: 4.961 MB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0003651/0.0941, allocations: 249.1 kB / 50.37 MB, free: 4.832 MB / 18.57 MB Notification: Performance of sort global known variables: time 3.4e-07/0.09411, allocations: 0 / 50.37 MB, free: 4.832 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.001052/0.09518, allocations: 287.8 kB / 50.65 MB, free: 4.789 MB / 18.57 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (P1.t_,P2.t_,P3.t_,P4.t_) * Number of discrete variables: 17 (P1.fireOut[1],P1.emptying,P2.fireOut[1],P2.fireOut[2],P2.emptying,T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyInputActiveVec[2],T1.activation.weaklyOutputActiveVec[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],P3.fireIn[1],P3.feeding,P4.fireIn[1],P4.feeding) * Number of discrete states: 12 (T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[2],T1.activation.weaklyInputActiveVec[1],T1.activation.active,T2.activation.weaklyOutputActiveVec[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,P1.fireOut[1],P2.fireOut[1],P2.fireOut[2],P3.fireIn[1],P4.fireIn[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 44 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005125/0.09572, allocations: 210.1 kB / 50.85 MB, free: 4.684 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.002411/0.09814, allocations: 1.13 MB / 51.98 MB, free: 3.824 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.09819, allocations: 2.625 kB / 51.99 MB, free: 3.824 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/0.09932, allocations: 0.6101 MB / 52.6 MB, free: 3.207 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000497/0.09984, allocations: 60.81 kB / 52.66 MB, free: 3.152 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003881/0.1037, allocations: 2.077 MB / 54.73 MB, free: 1.055 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01461/0.1184, allocations: 1.131 MB / 55.86 MB, free: 4.457 MB / 18.57 MB Notification: Performance of simCode: alias equations: time 0.0009615/0.1194, allocations: 256.6 kB / 56.11 MB, free: 4.453 MB / 18.57 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004588/0.1199, allocations: 81.53 kB / 56.19 MB, free: 4.449 MB / 18.57 MB Notification: Performance of SimCode: time 1.714e-06/0.1199, allocations: 0 / 56.19 MB, free: 4.449 MB / 18.57 MB Error: Internal error Expression.listToArray2: Number of elements in the list does not match the dimension size. Error: Template error: A template call failed (/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so: (null)). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates assert pure 'match'/non-failing semantics).