Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.EquivalentCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.Machines.EquivalentCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Machines.EquivalentCircuit") translateModel(HanserModelica.Machines.EquivalentCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Machines.EquivalentCircuit") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002069/0.002069, allocations: 185.8 kB / 7.461 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03919/0.03919, allocations: 8.709 MB / 16.58 MB, free: 0.5586 MB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 221.4 MB / 240.5 MB, free: 8.148 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009138/0.0009138, allocations: 92.48 kB / 293.5 MB, free: 7.41 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.524e-06/7.544e-06, allocations: 0 / 352.1 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2651, allocations: 52.54 MB / 404.6 MB, free: 27.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1135/0.3787, allocations: 101.3 MB / 0.494 GB, free: 5.609 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002074/0.3789, allocations: 71.97 kB / 0.4941 GB, free: 5.539 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.175/1.554, allocations: 362.2 MB / 0.8478 GB, free: 41.79 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004951/1.555, allocations: 233.4 kB / 0.848 GB, free: 41.77 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3006 * Number of variables: 3006 Notification: Performance of Generate backend data structure: time 0.03519/1.59, allocations: 9.967 MB / 0.8577 GB, free: 38.86 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/1.59, allocations: 10.34 kB / 0.8578 GB, free: 38.86 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03148/1.621, allocations: 4.915 MB / 0.8626 GB, free: 38.26 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01839/1.64, allocations: 7.028 MB / 0.8694 GB, free: 37.38 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007127/1.641, allocations: 333.5 kB / 0.8697 GB, free: 37.38 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004574/1.645, allocations: 0.5927 MB / 0.8703 GB, free: 37.37 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03324/1.678, allocations: 13.91 MB / 0.8839 GB, free: 37.32 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04084/1.719, allocations: 15.9 MB / 0.8994 GB, free: 36.12 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003131/1.72, allocations: 18.2 kB / 0.8994 GB, free: 36.11 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001788/1.722, allocations: 7.406 kB / 0.8995 GB, free: 36.11 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007237/1.722, allocations: 0.8553 MB / 0.9003 GB, free: 36.09 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08035/1.803, allocations: 52.01 MB / 0.9511 GB, free: 18.77 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008313/1.811, allocations: 6.269 MB / 0.9572 GB, free: 16.86 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004693/1.816, allocations: 3.818 MB / 0.9609 GB, free: 15.1 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004098/1.816, allocations: 206.6 kB / 0.9611 GB, free: 14.92 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.531e-05/1.816, allocations: 90.98 kB / 0.9612 GB, free: 14.82 MB / 458.7 MB Notification: Performance of pre-optimization done (n=504): time 6.743e-06/1.816, allocations: 0 / 0.9612 GB, free: 14.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=504): time 0.01213/1.828, allocations: 7.401 MB / 0.9684 GB, free: 8.508 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.072e-05/1.828, allocations: 129.5 kB / 0.9686 GB, free: 8.359 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004565/1.833, allocations: 2.967 MB / 0.9715 GB, free: 5.773 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006985/1.834, allocations: 25.7 kB / 0.9715 GB, free: 5.742 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001612/1.835, allocations: 4.001 MB / 0.9754 GB, free: 2.219 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001612/1.837, allocations: 1.636 MB / 0.977 GB, free: 0.7148 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00037/1.837, allocations: 1.688 kB / 0.977 GB, free: 0.7148 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003253/1.838, allocations: 0.5853 MB / 0.9776 GB, free: 208 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01834/1.856, allocations: 4.707 MB / 0.9822 GB, free: 0 / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009917/1.866, allocations: 5.83 MB / 0.9879 GB, free: 9.699 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01093/1.877, allocations: 5.117 MB / 0.9929 GB, free: 5.527 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001258/1.877, allocations: 24 kB / 0.9929 GB, free: 5.504 MB / 474.7 MB Notification: Performance of matching and sorting (n=875) (initialization): time 0.03176/1.909, allocations: 11.04 MB / 1.004 GB, free: 13.95 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/1.909, allocations: 7.906 kB / 1.004 GB, free: 13.94 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002332/1.909, allocations: 78.44 kB / 1.004 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003563/1.913, allocations: 1.106 MB / 1.005 GB, free: 12.97 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007429/1.92, allocations: 1.483 MB / 1.006 GB, free: 11.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.016/1.936, allocations: 12.05 MB / 1.018 GB, free: 0.5781 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007307/1.944, allocations: 0.7157 MB / 1.019 GB, free: 0 / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004399/1.948, allocations: 464.8 kB / 1.019 GB, free: 0 / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 342 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (789): * Single equations (assignments): 777 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 15,(1,100.0%) 15,(1,100.0%) 15,(4,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.2053/2.153, allocations: 316.2 kB / 1.019 GB, free: 94.12 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001234/2.155, allocations: 392.3 kB / 1.02 GB, free: 94.12 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01604/2.171, allocations: 8.72 MB / 1.028 GB, free: 93.89 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01189/2.183, allocations: 7.11 MB / 1.035 GB, free: 93.71 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-05/2.183, allocations: 13.25 kB / 1.035 GB, free: 93.71 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.473e-05/2.183, allocations: 27.36 kB / 1.035 GB, free: 93.71 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03663/2.219, allocations: 17.32 MB / 1.052 GB, free: 92.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.024e-05/2.22, allocations: 14.22 kB / 1.052 GB, free: 92.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004389/2.224, allocations: 0.9364 MB / 1.053 GB, free: 92.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002879/2.227, allocations: 0.9691 MB / 1.054 GB, free: 92.26 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009829/2.228, allocations: 54.42 kB / 1.054 GB, free: 92.26 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01231/2.24, allocations: 11.37 MB / 1.065 GB, free: 87.12 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-05/2.24, allocations: 24.12 kB / 1.065 GB, free: 87.12 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02653/2.267, allocations: 14.67 MB / 1.08 GB, free: 83.81 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004251/2.271, allocations: 1.199 MB / 1.081 GB, free: 83.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002028/2.273, allocations: 18.03 kB / 1.081 GB, free: 83.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004297/2.277, allocations: 206.3 kB / 1.081 GB, free: 83.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001182/2.279, allocations: 325.7 kB / 1.081 GB, free: 83.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008776/2.28, allocations: 174.2 kB / 1.081 GB, free: 83.48 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.004152/2.284, allocations: 2.187 MB / 1.084 GB, free: 83.34 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009456/2.293, allocations: 2.441 MB / 1.086 GB, free: 83.01 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 2 (main_e.plug_p.reference.gamma,converter_m.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (507): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13,(4,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001267/2.294, allocations: 251.7 kB / 1.086 GB, free: 82.92 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01361/2.308, allocations: 8.874 MB / 1.095 GB, free: 82.34 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.651e-05/2.308, allocations: 6.531 kB / 1.095 GB, free: 82.34 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006642/2.315, allocations: 4.317 MB / 1.099 GB, free: 81.91 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004924/2.32, allocations: 0.6866 MB / 1.1 GB, free: 81.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04051/2.36, allocations: 16.45 MB / 1.116 GB, free: 78.82 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01692/2.377, allocations: 7.565 MB / 1.123 GB, free: 77.89 MB / 490.7 MB Notification: Performance of SimCode: time 1.433e-06/2.377, allocations: 0.5938 kB / 1.123 GB, free: 77.89 MB / 490.7 MB Notification: Performance of Templates: time 0.1423/2.52, allocations: 80.28 MB / 1.202 GB, free: 34.33 MB / 490.7 MB make -j1 -f HanserModelica_HanserModelica.Machines.EquivalentCircuit.makefile (rm -f HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; mkfifo HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe >> ../files/HanserModelica_HanserModelica.Machines.EquivalentCircuit.sim & ./HanserModelica_HanserModelica.Machines.EquivalentCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe 2>&1)