Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test2.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.Test2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ConPNlib_ConPNlib.Examples.Test2") translateModel(ConPNlib.Examples.Test2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ConPNlib_ConPNlib.Examples.Test2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.005246/0.005246, allocations: 1.37 MB / 16.64 MB, free: 5.164 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.197e-05/1.2e-05, allocations: 0 / 23.7 MB, free: 3.742 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0004001/0.000427, allocations: 366.9 kB / 24.06 MB, free: 3.414 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test2): time 0.0006555/0.001091, allocations: 0.7333 MB / 24.8 MB, free: 2.684 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.0007169/0.001818, allocations: 0.5915 MB / 25.39 MB, free: 2.09 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.08e-05/0.0019, allocations: 7.938 kB / 25.39 MB, free: 2.082 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.002032, allocations: 43.72 kB / 25.44 MB, free: 2.039 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0004119/0.002451, allocations: 180.8 kB / 25.61 MB, free: 1.863 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 6.179e-05/0.002524, allocations: 28.69 kB / 25.64 MB, free: 1.836 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.000168/0.0027, allocations: 219.4 kB / 25.86 MB, free: 1.621 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.002827, allocations: 84.78 kB / 25.94 MB, free: 1.535 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 6.784e-05/0.002901, allocations: 83.52 kB / 26.02 MB, free: 1.453 MB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 9.591e-05/0.003004, allocations: 87.36 kB / 26.11 MB, free: 1.367 MB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/0.003032, allocations: 8 kB / 26.11 MB, free: 1.359 MB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001628/0.0032, allocations: 143.7 kB / 26.25 MB, free: 1.219 MB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 5.02e-05/0.003259, allocations: 47.78 kB / 26.3 MB, free: 1.172 MB / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 6.018e-05/0.003325, allocations: 109.1 kB / 26.41 MB, free: 1.059 MB / 13.93 MB Notification: Performance of NFConvertDAE.convert: time 0.0002429/0.003574, allocations: 299.2 kB / 26.7 MB, free: 0.7656 MB / 13.93 MB Notification: Performance of FrontEnd - DAE generated: time 1.684e-06/0.003583, allocations: 0 / 26.7 MB, free: 0.7656 MB / 13.93 MB Notification: Performance of FrontEnd: time 5.81e-07/0.00359, allocations: 4 kB / 26.7 MB, free: 0.7617 MB / 13.93 MB Notification: Performance of Transformations before backend: time 3.116e-06/0.003597, allocations: 0 / 26.7 MB, free: 0.7617 MB / 13.93 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.000405/0.004006, allocations: 496.5 kB / 27.19 MB, free: 228 kB / 13.93 MB Notification: Performance of prepare preOptimizeDAE: time 2.752e-05/0.004042, allocations: 8.969 kB / 27.2 MB, free: 220 kB / 13.93 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.853e-05/0.004096, allocations: 28.59 kB / 27.23 MB, free: 192 kB / 13.93 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002305/0.004332, allocations: 244 kB / 27.46 MB, free: 4.562 MB / 18.58 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.004371, allocations: 20.92 kB / 27.48 MB, free: 4.543 MB / 18.58 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.306e-05/0.00442, allocations: 32.31 kB / 27.52 MB, free: 4.512 MB / 18.58 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000556/0.004982, allocations: 364.1 kB / 27.87 MB, free: 4.141 MB / 18.58 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.005003, allocations: 4.172 kB / 27.87 MB, free: 4.137 MB / 18.58 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.688e-05/0.005036, allocations: 19.41 kB / 27.89 MB, free: 4.121 MB / 18.58 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.184e-05/0.005084, allocations: 24.55 kB / 27.92 MB, free: 4.098 MB / 18.58 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004046/0.005494, allocations: 242.1 kB / 28.15 MB, free: 3.863 MB / 18.58 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001101/0.006604, allocations: 0.864 MB / 29.02 MB, free: 2.91 MB / 18.58 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003029/0.00692, allocations: 158.5 kB / 29.17 MB, free: 2.746 MB / 18.58 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.007084, allocations: 102 kB / 29.27 MB, free: 2.645 MB / 18.58 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003/0.007393, allocations: 429.5 kB / 29.69 MB, free: 2.133 MB / 18.58 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.007431, allocations: 38.55 kB / 29.73 MB, free: 2.086 MB / 18.58 MB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.007438, allocations: 0 / 29.73 MB, free: 2.086 MB / 18.58 MB Notification: Performance of matching and sorting (n=14): time 0.000603/0.008046, allocations: 335.8 kB / 30.06 MB, free: 1.746 MB / 18.58 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.967e-05/0.008117, allocations: 114.8 kB / 30.17 MB, free: 1.609 MB / 18.58 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.008275, allocations: 162.2 kB / 30.33 MB, free: 1.438 MB / 18.58 MB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/0.008311, allocations: 37.69 kB / 30.37 MB, free: 1.395 MB / 18.58 MB Notification: Performance of collectInitialEqns (initialization): time 8.571e-05/0.008403, allocations: 152 kB / 30.51 MB, free: 1.238 MB / 18.58 MB Notification: Performance of collectInitialBindings (initialization): time 4.24e-05/0.008452, allocations: 47.34 kB / 30.56 MB, free: 1.191 MB / 18.58 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.342e-05/0.008472, allocations: 4 kB / 30.56 MB, free: 1.188 MB / 18.58 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.008577, allocations: 330.8 kB / 30.89 MB, free: 0.8555 MB / 18.58 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.008746, allocations: 96.14 kB / 30.98 MB, free: 0.7617 MB / 18.58 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001801/0.008934, allocations: 138 kB / 31.12 MB, free: 0.6094 MB / 18.58 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003203/0.009264, allocations: 259.6 kB / 31.37 MB, free: 336 kB / 18.58 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.009276, allocations: 0 / 31.37 MB, free: 336 kB / 18.58 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.005976/0.01526, allocations: 338.6 kB / 31.7 MB, free: 7.242 MB / 18.58 MB Notification: Performance of prepare postOptimizeDAE: time 5.082e-05/0.01533, allocations: 40.52 kB / 31.74 MB, free: 7.211 MB / 18.58 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.01534, allocations: 1.375 kB / 31.74 MB, free: 7.211 MB / 18.58 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.01537, allocations: 3.094 kB / 31.74 MB, free: 7.211 MB / 18.58 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.01554, allocations: 28.84 kB / 31.77 MB, free: 7.211 MB / 18.58 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.01556, allocations: 9.406 kB / 31.78 MB, free: 7.211 MB / 18.58 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.01568, allocations: 26.38 kB / 31.81 MB, free: 7.211 MB / 18.58 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/0.01572, allocations: 12.36 kB / 31.82 MB, free: 7.211 MB / 18.58 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.P1.fireOut[1],P1.emptying,P1.outTransition[1].arcType,T1.activation.active,T1.activation.weaklyInputActiveVec[1],P1.fireOut[1],T1.activation.arcType[1],T1.activation.fed[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 20 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001727/0.0159, allocations: 202.7 kB / 32.02 MB, free: 7.066 MB / 18.58 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.045e-05/0.01595, allocations: 18.89 kB / 32.03 MB, free: 7.066 MB / 18.58 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006059/0.01656, allocations: 323.7 kB / 32.35 MB, free: 7 MB / 18.58 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.01658, allocations: 2.875 kB / 32.35 MB, free: 7 MB / 18.58 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.01659, allocations: 3.562 kB / 32.36 MB, free: 7 MB / 18.58 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.0166, allocations: 8.969 kB / 32.37 MB, free: 7 MB / 18.58 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006884/0.0173, allocations: 0.6497 MB / 33.02 MB, free: 6.676 MB / 18.58 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.01731, allocations: 0 / 33.02 MB, free: 6.676 MB / 18.58 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.01742, allocations: 21.7 kB / 33.04 MB, free: 6.676 MB / 18.58 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.01744, allocations: 1.156 kB / 33.04 MB, free: 6.676 MB / 18.58 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/0.01746, allocations: 7.562 kB / 33.05 MB, free: 6.676 MB / 18.58 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.01747, allocations: 1.312 kB / 33.05 MB, free: 6.676 MB / 18.58 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.01747, allocations: 3.906 kB / 33.05 MB, free: 6.676 MB / 18.58 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005464/0.01802, allocations: 0.4895 MB / 33.54 MB, free: 6.512 MB / 18.58 MB Notification: Performance of postOpt removeConstants (simulation): time 2.51e-05/0.01806, allocations: 90.64 kB / 33.63 MB, free: 6.418 MB / 18.58 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.0181, allocations: 11.91 kB / 33.64 MB, free: 6.418 MB / 18.58 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.01821, allocations: 19.27 kB / 33.66 MB, free: 6.418 MB / 18.58 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.429e-05/0.0183, allocations: 33.53 kB / 33.69 MB, free: 6.418 MB / 18.58 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.01833, allocations: 7.344 kB / 33.7 MB, free: 6.418 MB / 18.58 MB Notification: Performance of sorting global known variables: time 5.602e-05/0.01839, allocations: 127.8 kB / 33.82 MB, free: 6.34 MB / 18.58 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01839, allocations: 0 / 33.82 MB, free: 6.34 MB / 18.58 MB Notification: Performance of remove unused functions: time 0.0003126/0.01871, allocations: 84.16 kB / 33.91 MB, free: 6.336 MB / 18.58 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (P1.t_) * Number of discrete variables: 4 (T1.activation.active,T1.activation.weaklyInputActiveVec[1],P1.fireOut[1],P1.emptying) * Number of discrete states: 3 (T1.activation.weaklyInputActiveVec[1],T1.activation.active,P1.fireOut[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001864/0.0189, allocations: 156.6 kB / 34.06 MB, free: 6.246 MB / 18.58 MB Notification: Performance of simCode: created initialization part: time 0.0003805/0.01929, allocations: 302 kB / 34.35 MB, free: 6.082 MB / 18.58 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.0193, allocations: 0 / 34.35 MB, free: 6.082 MB / 18.58 MB Notification: Performance of simCode: created simulation system equations: time 0.0001672/0.01948, allocations: 171.3 kB / 34.52 MB, free: 5.906 MB / 18.58 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002684/0.01975, allocations: 23.72 kB / 34.54 MB, free: 5.887 MB / 18.58 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006993/0.02046, allocations: 0.5181 MB / 35.06 MB, free: 5.352 MB / 18.58 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001421/0.02062, allocations: 0.7711 MB / 35.83 MB, free: 4.559 MB / 18.58 MB Notification: Performance of simCode: alias equations: time 0.0001442/0.02077, allocations: 79.38 kB / 35.91 MB, free: 4.48 MB / 18.58 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.275e-05/0.02084, allocations: 39.34 kB / 35.95 MB, free: 4.445 MB / 18.58 MB Notification: Performance of SimCode: time 2.61e-07/0.02084, allocations: 0 / 35.95 MB, free: 4.445 MB / 18.58 MB Notification: Performance of Templates: time 0.004489/0.02534, allocations: 2.586 MB / 38.54 MB, free: 1.891 MB / 18.58 MB make -j1 -f ConPNlib_ConPNlib.Examples.Test2.makefile (rm -f ConPNlib_ConPNlib.Examples.Test2.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test2.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test2.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test2.sim & ./ConPNlib_ConPNlib.Examples.Test2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ConPNlib_ConPNlib.Examples.Test2.pipe 2>&1)