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.0009564/0.0009565, allocations: 174.5 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.03843/0.03843, allocations: 8.698 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.304/1.304, allocations: 221.4 MB / 246 MB, free: 3.539 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.0008846/0.0008847, allocations: 90.92 kB / 299.1 MB, free: 2.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.907e-05/2.912e-05, allocations: 4 kB / 359.5 MB, free: 6.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.265/0.265, allocations: 52.54 MB / 412.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3691/0.6341, allocations: 110.1 MB / 0.5099 GB, free: 94.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.6344, allocations: 74.14 kB / 0.51 GB, free: 94.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1579/0.7923, allocations: 78.96 MB / 0.5871 GB, free: 18.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.7924, allocations: 0 / 0.5871 GB, free: 18.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001909/0.7926, allocations: 83.86 kB / 0.5872 GB, free: 18.25 MB / 378.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.007858/0.8004, allocations: 3.106 MB / 0.5902 GB, free: 15.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.305e-05/0.8005, allocations: 8.031 kB / 0.5902 GB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004566/0.8051, allocations: 0.6945 MB / 0.5909 GB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00765/0.8128, allocations: 3.228 MB / 0.5941 GB, free: 11.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001581/0.813, allocations: 238.3 kB / 0.5943 GB, free: 10.85 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007362/0.8138, allocations: 315.9 kB / 0.5946 GB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006221/0.82, allocations: 4.014 MB / 0.5985 GB, free: 6.391 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.896e-05/0.8201, allocations: 4 kB / 0.5985 GB, free: 6.387 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002692/0.8203, allocations: 136 kB / 0.5986 GB, free: 6.254 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001013/0.8205, allocations: 142.3 kB / 0.5988 GB, free: 6.113 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004487/0.8249, allocations: 3.168 MB / 0.6019 GB, free: 2.938 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01843/0.8434, allocations: 13.22 MB / 0.6148 GB, free: 5.305 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004954/0.8484, allocations: 5.417 MB / 0.6201 GB, free: 15.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001693/0.8501, allocations: 1.04 MB / 0.6211 GB, free: 14.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0054/0.8555, allocations: 3.032 MB / 0.6241 GB, free: 10.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.8556, allocations: 43.56 kB / 0.6241 GB, free: 10.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=105): time 2.736e-06/0.8556, allocations: 0 / 0.6241 GB, free: 10.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=108): time 0.006515/0.8621, allocations: 3.364 MB / 0.6274 GB, free: 7.453 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.8622, allocations: 68.41 kB / 0.6274 GB, free: 7.375 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00209/0.8643, allocations: 1.366 MB / 0.6288 GB, free: 6.004 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.54e-05/0.8644, allocations: 49.7 kB / 0.6288 GB, free: 5.949 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009587/0.8654, allocations: 1.422 MB / 0.6302 GB, free: 4.508 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000295/0.8657, allocations: 386.5 kB / 0.6306 GB, free: 4.125 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.386e-05/0.8657, allocations: 31.94 kB / 0.6306 GB, free: 4.094 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.8659, allocations: 373.8 kB / 0.631 GB, free: 3.723 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008062/0.8667, allocations: 0.5155 MB / 0.6315 GB, free: 3.207 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.8678, allocations: 1.001 MB / 0.6325 GB, free: 1.992 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.8689, allocations: 0.7192 MB / 0.6332 GB, free: 1.273 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/0.8689, allocations: 4 kB / 0.6332 GB, free: 1.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=190) (initialization): time 0.002969/0.8719, allocations: 1.948 MB / 0.6351 GB, free: 15.28 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.8719, allocations: 8 kB / 0.6351 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.227e-05/0.872, allocations: 16 kB / 0.6351 GB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003931/0.8724, allocations: 146.8 kB / 0.6352 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001354/0.8737, allocations: 371.4 kB / 0.6356 GB, free: 14.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002412/0.8761, allocations: 3.072 MB / 0.6386 GB, free: 11.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001282/0.8775, allocations: 75.88 kB / 0.6387 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.8776, allocations: 72.14 kB / 0.6387 GB, free: 11.25 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 180 * 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%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000258/0.8778, allocations: 200.4 kB / 0.6389 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002217/0.8781, allocations: 169.9 kB / 0.6391 GB, free: 10.88 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002932/0.881, allocations: 1.728 MB / 0.6408 GB, free: 9.094 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.881, allocations: 12 kB / 0.6408 GB, free: 9.082 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.881, allocations: 4 kB / 0.6408 GB, free: 9.078 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.8811, allocations: 3.984 kB / 0.6408 GB, free: 9.074 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006635/0.8877, allocations: 4.233 MB / 0.6449 GB, free: 4.715 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.8877, allocations: 192 / 0.6449 GB, free: 4.715 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008537/0.8886, allocations: 191.8 kB / 0.6451 GB, free: 4.527 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008539/0.8895, allocations: 295.2 kB / 0.6454 GB, free: 4.227 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.063e-05/0.8896, allocations: 35.94 kB / 0.6454 GB, free: 4.191 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00675/0.8963, allocations: 7.478 MB / 0.6527 GB, free: 12.18 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.8964, allocations: 4.031 kB / 0.6527 GB, free: 12.18 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003753/0.9001, allocations: 2.52 MB / 0.6552 GB, free: 9.527 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007711/0.9009, allocations: 366.8 kB / 0.6555 GB, free: 9.148 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003251/0.9012, allocations: 27.98 kB / 0.6556 GB, free: 9.121 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009441/0.9022, allocations: 67.95 kB / 0.6556 GB, free: 9.055 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002243/0.9024, allocations: 72.89 kB / 0.6557 GB, free: 8.984 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.554e-05/0.9025, allocations: 35.98 kB / 0.6557 GB, free: 8.949 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001871/0.9044, allocations: 1.051 MB / 0.6568 GB, free: 7.902 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.9044, allocations: 0 / 0.6568 GB, free: 7.902 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002291/0.9067, allocations: 0.539 MB / 0.6573 GB, free: 7.363 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 80 * 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.0007159/0.9074, allocations: 457.2 kB / 0.6577 GB, free: 6.91 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002792/0.9102, allocations: 1.621 MB / 0.6593 GB, free: 5.246 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.9103, allocations: 384 / 0.6593 GB, free: 5.246 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001886/0.9122, allocations: 1.168 MB / 0.6604 GB, free: 4.027 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002651/0.9148, allocations: 474 kB / 0.6609 GB, free: 3.57 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2909/1.206, allocations: 4.333 MB / 0.6651 GB, free: 86.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002594/1.208, allocations: 2.289 MB / 0.6674 GB, free: 85.88 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00192/1.21, allocations: 373 kB / 0.6677 GB, free: 85.86 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003469/1.211, allocations: 119.5 kB / 0.6678 GB, free: 85.86 MB / 442.7 MB Notification: Performance of SimCode: time 2.003e-06/1.211, allocations: 0 / 0.6678 GB, free: 85.86 MB / 442.7 MB Notification: Performance of Templates: time 0.04705/1.258, allocations: 26.82 MB / 0.694 GB, free: 84.86 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)