Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.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.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter") translateModel(HanserModelica.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004756/0.004756, allocations: 169.2 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03898/0.03898, allocations: 8.795 MB / 24.65 MB, free: 4.113 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.209/1.209, allocations: 223.2 MB / 250.7 MB, free: 4.82 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.0008572/0.0008572, allocations: 110.4 kB / 304 MB, free: 3.602 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003612/0.0003611, allocations: 12 kB / 367.1 MB, free: 6.809 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09289/0.09327, allocations: 52.54 MB / 419.6 MB, free: 2.211 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2601/0.3534, allocations: 110.2 MB / 0.5174 GB, free: 14.25 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001967/0.3537, allocations: 80.67 kB / 0.5175 GB, free: 14.17 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.34/0.6937, allocations: 78.95 MB / 0.5946 GB, free: 79.58 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.6937, allocations: 0 / 0.5946 GB, free: 79.58 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001589/0.6939, allocations: 86.22 kB / 0.5946 GB, free: 79.57 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.006535/0.7005, allocations: 3.381 MB / 0.5979 GB, free: 78.23 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.7005, allocations: 10.19 kB / 0.5979 GB, free: 78.23 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003182/0.7037, allocations: 0.696 MB / 0.5986 GB, free: 78.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007338/0.711, allocations: 3.249 MB / 0.6018 GB, free: 77.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000159/0.7112, allocations: 234.9 kB / 0.602 GB, free: 77.51 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004999/0.7117, allocations: 317.1 kB / 0.6023 GB, free: 77.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006404/0.7181, allocations: 4.1 MB / 0.6063 GB, free: 77.07 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.918e-05/0.7182, allocations: 6 kB / 0.6063 GB, free: 77.07 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002848/0.7185, allocations: 135.1 kB / 0.6065 GB, free: 77.07 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001285/0.7186, allocations: 138.6 kB / 0.6066 GB, free: 77.07 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005285/0.7239, allocations: 3.289 MB / 0.6098 GB, free: 77.03 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01796/0.7419, allocations: 13.23 MB / 0.6227 GB, free: 74.01 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004128/0.7461, allocations: 5.52 MB / 0.6281 GB, free: 69.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003741/0.7498, allocations: 2.752 MB / 0.6308 GB, free: 67.69 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.7499, allocations: 43.94 kB / 0.6309 GB, free: 67.64 MB / 442.7 MB Notification: Performance of pre-optimization done (n=112): time 2.235e-06/0.7499, allocations: 0 / 0.6309 GB, free: 67.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=115): time 0.007144/0.757, allocations: 4.742 MB / 0.6355 GB, free: 65 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.276e-05/0.7571, allocations: 63.84 kB / 0.6355 GB, free: 64.93 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001523/0.7586, allocations: 1.382 MB / 0.6369 GB, free: 64.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.936e-05/0.7587, allocations: 49.45 kB / 0.6369 GB, free: 64.33 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000562/0.7593, allocations: 1.415 MB / 0.6383 GB, free: 63.25 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001926/0.7595, allocations: 402.6 kB / 0.6387 GB, free: 62.95 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.408e-05/0.7595, allocations: 31.69 kB / 0.6387 GB, free: 62.92 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.509e-05/0.7596, allocations: 369.6 kB / 0.6391 GB, free: 62.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007784/0.7604, allocations: 0.5837 MB / 0.6397 GB, free: 62.36 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009229/0.7613, allocations: 1.056 MB / 0.6407 GB, free: 61.54 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009673/0.7623, allocations: 0.7858 MB / 0.6415 GB, free: 61.18 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.7623, allocations: 6.812 kB / 0.6415 GB, free: 61.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002556/0.7649, allocations: 2.074 MB / 0.6435 GB, free: 60.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.7649, allocations: 10.59 kB / 0.6435 GB, free: 60.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/0.7649, allocations: 18.53 kB / 0.6435 GB, free: 60.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000331/0.7653, allocations: 142.3 kB / 0.6437 GB, free: 60.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.7666, allocations: 375.9 kB / 0.644 GB, free: 60.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001693/0.7683, allocations: 3.111 MB / 0.6471 GB, free: 57.26 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/0.7693, allocations: 75.97 kB / 0.6471 GB, free: 57.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.075e-05/0.7694, allocations: 65.34 kB / 0.6472 GB, free: 57.22 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (188): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001345/0.7708, allocations: 0.9647 MB / 0.6481 GB, free: 56.67 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001873/0.771, allocations: 177.3 kB / 0.6483 GB, free: 56.58 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002543/0.7735, allocations: 1.865 MB / 0.6501 GB, free: 55.64 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.7735, allocations: 9.062 kB / 0.6501 GB, free: 55.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.7735, allocations: 7.594 kB / 0.6501 GB, free: 55.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.7736, allocations: 10.69 kB / 0.6501 GB, free: 55.64 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005955/0.7795, allocations: 4.454 MB / 0.6545 GB, free: 53.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.7795, allocations: 0 / 0.6545 GB, free: 53.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008354/0.7804, allocations: 197.2 kB / 0.6547 GB, free: 53.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007061/0.7811, allocations: 310.8 kB / 0.655 GB, free: 53.34 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.183e-05/0.7812, allocations: 30.78 kB / 0.655 GB, free: 53.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004821/0.786, allocations: 7.558 MB / 0.6624 GB, free: 46.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.786, allocations: 3.688 kB / 0.6624 GB, free: 46.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00333/0.7894, allocations: 2.734 MB / 0.6651 GB, free: 45.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000789/0.7902, allocations: 379.2 kB / 0.6654 GB, free: 44.92 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003182/0.7905, allocations: 38.12 kB / 0.6655 GB, free: 44.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000877/0.7914, allocations: 64.62 kB / 0.6655 GB, free: 44.88 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.7916, allocations: 86.47 kB / 0.6656 GB, free: 44.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.66e-05/0.7916, allocations: 34.95 kB / 0.6656 GB, free: 44.85 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001435/0.7931, allocations: 1.058 MB / 0.6667 GB, free: 44.42 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7931, allocations: 0 / 0.6667 GB, free: 44.42 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001776/0.7949, allocations: 0.5479 MB / 0.6672 GB, free: 44.36 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smr.inertiaRotor.w,smr.stator.core.Phi.re,smr.stator.core.Phi.im,smr.stator.zeroInductor.i0,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004778/0.7953, allocations: 382.7 kB / 0.6676 GB, free: 44.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002283/0.7976, allocations: 1.758 MB / 0.6693 GB, free: 43.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.7977, allocations: 64 / 0.6693 GB, free: 43.34 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001486/0.7992, allocations: 1.261 MB / 0.6705 GB, free: 42.56 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001714/0.8009, allocations: 474.7 kB / 0.671 GB, free: 42.43 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008664/0.8096, allocations: 6.611 MB / 0.6774 GB, free: 38.59 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002427/0.812, allocations: 2.297 MB / 0.6797 GB, free: 37.53 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001434/0.8135, allocations: 375.5 kB / 0.68 GB, free: 37.48 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003687/0.8138, allocations: 125.2 kB / 0.6801 GB, free: 37.46 MB / 442.7 MB Notification: Performance of SimCode: time 9.52e-07/0.8138, allocations: 0 / 0.6801 GB, free: 37.46 MB / 442.7 MB Notification: Performance of Templates: time 0.03884/0.8527, allocations: 26.34 MB / 0.7059 GB, free: 25.52 MB / 442.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1)