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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00161/0.00161, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03995/0.03995, allocations: 8.701 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 221.4 MB / 246 MB, free: 3.547 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.0009032/0.0009031, allocations: 93.06 kB / 299.1 MB, free: 2.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.923e-05/2.973e-05, allocations: 4 kB / 359.5 MB, free: 6.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2268/0.2269, allocations: 52.54 MB / 412.1 MB, free: 22.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1184/0.3453, allocations: 102 MB / 0.502 GB, free: 376 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001855/0.3455, allocations: 67.97 kB / 0.5021 GB, free: 308 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.442/1.787, allocations: 367.8 MB / 0.8612 GB, free: 58.91 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.787, allocations: 2.062 kB / 0.8612 GB, free: 58.91 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005775/1.788, allocations: 226.5 kB / 0.8614 GB, free: 58.89 MB / 474.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.03731/1.825, allocations: 10.02 MB / 0.8712 GB, free: 56.07 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/1.825, allocations: 7.25 kB / 0.8712 GB, free: 56.07 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02972/1.855, allocations: 5.327 MB / 0.8764 GB, free: 55.51 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01892/1.874, allocations: 7.006 MB / 0.8833 GB, free: 54.63 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001039/1.875, allocations: 0.7691 MB / 0.884 GB, free: 54.61 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005431/1.88, allocations: 0.9983 MB / 0.885 GB, free: 54.6 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04788/1.928, allocations: 17.34 MB / 0.9019 GB, free: 53.35 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005825/1.929, allocations: 14.34 kB / 0.902 GB, free: 53.35 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004327/1.933, allocations: 447.8 kB / 0.9024 GB, free: 53.34 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001206/1.934, allocations: 0.8243 MB / 0.9032 GB, free: 53.32 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03609/1.971, allocations: 14.67 MB / 0.9175 GB, free: 53.21 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1096/2.08, allocations: 52.79 MB / 0.9691 GB, free: 22.2 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.017/2.097, allocations: 15.68 MB / 0.9844 GB, free: 6.133 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007456/2.105, allocations: 3.718 MB / 0.988 GB, free: 2.805 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007212/2.106, allocations: 185.4 kB / 0.9882 GB, free: 2.637 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001055/2.106, allocations: 97.98 kB / 0.9883 GB, free: 2.531 MB / 474.7 MB Notification: Performance of pre-optimization done (n=504): time 1.056e-05/2.106, allocations: 0 / 0.9883 GB, free: 2.531 MB / 474.7 MB Notification: Performance of matching and sorting (n=504): time 0.01408/2.12, allocations: 6.612 MB / 0.9947 GB, free: 12.87 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.461e-05/2.12, allocations: 130.6 kB / 0.9949 GB, free: 12.72 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007069/2.127, allocations: 3.083 MB / 0.9979 GB, free: 10.03 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000999/2.128, allocations: 108.5 kB / 0.998 GB, free: 9.918 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003792/2.132, allocations: 4.316 MB / 1.002 GB, free: 6.105 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003867/2.136, allocations: 1.708 MB / 1.004 GB, free: 4.566 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002043/2.138, allocations: 136 kB / 1.004 GB, free: 4.434 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.001086/2.139, allocations: 0.5829 MB / 1.005 GB, free: 3.926 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00652/2.145, allocations: 3.248 MB / 1.008 GB, free: 1.094 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3858/2.531, allocations: 6.257 MB / 1.014 GB, free: 69.77 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008382/2.54, allocations: 4.584 MB / 1.018 GB, free: 69.69 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001422/2.54, allocations: 20.19 kB / 1.018 GB, free: 69.69 MB / 490.7 MB Notification: Performance of matching and sorting (n=875) (initialization): time 0.02336/2.563, allocations: 10.2 MB / 1.028 GB, free: 69.46 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001478/2.564, allocations: 41.42 kB / 1.028 GB, free: 69.46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002202/2.564, allocations: 78.66 kB / 1.028 GB, free: 69.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003026/2.567, allocations: 1.073 MB / 1.029 GB, free: 69.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006355/2.573, allocations: 1.515 MB / 1.031 GB, free: 69.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01513/2.588, allocations: 12.39 MB / 1.043 GB, free: 64.05 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007428/2.596, allocations: 0.8496 MB / 1.044 GB, free: 63.85 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002255/2.598, allocations: 320.9 kB / 1.044 GB, free: 63.85 MB / 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 (795): * Single equations (assignments): 783 * 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 prepare postOptimizeDAE: time 0.003875/2.602, allocations: 0.5142 MB / 1.045 GB, free: 63.74 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001982/2.604, allocations: 398.2 kB / 1.045 GB, free: 63.54 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01465/2.619, allocations: 7.891 MB / 1.053 GB, free: 63.15 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009729/2.628, allocations: 6.483 MB / 1.059 GB, free: 62.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.634e-05/2.628, allocations: 19.59 kB / 1.059 GB, free: 62.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.025e-05/2.629, allocations: 29.78 kB / 1.059 GB, free: 62.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0326/2.661, allocations: 17.81 MB / 1.077 GB, free: 61.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.472e-05/2.661, allocations: 13.75 kB / 1.077 GB, free: 61.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003467/2.665, allocations: 0.9535 MB / 1.077 GB, free: 61.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002665/2.667, allocations: 0.9671 MB / 1.078 GB, free: 61.18 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005939/2.668, allocations: 131.7 kB / 1.079 GB, free: 61.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01232/2.68, allocations: 12.1 MB / 1.09 GB, free: 55.68 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-05/2.68, allocations: 20.78 kB / 1.09 GB, free: 55.68 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01823/2.699, allocations: 13.46 MB / 1.104 GB, free: 49.91 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003264/2.702, allocations: 1.142 MB / 1.105 GB, free: 49.38 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008765/2.703, allocations: 117.4 kB / 1.105 GB, free: 49.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002743/2.706, allocations: 322.1 kB / 1.105 GB, free: 49.23 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007669/2.706, allocations: 401.1 kB / 1.105 GB, free: 49.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003232/2.707, allocations: 167.3 kB / 1.106 GB, free: 49.12 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00381/2.711, allocations: 2.288 MB / 1.108 GB, free: 48.28 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.21e-07/2.711, allocations: 3.375 kB / 1.108 GB, free: 48.28 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01005/2.721, allocations: 2.669 MB / 1.11 GB, free: 47.66 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.001235/2.722, allocations: 377.4 kB / 1.111 GB, free: 47.47 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01322/2.735, allocations: 8.566 MB / 1.119 GB, free: 44.22 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-05/2.735, allocations: 7.188 kB / 1.119 GB, free: 44.21 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006488/2.742, allocations: 4.248 MB / 1.123 GB, free: 40.84 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00697/2.749, allocations: 0.8228 MB / 1.124 GB, free: 40.19 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03414/2.783, allocations: 15.98 MB / 1.14 GB, free: 25.83 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009026/2.792, allocations: 7.178 MB / 1.147 GB, free: 20.37 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007007/2.799, allocations: 2.578 MB / 1.149 GB, free: 18.71 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/2.8, allocations: 375.5 kB / 1.15 GB, free: 18.37 MB / 490.7 MB Notification: Performance of SimCode: time 1.172e-06/2.8, allocations: 2.953 kB / 1.15 GB, free: 18.37 MB / 490.7 MB Notification: Performance of Templates: time 0.4743/3.274, allocations: 65.57 MB / 1.214 GB, free: 70.89 MB / 0.4948 GB 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)