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.005566/0.005566, allocations: 1.358 MB / 17.26 MB, free: 4.566 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.789e-05/1.812e-05, allocations: 0 / 24.31 MB, free: 3.164 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0006061/0.0006476, allocations: 362.8 kB / 24.66 MB, free: 2.832 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test2): time 0.0008534/0.001512, allocations: 0.748 MB / 25.41 MB, free: 2.082 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.0009841/0.002511, allocations: 0.6087 MB / 26.02 MB, free: 1.473 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.00266, allocations: 0 / 26.02 MB, free: 1.473 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.000186/0.002857, allocations: 46.81 kB / 26.07 MB, free: 1.43 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0005858/0.003451, allocations: 183.4 kB / 26.25 MB, free: 1.25 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 9.74e-05/0.003559, allocations: 31.97 kB / 26.28 MB, free: 1.219 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0002104/0.003778, allocations: 215.4 kB / 26.49 MB, free: 1.008 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.003925, allocations: 82.28 kB / 26.57 MB, free: 0.9219 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.004042, allocations: 87.5 kB / 26.65 MB, free: 0.8359 MB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.004181, allocations: 87.36 kB / 26.74 MB, free: 0.75 MB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 2.642e-05/0.004215, allocations: 8 kB / 26.75 MB, free: 0.7422 MB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002264/0.004447, allocations: 135.8 kB / 26.88 MB, free: 0.6094 MB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 6.218e-05/0.004519, allocations: 55.77 kB / 26.93 MB, free: 0.5547 MB / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 7.228e-05/0.004598, allocations: 75.48 kB / 27.01 MB, free: 492 kB / 13.93 MB Notification: Performance of NFConvertDAE.convert: time 0.0002773/0.004882, allocations: 231.6 kB / 27.23 MB, free: 260 kB / 13.93 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.004894, allocations: 3.984 kB / 27.24 MB, free: 256 kB / 13.93 MB Notification: Performance of FrontEnd: time 6.21e-07/0.004899, allocations: 0 / 27.24 MB, free: 256 kB / 13.93 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.004909, allocations: 0 / 27.24 MB, free: 256 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.0006049/0.005519, allocations: 496.5 kB / 27.72 MB, free: 4.355 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.005568, allocations: 15.78 kB / 27.74 MB, free: 4.344 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.724e-05/0.005661, allocations: 24.66 kB / 27.76 MB, free: 4.32 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002878/0.005955, allocations: 236 kB / 27.99 MB, free: 4.051 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.46e-05/0.005999, allocations: 28.88 kB / 28.02 MB, free: 4.023 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.6e-05/0.006061, allocations: 20.38 kB / 28.04 MB, free: 4.004 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006333/0.006701, allocations: 372.1 kB / 28.4 MB, free: 3.625 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.006727, allocations: 192 / 28.4 MB, free: 3.625 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.941e-05/0.006762, allocations: 15.92 kB / 28.42 MB, free: 3.609 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.794e-05/0.006815, allocations: 24.55 kB / 28.44 MB, free: 3.586 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004363/0.007257, allocations: 246.1 kB / 28.68 MB, free: 3.348 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.008534, allocations: 0.8575 MB / 29.54 MB, free: 2.402 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003394/0.008887, allocations: 170.5 kB / 29.71 MB, free: 2.227 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001633/0.009063, allocations: 96.81 kB / 29.8 MB, free: 2.129 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003552/0.009428, allocations: 429.5 kB / 30.22 MB, free: 1.617 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.009466, allocations: 30.56 kB / 30.25 MB, free: 1.578 MB / 18.57 MB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.009476, allocations: 4 kB / 30.26 MB, free: 1.574 MB / 18.57 MB Notification: Performance of matching and sorting (n=14): time 0.0006799/0.01016, allocations: 342.5 kB / 30.59 MB, free: 1.23 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.323e-05/0.01024, allocations: 114.8 kB / 30.7 MB, free: 1.094 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/0.0104, allocations: 170.1 kB / 30.87 MB, free: 0.9141 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 2.536e-05/0.01044, allocations: 33.7 kB / 30.9 MB, free: 0.875 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 9.884e-05/0.01054, allocations: 144.1 kB / 31.04 MB, free: 0.7266 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 4.66e-05/0.0106, allocations: 51.34 kB / 31.09 MB, free: 0.6758 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.757e-05/0.01065, allocations: 29.7 kB / 31.12 MB, free: 0.6406 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.01078, allocations: 330.8 kB / 31.44 MB, free: 316 kB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001754/0.01096, allocations: 96.14 kB / 31.54 MB, free: 220 kB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.01116, allocations: 134.3 kB / 31.67 MB, free: 68 kB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006031/0.0172, allocations: 259.5 kB / 31.92 MB, free: 7.328 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.01723, allocations: 3.156 kB / 31.93 MB, free: 7.328 MB / 18.57 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004998/0.01773, allocations: 331.5 kB / 32.25 MB, free: 7.266 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 5.997e-05/0.01781, allocations: 41.55 kB / 32.29 MB, free: 7.234 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.01783, allocations: 0 / 32.29 MB, free: 7.234 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.01785, allocations: 5.359 kB / 32.29 MB, free: 7.234 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.01798, allocations: 34.08 kB / 32.33 MB, free: 7.234 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.018, allocations: 1.312 kB / 32.33 MB, free: 7.234 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/0.01812, allocations: 33.94 kB / 32.36 MB, free: 7.234 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.756e-05/0.01815, allocations: 11.44 kB / 32.37 MB, free: 7.234 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 (P1.emptying,$PRE.P1.fireOut[1],P1.outTransition[1].arcType,T1.activation.fed[1],T1.activation.arcType[1],P1.fireOut[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active) * 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.0002322/0.01839, allocations: 213 kB / 32.58 MB, free: 7.09 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.605e-05/0.01845, allocations: 13.78 kB / 32.6 MB, free: 7.09 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000546/0.019, allocations: 328.1 kB / 32.92 MB, free: 7.023 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.461e-05/0.01903, allocations: 3.719 kB / 32.92 MB, free: 7.023 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.01904, allocations: 0 / 32.92 MB, free: 7.023 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.01905, allocations: 3.625 kB / 32.92 MB, free: 7.023 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007273/0.01978, allocations: 0.6443 MB / 33.57 MB, free: 6.699 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.01979, allocations: 0.8438 kB / 33.57 MB, free: 6.699 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001023/0.0199, allocations: 25.64 kB / 33.59 MB, free: 6.699 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.01991, allocations: 0 / 33.59 MB, free: 6.699 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.01993, allocations: 11.41 kB / 33.6 MB, free: 6.699 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.01994, allocations: 0 / 33.6 MB, free: 6.699 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.01995, allocations: 7.188 kB / 33.61 MB, free: 6.695 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005465/0.0205, allocations: 495.3 kB / 34.09 MB, free: 6.453 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 4.17e-05/0.02055, allocations: 88.3 kB / 34.18 MB, free: 6.355 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.411e-05/0.02059, allocations: 6.938 kB / 34.19 MB, free: 6.352 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.0207, allocations: 23.88 kB / 34.21 MB, free: 6.332 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.825e-05/0.02081, allocations: 38.52 kB / 34.25 MB, free: 6.305 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/0.02083, allocations: 5.172 kB / 34.25 MB, free: 6.301 MB / 18.57 MB Notification: Performance of sorting global known variables: time 5.8e-05/0.0209, allocations: 117.5 kB / 34.37 MB, free: 6.188 MB / 18.57 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0209, allocations: 0.7188 kB / 34.37 MB, free: 6.188 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.0003333/0.02124, allocations: 94.11 kB / 34.46 MB, free: 6.105 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.0001985/0.02145, allocations: 149.8 kB / 34.61 MB, free: 5.965 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.0003876/0.02184, allocations: 300 kB / 34.9 MB, free: 5.66 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.02186, allocations: 0 / 34.9 MB, free: 5.66 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0001741/0.02204, allocations: 174.6 kB / 35.07 MB, free: 5.48 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003061/0.02235, allocations: 25.12 kB / 35.1 MB, free: 5.457 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007559/0.02312, allocations: 0.5475 MB / 35.64 MB, free: 4.887 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001991/0.02333, allocations: 0.7636 MB / 36.41 MB, free: 4.098 MB / 18.57 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.422e-05/0.02342, allocations: 43.39 kB / 36.45 MB, free: 4.055 MB / 18.57 MB Notification: Performance of SimCode: time 2.8e-07/0.02343, allocations: 8 kB / 36.46 MB, free: 4.047 MB / 18.57 MB Notification: Performance of Templates: time 0.004474/0.02791, allocations: 3.285 MB / 39.74 MB, free: 0.7656 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)