Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test6.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.Test6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ConPNlib_ConPNlib.Examples.Test6") translateModel(ConPNlib.Examples.Test6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ConPNlib_ConPNlib.Examples.Test6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.005281/0.005281, allocations: 1.375 MB / 16.98 MB, free: 5.145 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 1.293e-05/1.296e-05, allocations: 0 / 23.87 MB, free: 3.93 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0004636/0.0004928, allocations: 364.1 kB / 24.23 MB, free: 3.633 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test6): time 0.0007869/0.001287, allocations: 0.932 MB / 25.16 MB, free: 2.699 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.0007863/0.002084, allocations: 0.6416 MB / 25.8 MB, free: 2.055 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.002205, allocations: 7.938 kB / 25.81 MB, free: 2.047 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.002377, allocations: 66.02 kB / 25.87 MB, free: 1.984 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0004627/0.002847, allocations: 227.2 kB / 26.1 MB, free: 1.762 MB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 6.645e-05/0.002924, allocations: 19.98 kB / 26.11 MB, free: 1.742 MB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0002227/0.003155, allocations: 323 kB / 26.43 MB, free: 1.426 MB / 13.93 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/0.003326, allocations: 145.6 kB / 26.57 MB, free: 1.273 MB / 13.93 MB Notification: Performance of NFEvalConstants.evaluate: time 8.661e-05/0.00342, allocations: 116.8 kB / 26.69 MB, free: 1.16 MB / 13.93 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001187/0.003545, allocations: 131.1 kB / 26.81 MB, free: 1.031 MB / 13.93 MB Notification: Performance of NFPackage.collectConstants: time 2.89e-05/0.003581, allocations: 12 kB / 26.83 MB, free: 1.02 MB / 13.93 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002205/0.003823, allocations: 203.6 kB / 27.02 MB, free: 0.8203 MB / 13.93 MB Notification: Performance of NFScalarize.scalarize: time 5.776e-05/0.003889, allocations: 63.7 kB / 27.09 MB, free: 0.7578 MB / 13.93 MB Notification: Performance of NFVerifyModel.verify: time 4.751e-05/0.003943, allocations: 81.52 kB / 27.17 MB, free: 0.6719 MB / 13.93 MB Notification: Performance of NFConvertDAE.convert: time 0.0002634/0.004212, allocations: 379.3 kB / 27.54 MB, free: 308 kB / 13.93 MB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.00422, allocations: 0 / 27.54 MB, free: 308 kB / 13.93 MB Notification: Performance of FrontEnd: time 9.02e-07/0.004227, allocations: 0 / 27.54 MB, free: 308 kB / 13.93 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.004236, allocations: 0 / 27.54 MB, free: 308 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.0006255/0.004866, allocations: 0.6098 MB / 28.15 MB, free: 4.281 MB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.004904, allocations: 8.297 kB / 28.15 MB, free: 4.273 MB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.708e-05/0.004986, allocations: 44.39 kB / 28.2 MB, free: 4.23 MB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003367/0.005329, allocations: 295.7 kB / 28.49 MB, free: 3.902 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.32e-05/0.00538, allocations: 45.33 kB / 28.53 MB, free: 3.859 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.526e-05/0.005451, allocations: 44.34 kB / 28.57 MB, free: 3.816 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009435/0.006401, allocations: 0.6401 MB / 29.21 MB, free: 3.16 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.006424, allocations: 2.297 kB / 29.22 MB, free: 3.16 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.433e-05/0.006474, allocations: 24.12 kB / 29.24 MB, free: 3.137 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.393e-05/0.006544, allocations: 44.97 kB / 29.28 MB, free: 3.094 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007541/0.007304, allocations: 447.7 kB / 29.72 MB, free: 2.656 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001829/0.009147, allocations: 1.501 MB / 31.22 MB, free: 1.023 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005492/0.009711, allocations: 355.9 kB / 31.57 MB, free: 0.6484 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002728/0.009996, allocations: 188.9 kB / 31.75 MB, free: 472 kB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005479/0.01548, allocations: 0.585 MB / 32.34 MB, free: 7.27 MB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.046e-05/0.01553, allocations: 33.25 kB / 32.37 MB, free: 7.23 MB / 18.57 MB Notification: Performance of pre-optimization done (n=22): time 3.727e-06/0.01554, allocations: 3.875 kB / 32.38 MB, free: 7.23 MB / 18.57 MB Notification: Performance of matching and sorting (n=22): time 0.000976/0.01652, allocations: 0.5253 MB / 32.9 MB, free: 7.164 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.01658, allocations: 147.9 kB / 33.05 MB, free: 7.008 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.01678, allocations: 220.2 kB / 33.26 MB, free: 6.895 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 2.551e-05/0.01682, allocations: 36.52 kB / 33.3 MB, free: 6.863 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.01693, allocations: 220.2 kB / 33.51 MB, free: 6.723 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 5.236e-05/0.01699, allocations: 74.23 kB / 33.58 MB, free: 6.684 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.666e-05/0.01702, allocations: 12.36 kB / 33.6 MB, free: 6.684 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 5.809e-05/0.01708, allocations: 334.9 kB / 33.92 MB, free: 6.371 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002288/0.01731, allocations: 159.5 kB / 34.08 MB, free: 6.367 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002573/0.01758, allocations: 240.8 kB / 34.31 MB, free: 6.281 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002502/0.01784, allocations: 200 kB / 34.51 MB, free: 6.223 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.01785, allocations: 1.844 kB / 34.51 MB, free: 6.223 MB / 18.57 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006922/0.01855, allocations: 0.5345 MB / 35.04 MB, free: 6.023 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 4.076e-05/0.0186, allocations: 46.22 kB / 35.09 MB, free: 5.98 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.01862, allocations: 3.25 kB / 35.09 MB, free: 5.98 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.01864, allocations: 3.969 kB / 35.1 MB, free: 5.98 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001697/0.01881, allocations: 49.25 kB / 35.15 MB, free: 5.969 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.01883, allocations: 3.5 kB / 35.15 MB, free: 5.969 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.01899, allocations: 58.3 kB / 35.21 MB, free: 5.926 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.619e-05/0.01903, allocations: 16 kB / 35.22 MB, free: 5.91 MB / 18.57 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.P1.fireOut[1],P1.emptying,$PRE.P2.fireIn[1],P2.feeding,P1.outTransition[1].arcType,P1.fireOut[1],P2.fireIn[1],T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1],T1.activation.arcType[1],T1.activation.emptied[1],T1.activation.fed[1],T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 33 * Array equations: 2 * Algorithm blocks: 1 * 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.0002114/0.01925, allocations: 262.3 kB / 35.48 MB, free: 5.648 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.397e-05/0.0193, allocations: 19.81 kB / 35.5 MB, free: 5.629 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006816/0.01998, allocations: 477.7 kB / 35.96 MB, free: 5.16 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.875e-05/0.02002, allocations: 11.98 kB / 35.97 MB, free: 5.148 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.02003, allocations: 0 / 35.97 MB, free: 5.148 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.02004, allocations: 0 / 35.97 MB, free: 5.148 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009429/0.02098, allocations: 0.9172 MB / 36.89 MB, free: 4.176 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.021, allocations: 1.312 kB / 36.89 MB, free: 4.176 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/0.02114, allocations: 39.97 kB / 36.93 MB, free: 4.137 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.02115, allocations: 0 / 36.93 MB, free: 4.137 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.296e-05/0.02118, allocations: 8.547 kB / 36.94 MB, free: 4.129 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.225e-06/0.02118, allocations: 0 / 36.94 MB, free: 4.129 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.02119, allocations: 3.828 kB / 36.94 MB, free: 4.129 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007888/0.02198, allocations: 0.7169 MB / 37.66 MB, free: 3.391 MB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 3.229e-05/0.02203, allocations: 100.8 kB / 37.76 MB, free: 3.273 MB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.011e-05/0.02208, allocations: 13.09 kB / 37.77 MB, free: 3.262 MB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/0.02225, allocations: 33.25 kB / 37.81 MB, free: 3.23 MB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.02238, allocations: 57.38 kB / 37.86 MB, free: 3.176 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.553e-05/0.02242, allocations: 16.69 kB / 37.88 MB, free: 3.16 MB / 18.57 MB Notification: Performance of sorting global known variables: time 8.076e-05/0.0225, allocations: 137.6 kB / 38.01 MB, free: 3.027 MB / 18.57 MB Notification: Performance of sort global known variables: time 1.3e-07/0.02251, allocations: 0 / 38.01 MB, free: 3.027 MB / 18.57 MB Notification: Performance of remove unused functions: time 0.000407/0.02292, allocations: 153.9 kB / 38.16 MB, free: 2.883 MB / 18.57 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (P1.t_,P2.t_) * Number of discrete variables: 7 (P1.fireOut[1],P1.emptying,P2.fireIn[1],P2.feeding,T1.activation.active,T1.activation.weaklyInputActiveVec[1],T1.activation.weaklyOutputActiveVec[1]) * Number of discrete states: 5 (T1.activation.weaklyOutputActiveVec[1],T1.activation.weaklyInputActiveVec[1],T1.activation.active,P1.fireOut[1],P2.fireIn[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 19 * Array equations: 2 * Algorithm blocks: 1 * 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.0002325/0.02316, allocations: 179.4 kB / 38.34 MB, free: 2.715 MB / 18.57 MB Notification: Performance of simCode: created initialization part: time 0.0005916/0.02376, allocations: 494.1 kB / 38.82 MB, free: 2.223 MB / 18.57 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.02377, allocations: 0 / 38.82 MB, free: 2.223 MB / 18.57 MB Notification: Performance of simCode: created simulation system equations: time 0.0002571/0.02403, allocations: 259.7 kB / 39.07 MB, free: 1.957 MB / 18.57 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003168/0.02436, allocations: 46.94 kB / 39.12 MB, free: 1.918 MB / 18.57 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.02542, allocations: 0.9004 MB / 40.02 MB, free: 0.9922 MB / 18.57 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001936/0.02563, allocations: 0.8382 MB / 40.86 MB, free: 132 kB / 18.57 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.02574, allocations: 58.56 kB / 40.92 MB, free: 76 kB / 18.57 MB Notification: Performance of SimCode: time 4.11e-07/0.02575, allocations: 0 / 40.92 MB, free: 76 kB / 18.57 MB Notification: Performance of Templates: time 0.01236/0.03811, allocations: 5.194 MB / 46.11 MB, free: 2.438 MB / 18.57 MB make -j1 -f ConPNlib_ConPNlib.Examples.Test6.makefile (rm -f ConPNlib_ConPNlib.Examples.Test6.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test6.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test6.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test6.sim & ./ConPNlib_ConPNlib.Examples.Test6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ConPNlib_ConPNlib.Examples.Test6.pipe 2>&1)