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.00514/0.00514, allocations: 1.361 MB / 17.3 MB, free: 4.523 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.592e-05/1.611e-05, allocations: 0 / 24.36 MB, free: 3.055 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0005949/0.0006338, allocations: 360.9 kB / 24.71 MB, free: 2.738 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test2): time 0.0008317/0.001477, allocations: 0.737 MB / 25.45 MB, free: 2 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.0009832/0.002475, allocations: 0.5854 MB / 26.03 MB, free: 1.414 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001921/0.002683, allocations: 4.75 kB / 26.04 MB, free: 1.41 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0001686/0.002862, allocations: 43.72 kB / 26.08 MB, free: 1.367 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.000608/0.003478, allocations: 190 kB / 26.26 MB, free: 1.184 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001015/0.003592, allocations: 35.91 kB / 26.3 MB, free: 1.148 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0002527/0.003853, allocations: 211.5 kB / 26.51 MB, free: 0.9414 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.004007, allocations: 82 kB / 26.59 MB, free: 0.8555 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.004141, allocations: 95.42 kB / 26.68 MB, free: 0.7617 MB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001431/0.004291, allocations: 79.44 kB / 26.76 MB, free: 0.6836 MB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 2.957e-05/0.004328, allocations: 12 kB / 26.77 MB, free: 0.6719 MB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002479/0.004581, allocations: 135.8 kB / 26.9 MB, free: 0.5391 MB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 7.12e-05/0.004662, allocations: 51.78 kB / 26.95 MB, free: 500 kB / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 8.726e-05/0.004757, allocations: 109.1 kB / 27.06 MB, free: 384 kB / 13.93 MB Notification: Performance of NFConvertDAE.convert: time 0.0002769/0.00504, allocations: 223.6 kB / 27.28 MB, free: 160 kB / 13.93 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.005051, allocations: 0 / 27.28 MB, free: 160 kB / 13.93 MB Notification: Performance of FrontEnd: time 7.61e-07/0.005058, allocations: 7.938 kB / 27.28 MB, free: 152 kB / 13.93 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.00507, allocations: 0 / 27.28 MB, free: 152 kB / 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.0006665/0.005742, allocations: 491.7 kB / 27.77 MB, free: 4.262 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.005792, allocations: 15.78 kB / 27.78 MB, free: 4.25 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.585e-05/0.005884, allocations: 24.66 kB / 27.8 MB, free: 4.227 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/0.006186, allocations: 251.9 kB / 28.05 MB, free: 3.941 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.268e-05/0.006228, allocations: 16.92 kB / 28.07 MB, free: 3.926 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.447e-05/0.006288, allocations: 28.38 kB / 28.09 MB, free: 3.898 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006854/0.006979, allocations: 364.1 kB / 28.45 MB, free: 3.527 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.007002, allocations: 192 / 28.45 MB, free: 3.527 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.955e-05/0.007039, allocations: 11.94 kB / 28.46 MB, free: 3.516 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.855e-05/0.007094, allocations: 28.55 kB / 28.49 MB, free: 3.488 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004219/0.007522, allocations: 242.1 kB / 28.73 MB, free: 3.254 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.008804, allocations: 0.8717 MB / 29.6 MB, free: 2.293 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003187/0.009141, allocations: 159.5 kB / 29.75 MB, free: 2.129 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/0.009313, allocations: 100.8 kB / 29.85 MB, free: 2.027 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003387/0.009661, allocations: 429.5 kB / 30.27 MB, free: 1.516 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.009698, allocations: 34.56 kB / 30.31 MB, free: 1.473 MB / 18.57 MB Notification: Performance of pre-optimization done (n=14): time 1.844e-06/0.009706, allocations: 0 / 30.31 MB, free: 1.473 MB / 18.57 MB Notification: Performance of matching and sorting (n=14): time 0.0006384/0.01035, allocations: 338.5 kB / 30.64 MB, free: 1.133 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.045e-05/0.01043, allocations: 114.8 kB / 30.75 MB, free: 0.9961 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.01058, allocations: 162.2 kB / 30.91 MB, free: 0.8242 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.01062, allocations: 33.7 kB / 30.94 MB, free: 0.7852 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 9.833e-05/0.01073, allocations: 148.1 kB / 31.08 MB, free: 0.6328 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 5.134e-05/0.01079, allocations: 47.34 kB / 31.13 MB, free: 0.5859 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.327e-05/0.01081, allocations: 8 kB / 31.14 MB, free: 0.5781 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.01092, allocations: 326.8 kB / 31.46 MB, free: 256 kB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.0111, allocations: 96.14 kB / 31.55 MB, free: 160 kB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001868/0.01129, allocations: 142 kB / 31.69 MB, free: 0 / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007195/0.0185, allocations: 263.3 kB / 31.95 MB, free: 7.27 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.01854, allocations: 0 / 31.95 MB, free: 7.27 MB / 18.57 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005734/0.01912, allocations: 330.5 kB / 32.27 MB, free: 7.207 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 4.407e-05/0.01918, allocations: 44.11 kB / 32.31 MB, free: 7.176 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.0192, allocations: 0 / 32.31 MB, free: 7.176 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.01922, allocations: 2.656 kB / 32.32 MB, free: 7.176 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.01936, allocations: 36.78 kB / 32.35 MB, free: 7.176 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.01938, allocations: 8.984 kB / 32.36 MB, free: 7.176 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.0195, allocations: 30.95 kB / 32.39 MB, free: 7.176 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.244e-05/0.01954, allocations: 20.7 kB / 32.41 MB, free: 7.176 MB / 18.57 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.0002039/0.01975, allocations: 199.6 kB / 32.61 MB, free: 7.027 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.442e-05/0.0198, allocations: 13.41 kB / 32.62 MB, free: 7.027 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005886/0.0204, allocations: 328.5 kB / 32.94 MB, free: 6.957 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/0.02042, allocations: 5.5 kB / 32.94 MB, free: 6.957 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.02044, allocations: 0 / 32.94 MB, free: 6.957 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.02045, allocations: 1.828 kB / 32.95 MB, free: 6.957 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007313/0.02118, allocations: 0.6413 MB / 33.59 MB, free: 6.633 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.0212, allocations: 2.781 kB / 33.59 MB, free: 6.633 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.02131, allocations: 29.33 kB / 33.62 MB, free: 6.629 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.02132, allocations: 0 / 33.62 MB, free: 6.629 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.02134, allocations: 7.594 kB / 33.63 MB, free: 6.629 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.02135, allocations: 3.469 kB / 33.63 MB, free: 6.629 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.02136, allocations: 3.938 kB / 33.63 MB, free: 6.625 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005513/0.02191, allocations: 491.8 kB / 34.11 MB, free: 6.355 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 3.66e-05/0.02196, allocations: 98.8 kB / 34.21 MB, free: 6.25 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.022, allocations: 4.688 kB / 34.21 MB, free: 6.246 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.02211, allocations: 23.42 kB / 34.24 MB, free: 6.227 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.53e-05/0.02222, allocations: 31.91 kB / 34.27 MB, free: 6.195 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.02224, allocations: 11.98 kB / 34.28 MB, free: 6.184 MB / 18.57 MB Notification: Performance of sorting global known variables: time 5.997e-05/0.02231, allocations: 117.5 kB / 34.4 MB, free: 6.07 MB / 18.57 MB Notification: Performance of sort global known variables: time 1.4e-07/0.02231, allocations: 3.938 kB / 34.4 MB, free: 6.066 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0003732/0.02269, allocations: 87.31 kB / 34.48 MB, free: 5.992 MB / 18.57 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.0002162/0.02292, allocations: 145.2 kB / 34.63 MB, free: 5.852 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.000397/0.02332, allocations: 311.7 kB / 34.93 MB, free: 5.539 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.02333, allocations: 0 / 34.93 MB, free: 5.539 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0001764/0.02352, allocations: 171.3 kB / 35.1 MB, free: 5.359 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000285/0.02381, allocations: 27.47 kB / 35.12 MB, free: 5.336 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007892/0.02461, allocations: 0.5457 MB / 35.67 MB, free: 4.766 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001667/0.02479, allocations: 0.7597 MB / 36.43 MB, free: 3.98 MB / 18.57 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.877e-05/0.02488, allocations: 43.34 kB / 36.47 MB, free: 3.938 MB / 18.57 MB Notification: Performance of SimCode: time 3.41e-07/0.02489, allocations: 0 / 36.47 MB, free: 3.938 MB / 18.57 MB Notification: Performance of Templates: time 0.004833/0.02973, allocations: 3.298 MB / 39.77 MB, free: 0.6406 MB / 18.57 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)