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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package HanserModelica with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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 3.2.3+maint.om/package.mo): time 0.001968/0.001968, allocations: 172.1 kB / 16.12 MB, free: 5.668 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo): time 0.06635/0.06635, allocations: 8.775 MB / 25.64 MB, free: 3.797 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.591/1.591, allocations: 205.4 MB / 233.9 MB, free: 12.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009285/0.0009285, allocations: 90.36 kB / 284.4 MB, free: 14.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004739/0.000474, allocations: 12 kB / 344.8 MB, free: 1.871 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2581, allocations: 49.72 MB / 394.5 MB, free: 36.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1293/0.3875, allocations: 110 MB / 0.4927 GB, free: 6.602 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/0.3878, allocations: 79.97 kB / 0.4927 GB, free: 6.523 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3465/0.7343, allocations: 78.74 MB / 0.5696 GB, free: 44.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.7343, allocations: 0 / 0.5696 GB, free: 44.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003188/0.7346, allocations: 83.88 kB / 0.5697 GB, free: 44.51 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.01001/0.7447, allocations: 3.341 MB / 0.573 GB, free: 41.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.7447, allocations: 12.02 kB / 0.573 GB, free: 41.08 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003958/0.7487, allocations: 0.6955 MB / 0.5737 GB, free: 40.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005994/0.7547, allocations: 2.609 MB / 0.5762 GB, free: 37.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002164/0.755, allocations: 234.7 kB / 0.5764 GB, free: 37.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009632/0.7559, allocations: 316.3 kB / 0.5767 GB, free: 37.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009084/0.765, allocations: 4.138 MB / 0.5808 GB, free: 32.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001431/0.7652, allocations: 7.922 kB / 0.5808 GB, free: 32.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006996/0.7659, allocations: 140 kB / 0.5809 GB, free: 32.76 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001305/0.7661, allocations: 142.3 kB / 0.5811 GB, free: 32.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006566/0.7727, allocations: 3.281 MB / 0.5843 GB, free: 29.33 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02142/0.7941, allocations: 13.25 MB / 0.5972 GB, free: 15.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004417/0.7986, allocations: 5.525 MB / 0.6026 GB, free: 9.406 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001621/0.8002, allocations: 1.091 MB / 0.6037 GB, free: 8.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005042/0.8053, allocations: 3.068 MB / 0.6067 GB, free: 5.168 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.8053, allocations: 43.56 kB / 0.6067 GB, free: 5.117 MB / 378.7 MB Notification: Performance of pre-optimization done (n=107): time 3.476e-06/0.8054, allocations: 0 / 0.6067 GB, free: 5.117 MB / 378.7 MB Notification: Performance of matching and sorting (n=110): time 0.008596/0.814, allocations: 4.656 MB / 0.6113 GB, free: 284 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.786e-05/0.814, allocations: 68.41 kB / 0.6113 GB, free: 204 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003115/0.8171, allocations: 1.567 MB / 0.6128 GB, free: 14.62 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001208/0.8173, allocations: 45.7 kB / 0.6129 GB, free: 14.57 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001101/0.8184, allocations: 1.422 MB / 0.6143 GB, free: 13.13 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003729/0.8188, allocations: 390.4 kB / 0.6147 GB, free: 12.75 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.417e-05/0.8189, allocations: 28 kB / 0.6147 GB, free: 12.72 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.8191, allocations: 373.8 kB / 0.615 GB, free: 12.35 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/0.8202, allocations: 0.566 MB / 0.6156 GB, free: 11.78 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001496/0.8217, allocations: 1.063 MB / 0.6166 GB, free: 10.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002713/0.8244, allocations: 1.733 MB / 0.6183 GB, free: 8.551 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.446e-05/0.8244, allocations: 4 kB / 0.6183 GB, free: 8.547 MB / 394.7 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003862/0.8283, allocations: 2.046 MB / 0.6203 GB, free: 6.465 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.8284, allocations: 12 kB / 0.6203 GB, free: 6.453 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.754e-05/0.8284, allocations: 12.38 kB / 0.6203 GB, free: 6.441 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004108/0.8288, allocations: 138.5 kB / 0.6205 GB, free: 6.297 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/0.8303, allocations: 379.4 kB / 0.6208 GB, free: 5.926 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002835/0.8331, allocations: 3.098 MB / 0.6239 GB, free: 2.555 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/0.8345, allocations: 71.88 kB / 0.6239 GB, free: 2.484 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001629/0.8347, allocations: 67.98 kB / 0.624 GB, free: 2.418 MB / 394.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 182 * 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.002089/0.8368, allocations: 0.9657 MB / 0.6249 GB, free: 1.441 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000468/0.8373, allocations: 169.9 kB / 0.6251 GB, free: 1.273 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003581/0.8409, allocations: 1.817 MB / 0.6269 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.8409, allocations: 12 kB / 0.6269 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.572e-05/0.8409, allocations: 4 kB / 0.6269 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.8409, allocations: 7.922 kB / 0.6269 GB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009173/0.8501, allocations: 4.361 MB / 0.6312 GB, free: 10.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.254e-05/0.8502, allocations: 8 kB / 0.6312 GB, free: 10.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008737/0.8511, allocations: 183.8 kB / 0.6313 GB, free: 10.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008985/0.852, allocations: 315.3 kB / 0.6316 GB, free: 10.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.8521, allocations: 31.94 kB / 0.6317 GB, free: 10.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00737/0.8595, allocations: 7.467 MB / 0.639 GB, free: 2.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.8595, allocations: 4.031 kB / 0.639 GB, free: 2.336 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004631/0.8642, allocations: 2.582 MB / 0.6415 GB, free: 15.67 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001139/0.8653, allocations: 370.9 kB / 0.6418 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004803/0.8658, allocations: 24 kB / 0.6419 GB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.8669, allocations: 67.95 kB / 0.6419 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000239/0.8672, allocations: 88.84 kB / 0.642 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.726e-05/0.8673, allocations: 35.94 kB / 0.6421 GB, free: 15.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002144/0.8694, allocations: 1.067 MB / 0.6431 GB, free: 14.01 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8694, allocations: 0 / 0.6431 GB, free: 14.01 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002421/0.8718, allocations: 0.5392 MB / 0.6436 GB, free: 13.47 MB / 426.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 (86): * Single equations (assignments): 82 * 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.000641/0.8725, allocations: 372 kB / 0.644 GB, free: 13.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003196/0.8757, allocations: 1.714 MB / 0.6456 GB, free: 11.34 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.8757, allocations: 0 / 0.6456 GB, free: 11.34 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002088/0.8778, allocations: 1.247 MB / 0.6469 GB, free: 10.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003325/0.8812, allocations: 478.2 kB / 0.6473 GB, free: 9.578 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.8927, allocations: 6.583 MB / 0.6537 GB, free: 2.953 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002743/0.8955, allocations: 2.237 MB / 0.6559 GB, free: 0.6836 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001664/0.8972, allocations: 375.3 kB / 0.6563 GB, free: 320 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003911/0.8976, allocations: 119.4 kB / 0.6564 GB, free: 200 kB / 426.7 MB Notification: Performance of SimCode: time 6.21e-07/0.8976, allocations: 0 / 0.6564 GB, free: 200 kB / 426.7 MB Notification: Performance of Templates: time 0.241/1.139, allocations: 26.48 MB / 0.6823 GB, free: 91.07 MB / 426.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)