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: "" <> buildModelFMU(ConPNlib.Examples.Test10,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test10",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ConPNlib.Examples.Test10,fileNamePrefix="ConPNlib_ConPNlib_Examples_Test10",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.02535/0.02535, allocations: 1.357 MB / 16.31 MB, free: 5.309 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.715e-05/1.728e-05, allocations: 0 / 23.32 MB, free: 4.016 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0009241/0.0009837, allocations: 358.6 kB / 23.67 MB, free: 3.852 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test10): time 0.003234/0.004242, allocations: 1.841 MB / 25.51 MB, free: 2.105 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.003061/0.007344, allocations: 0.9582 MB / 26.46 MB, free: 1.148 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007312/0.008131, allocations: 7.938 kB / 26.47 MB, free: 1.141 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0006205/0.008784, allocations: 167.4 kB / 26.64 MB, free: 0.9766 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.002168/0.01097, allocations: 385.7 kB / 27.01 MB, free: 0.6016 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004886/0.01152, allocations: 83.88 kB / 27.09 MB, free: 0.5195 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0012/0.01274, allocations: 483 kB / 27.57 MB, free: 48 kB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001667/0.01446, allocations: 356.7 kB / 27.91 MB, free: 4.328 MB / 18.57 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.01554, allocations: 262.5 kB / 28.17 MB, free: 4.07 MB / 18.57 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000466/0.01603, allocations: 286.2 kB / 28.45 MB, free: 3.789 MB / 18.57 MB Notification: Performance of NFPackage.collectConstants: time 9.448e-05/0.01614, allocations: 24 kB / 28.47 MB, free: 3.766 MB / 18.57 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005245/0.01668, allocations: 199.7 kB / 28.67 MB, free: 3.57 MB / 18.57 MB Notification: Performance of NFScalarize.scalarize: time 0.0002273/0.01692, allocations: 163.3 kB / 28.83 MB, free: 3.41 MB / 18.57 MB Notification: Performance of NFVerifyModel.verify: time 0.0002255/0.01716, allocations: 149.2 kB / 28.97 MB, free: 3.258 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.001216/0.01839, allocations: 0.7525 MB / 29.73 MB, free: 2.504 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.01842, allocations: 4 kB / 29.73 MB, free: 2.5 MB / 18.57 MB Notification: Performance of FrontEnd: time 2.364e-06/0.01843, allocations: 0 / 29.73 MB, free: 2.5 MB / 18.57 MB Notification: Performance of Transformations before backend: time 1.958e-05/0.01846, allocations: 4 kB / 29.73 MB, free: 2.496 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.00173/0.0202, allocations: 0.9981 MB / 30.73 MB, free: 1.434 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.02026, allocations: 12.3 kB / 30.74 MB, free: 1.422 MB / 18.57 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003401/0.02061, allocations: 181.7 kB / 30.92 MB, free: 1.234 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002594/0.02088, allocations: 109.9 kB / 31.03 MB, free: 1.129 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.02194, allocations: 0.489 MB / 31.52 MB, free: 0.5977 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001226/0.02209, allocations: 90.59 kB / 31.61 MB, free: 0.5078 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002476/0.02235, allocations: 120.3 kB / 31.72 MB, free: 400 kB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01747/0.03983, allocations: 1.572 MB / 33.3 MB, free: 4.293 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.74e-05/0.03996, allocations: 3.094 kB / 33.3 MB, free: 4.293 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002514/0.04023, allocations: 51.11 kB / 33.35 MB, free: 4.293 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003418/0.04059, allocations: 101.4 kB / 33.45 MB, free: 4.289 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00515/0.04576, allocations: 1.123 MB / 34.57 MB, free: 4.066 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008879/0.05471, allocations: 3.477 MB / 38.05 MB, free: 0.9648 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002359/0.05712, allocations: 0.6618 MB / 38.71 MB, free: 284 kB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009613/0.05812, allocations: 0.6115 MB / 39.32 MB, free: 5.754 MB / 24.79 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.479e-05/0.0582, allocations: 39.67 kB / 39.36 MB, free: 5.711 MB / 24.79 MB Notification: Performance of pre-optimization done (n=51): time 6.242e-06/0.05823, allocations: 0 / 39.36 MB, free: 5.711 MB / 24.79 MB Notification: Performance of matching and sorting (n=51): time 0.005016/0.06327, allocations: 1.332 MB / 40.69 MB, free: 4.312 MB / 24.79 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002718/0.06358, allocations: 271 kB / 40.96 MB, free: 3.992 MB / 24.79 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/0.06466, allocations: 417 kB / 41.36 MB, free: 3.574 MB / 24.79 MB Notification: Performance of collectPreVariables (initialization): time 0.0001191/0.06481, allocations: 37.7 kB / 41.4 MB, free: 3.531 MB / 24.79 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006314/0.06547, allocations: 462.1 kB / 41.85 MB, free: 3.09 MB / 24.79 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003453/0.06584, allocations: 168.4 kB / 42.02 MB, free: 2.926 MB / 24.79 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.046e-05/0.06595, allocations: 12.94 kB / 42.03 MB, free: 2.914 MB / 24.79 MB Notification: Performance of setup shared object (initialization): time 0.0002437/0.06621, allocations: 354.8 kB / 42.38 MB, free: 2.559 MB / 24.79 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001671/0.06791, allocations: 377.8 kB / 42.75 MB, free: 2.188 MB / 24.79 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001974/0.06991, allocations: 0.5926 MB / 43.34 MB, free: 1.508 MB / 24.79 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001767/0.0717, allocations: 462.1 kB / 43.79 MB, free: 1.055 MB / 24.79 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.931e-05/0.07175, allocations: 4 kB / 43.79 MB, free: 1.051 MB / 24.79 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.02183/0.0936, allocations: 1.118 MB / 44.91 MB, free: 11.06 MB / 24.79 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001831/0.09384, allocations: 88.88 kB / 45 MB, free: 11 MB / 24.79 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.487e-05/0.09388, allocations: 3.812 kB / 45 MB, free: 11 MB / 24.79 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.434e-05/0.09395, allocations: 11.91 kB / 45.01 MB, free: 11 MB / 24.79 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.09506, allocations: 124 kB / 45.13 MB, free: 11 MB / 24.79 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.729e-05/0.09512, allocations: 10.03 kB / 45.14 MB, free: 11 MB / 24.79 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/0.09616, allocations: 116.8 kB / 45.26 MB, free: 11 MB / 24.79 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000168/0.09635, allocations: 53.12 kB / 45.31 MB, free: 11 MB / 24.79 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.001197/0.09757, allocations: 447.1 kB / 45.75 MB, free: 10.82 MB / 24.79 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002112/0.09781, allocations: 52.72 kB / 45.8 MB, free: 10.82 MB / 24.79 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003578/0.1014, allocations: 0.9481 MB / 46.75 MB, free: 10.71 MB / 24.79 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.119e-05/0.1015, allocations: 18.17 kB / 46.76 MB, free: 10.71 MB / 24.79 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.1016, allocations: 0.5156 kB / 46.76 MB, free: 10.71 MB / 24.79 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.1016, allocations: 3.656 kB / 46.77 MB, free: 10.71 MB / 24.79 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005318/0.1069, allocations: 1.753 MB / 48.52 MB, free: 9.957 MB / 24.79 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.107, allocations: 0 / 48.52 MB, free: 9.957 MB / 24.79 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008199/0.1079, allocations: 79.89 kB / 48.6 MB, free: 9.93 MB / 24.79 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.207e-05/0.1079, allocations: 0 / 48.6 MB, free: 9.93 MB / 24.79 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.108, allocations: 25.2 kB / 48.62 MB, free: 9.906 MB / 24.79 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.985e-06/0.108, allocations: 0 / 48.62 MB, free: 9.906 MB / 24.79 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1081, allocations: 3.625 kB / 48.63 MB, free: 9.906 MB / 24.79 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004601/0.1127, allocations: 1.414 MB / 50.04 MB, free: 8.5 MB / 24.79 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001772/0.1129, allocations: 127.7 kB / 50.17 MB, free: 8.379 MB / 24.79 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002373/0.1132, allocations: 20 kB / 50.19 MB, free: 8.359 MB / 24.79 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006733/0.1139, allocations: 63.91 kB / 50.25 MB, free: 8.301 MB / 24.79 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004732/0.1143, allocations: 132.3 kB / 50.38 MB, free: 8.172 MB / 24.79 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/0.1145, allocations: 27.98 kB / 50.41 MB, free: 8.145 MB / 24.79 MB Notification: Performance of sorting global known variables: time 0.0004958/0.115, allocations: 247.2 kB / 50.65 MB, free: 7.902 MB / 24.79 MB Notification: Performance of sort global known variables: time 6.72e-07/0.115, allocations: 0 / 50.65 MB, free: 7.902 MB / 24.79 MB Notification: Performance of remove unused functions: time 0.001489/0.1165, allocations: 282.4 kB / 50.92 MB, free: 7.664 MB / 24.79 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.005258/0.1218, allocations: 2.082 MB / 53 MB, free: 5.574 MB / 24.79 MB Notification: Performance of simCode: created initialization part: time 0.004911/0.1268, allocations: 1.131 MB / 54.14 MB, free: 4.449 MB / 24.79 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.1268, allocations: 0 / 54.14 MB, free: 4.449 MB / 24.79 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.128, allocations: 0.6107 MB / 54.75 MB, free: 3.824 MB / 24.79 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005012/0.1285, allocations: 61.16 kB / 54.81 MB, free: 3.77 MB / 24.79 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02233/0.1508, allocations: 8.173 MB / 62.98 MB, free: 7.902 MB / 24.79 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006767/0.1516, allocations: 1.127 MB / 64.11 MB, free: 7.16 MB / 24.79 MB Notification: Performance of simCode: alias equations: time 0.0008457/0.1524, allocations: 261.8 kB / 64.36 MB, free: 7.074 MB / 24.79 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005622/0.153, allocations: 325.9 kB / 64.68 MB, free: 6.812 MB / 24.79 MB Notification: Performance of SimCode: time 1.062e-06/0.153, allocations: 0 / 64.68 MB, free: 6.812 MB / 24.79 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).