Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ConPNlib_ConPNlib.Examples.Test12.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.Test12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ConPNlib_ConPNlib.Examples.Test12") translateModel(ConPNlib.Examples.Test12,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ConPNlib_ConPNlib.Examples.Test12") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ConPNlib master/package.mo): time 0.005351/0.005351, allocations: 1.367 MB / 16.64 MB, free: 5.164 MB / 13.93 MB Notification: Performance of FrontEnd - loaded program: time 8.627e-06/8.647e-06, allocations: 0 / 23.7 MB, free: 3.715 MB / 13.93 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0003463/0.0003702, allocations: 362.6 kB / 24.06 MB, free: 3.398 MB / 13.93 MB Notification: Performance of NFInst.instantiate(ConPNlib.Examples.Test12): time 0.00116/0.001538, allocations: 1.756 MB / 25.81 MB, free: 1.641 MB / 13.93 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.002712, allocations: 0.9905 MB / 26.8 MB, free: 0.6523 MB / 13.93 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001637/0.002887, allocations: 7.938 kB / 26.81 MB, free: 0.6445 MB / 13.93 MB Notification: Performance of NFTyping.typeComponents: time 0.000209/0.003102, allocations: 135.1 kB / 26.94 MB, free: 0.5117 MB / 13.93 MB Notification: Performance of NFTyping.typeBindings: time 0.0006107/0.003721, allocations: 348 kB / 27.28 MB, free: 176 kB / 13.93 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001227/0.003855, allocations: 79.92 kB / 27.36 MB, free: 96 kB / 13.93 MB Notification: Performance of NFFlatten.flatten: time 0.0005912/0.004454, allocations: 0.7393 MB / 28.1 MB, free: 4 MB / 18.57 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004361/0.004898, allocations: 411 kB / 28.5 MB, free: 3.578 MB / 18.57 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002388/0.005146, allocations: 286.2 kB / 28.78 MB, free: 3.297 MB / 18.57 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002651/0.005418, allocations: 309.8 kB / 29.08 MB, free: 2.992 MB / 18.57 MB Notification: Performance of NFPackage.collectConstants: time 5.657e-05/0.005482, allocations: 24 kB / 29.11 MB, free: 2.969 MB / 18.57 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003189/0.005808, allocations: 231.6 kB / 29.33 MB, free: 2.742 MB / 18.57 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.005968, allocations: 175.2 kB / 29.5 MB, free: 2.57 MB / 18.57 MB Notification: Performance of NFVerifyModel.verify: time 0.0002421/0.006217, allocations: 343.3 kB / 29.84 MB, free: 2.227 MB / 18.57 MB Notification: Performance of NFConvertDAE.convert: time 0.0007716/0.006997, allocations: 0.9151 MB / 30.75 MB, free: 1.309 MB / 18.57 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.007009, allocations: 0 / 30.75 MB, free: 1.309 MB / 18.57 MB Notification: Performance of FrontEnd: time 1.022e-06/0.007015, allocations: 0 / 30.75 MB, free: 1.309 MB / 18.57 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.007031, allocations: 4 kB / 30.76 MB, free: 1.305 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: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.001012/0.008049, allocations: 0.9653 MB / 31.72 MB, free: 276 kB / 18.57 MB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.00809, allocations: 12.31 kB / 31.73 MB, free: 264 kB / 18.57 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.008232, allocations: 95.81 kB / 31.83 MB, free: 168 kB / 18.57 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005628/0.01387, allocations: 493.1 kB / 32.31 MB, free: 7.121 MB / 18.57 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.624e-05/0.01395, allocations: 81.84 kB / 32.39 MB, free: 7.117 MB / 18.57 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.01408, allocations: 111.8 kB / 32.5 MB, free: 7.117 MB / 18.57 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001727/0.01581, allocations: 1.495 MB / 33.99 MB, free: 6.57 MB / 18.57 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.01584, allocations: 2.719 kB / 34 MB, free: 6.57 MB / 18.57 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.997e-05/0.01592, allocations: 46.72 kB / 34.04 MB, free: 6.531 MB / 18.57 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000107/0.01603, allocations: 93.94 kB / 34.13 MB, free: 6.441 MB / 18.57 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/0.01729, allocations: 1.077 MB / 35.21 MB, free: 5.367 MB / 18.57 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002694/0.02, allocations: 2.886 MB / 38.1 MB, free: 2.379 MB / 18.57 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008161/0.02083, allocations: 0.7651 MB / 38.86 MB, free: 1.562 MB / 18.57 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004504/0.0213, allocations: 454.1 kB / 39.31 MB, free: 1.117 MB / 18.57 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004099/0.02172, allocations: 0.8586 MB / 40.17 MB, free: 80 kB / 18.57 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.6e-05/0.02174, allocations: 42.92 kB / 40.21 MB, free: 28 kB / 18.57 MB Notification: Performance of pre-optimization done (n=52): time 2.465e-06/0.02175, allocations: 0 / 40.21 MB, free: 28 kB / 18.57 MB Notification: Performance of matching and sorting (n=52): time 0.008286/0.03004, allocations: 1.718 MB / 41.92 MB, free: 6.195 MB / 18.57 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/0.03013, allocations: 242.2 kB / 42.16 MB, free: 5.945 MB / 18.57 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.03041, allocations: 358.2 kB / 42.51 MB, free: 5.793 MB / 18.57 MB Notification: Performance of collectPreVariables (initialization): time 3.852e-05/0.03046, allocations: 42.45 kB / 42.55 MB, free: 5.754 MB / 18.57 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001816/0.03065, allocations: 394.7 kB / 42.94 MB, free: 5.492 MB / 18.57 MB Notification: Performance of collectInitialBindings (initialization): time 9.82e-05/0.03075, allocations: 169.7 kB / 43.1 MB, free: 5.375 MB / 18.57 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.497e-05/0.03079, allocations: 19.62 kB / 43.12 MB, free: 5.363 MB / 18.57 MB Notification: Performance of setup shared object (initialization): time 5.603e-05/0.03085, allocations: 355.3 kB / 43.47 MB, free: 5.031 MB / 18.57 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004439/0.0313, allocations: 379.7 kB / 43.84 MB, free: 4.844 MB / 18.57 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004756/0.03179, allocations: 0.5252 MB / 44.37 MB, free: 4.258 MB / 18.57 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008345/0.03263, allocations: 0.976 MB / 45.34 MB, free: 3.199 MB / 18.57 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.03264, allocations: 0 / 45.34 MB, free: 3.199 MB / 18.57 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001416/0.03406, allocations: 1.308 MB / 46.65 MB, free: 1.867 MB / 18.57 MB Notification: Performance of prepare postOptimizeDAE: time 6.035e-05/0.03414, allocations: 113.1 kB / 46.76 MB, free: 1.738 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.03415, allocations: 5.219 kB / 46.77 MB, free: 1.734 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001717/0.03588, allocations: 464.5 kB / 47.22 MB, free: 1.277 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/0.0361, allocations: 83.84 kB / 47.3 MB, free: 1.195 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006437/0.03675, allocations: 0.8956 MB / 48.2 MB, free: 288 kB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006343/0.04311, allocations: 99.05 kB / 48.29 MB, free: 5 MB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.216e-05/0.04321, allocations: 45.86 kB / 48.34 MB, free: 5 MB / 18.57 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.P2.fireIn[1],P2.feeding,$PRE.P3.fireIn[1],P3.feeding,P1.outTransition[2].arcType,P1.outTransition[1].arcType,T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyOutputActiveVec[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],T3.activation.fed[1],T3.activation.active,T3.activation.weaklyInputActiveVec[1],T3.activation.weaklyOutputActiveVec[1],$PRE.P1.fireIn[1],P1.fireIn[1],$PRE.P1.fireOut[1],P1.fireOut[1],$PRE.P1.fireOut[2],P1.fireOut[2],P2.fireIn[1],P3.fireIn[1],T2.activation.arcType[1],T3.activation.arcType[1],T3.activation.emptied[1],T2.activation.emptied[1],T3.outPlaces[1].enabledByInPlaces,T2.outPlaces[1].enabledByInPlaces,T1.outPlaces[1].enabledByInPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0004718/0.04369, allocations: 469.5 kB / 48.8 MB, free: 4.789 MB / 18.57 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.487e-05/0.04378, allocations: 43.28 kB / 48.84 MB, free: 4.789 MB / 18.57 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001585/0.04538, allocations: 1.234 MB / 50.07 MB, free: 4.641 MB / 18.57 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.686e-05/0.04542, allocations: 19.39 kB / 50.09 MB, free: 4.641 MB / 18.57 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.04543, allocations: 3.891 kB / 50.1 MB, free: 4.641 MB / 18.57 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.04544, allocations: 0 / 50.1 MB, free: 4.641 MB / 18.57 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002082/0.04753, allocations: 2.007 MB / 52.1 MB, free: 3.484 MB / 18.57 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.04755, allocations: 0.6562 kB / 52.1 MB, free: 3.484 MB / 18.57 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000169/0.04772, allocations: 52.66 kB / 52.15 MB, free: 3.438 MB / 18.57 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00095/0.04868, allocations: 373.5 kB / 52.52 MB, free: 3.082 MB / 18.57 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.517e-05/0.04873, allocations: 23.98 kB / 52.54 MB, free: 3.059 MB / 18.57 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006342/0.04937, allocations: 0.9385 MB / 53.48 MB, free: 2.109 MB / 18.57 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.04939, allocations: 3.938 kB / 53.48 MB, free: 2.105 MB / 18.57 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001817/0.05121, allocations: 1.721 MB / 55.21 MB, free: 388 kB / 18.57 MB Notification: Performance of postOpt removeConstants (simulation): time 5.016e-05/0.05127, allocations: 125.2 kB / 55.33 MB, free: 272 kB / 18.57 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.383e-05/0.05135, allocations: 27.98 kB / 55.36 MB, free: 244 kB / 18.57 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002253/0.05158, allocations: 49.22 kB / 55.4 MB, free: 196 kB / 18.57 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.05181, allocations: 148.2 kB / 55.55 MB, free: 48 kB / 18.57 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.406e-05/0.05187, allocations: 34.17 kB / 55.58 MB, free: 16 kB / 18.57 MB Notification: Performance of sorting global known variables: time 0.0002149/0.05209, allocations: 216.7 kB / 55.79 MB, free: 6 MB / 24.77 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0521, allocations: 0 / 55.79 MB, free: 6 MB / 24.77 MB Notification: Performance of remove unused functions: time 0.0006593/0.05276, allocations: 274.9 kB / 56.06 MB, free: 5.754 MB / 24.77 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (P1.t_,P2.t_,P3.t_) * Number of discrete variables: 18 (T1.activation.emptied[1],T1.activation.active,T1.activation.weaklyOutputActiveVec[1],T2.activation.fed[1],T2.activation.active,T2.activation.weaklyInputActiveVec[1],T2.activation.weaklyOutputActiveVec[1],T3.activation.fed[1],T3.activation.active,T3.activation.weaklyInputActiveVec[1],T3.activation.weaklyOutputActiveVec[1],P1.fireIn[1],P1.fireOut[1],P1.fireOut[2],P2.fireIn[1],P2.feeding,P3.fireIn[1],P3.feeding) * Number of discrete states: 13 (P1.fireIn[1],T3.activation.weaklyOutputActiveVec[1],T3.activation.weaklyInputActiveVec[1],T3.activation.active,T2.activation.weaklyOutputActiveVec[1],T2.activation.weaklyInputActiveVec[1],T2.activation.active,P1.fireOut[1],P1.fireOut[2],T1.activation.weaklyOutputActiveVec[1],T1.activation.active,P2.fireIn[1],P3.fireIn[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002996/0.05307, allocations: 212.5 kB / 56.27 MB, free: 5.559 MB / 24.77 MB Notification: Performance of simCode: created initialization part: time 0.001666/0.05474, allocations: 1.186 MB / 57.45 MB, free: 4.348 MB / 24.77 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.05476, allocations: 4.062 kB / 57.46 MB, free: 4.344 MB / 24.77 MB Notification: Performance of simCode: created simulation system equations: time 0.0008535/0.05562, allocations: 0.7011 MB / 58.16 MB, free: 3.609 MB / 24.77 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004209/0.05605, allocations: 67.31 kB / 58.23 MB, free: 3.539 MB / 24.77 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.0588, allocations: 2.061 MB / 60.29 MB, free: 1.465 MB / 24.77 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005547/0.05936, allocations: 1.094 MB / 61.38 MB, free: 356 kB / 24.77 MB Notification: Performance of simCode: alias equations: time 0.00028/0.05965, allocations: 150 kB / 61.53 MB, free: 204 kB / 24.77 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.387e-05/0.05975, allocations: 47.36 kB / 61.57 MB, free: 156 kB / 24.77 MB Notification: Performance of SimCode: time 2.5e-07/0.05975, allocations: 3.062 kB / 61.58 MB, free: 156 kB / 24.77 MB Notification: Performance of Templates: time 0.01743/0.07719, allocations: 9.608 MB / 71.18 MB, free: 2.965 MB / 24.77 MB make -j1 -f ConPNlib_ConPNlib.Examples.Test12.makefile (rm -f ConPNlib_ConPNlib.Examples.Test12.pipe ; mkfifo ConPNlib_ConPNlib.Examples.Test12.pipe ; head -c 1048576 < ConPNlib_ConPNlib.Examples.Test12.pipe >> ../files/ConPNlib_ConPNlib.Examples.Test12.sim & ./ConPNlib_ConPNlib.Examples.Test12 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ConPNlib_ConPNlib.Examples.Test12.pipe 2>&1)