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/ModelicaServices 4.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009724/0.0009724, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 223.3 MB / 239.4 MB, free: 5.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009358/0.0009357, allocations: 191.3 kB / 290.6 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03397/0.03397, allocations: 8.802 MB / 350.5 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003967/0.0003969, allocations: 11.11 kB / 413.8 MB, free: 42.76 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09442/0.09484, allocations: 52.56 MB / 466.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.012/0.1069, allocations: 12.59 MB / 479 MB, free: 500 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007935/0.1149, allocations: 4.322 MB / 483.3 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002512/0.1174, allocations: 79.69 kB / 483.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003227/0.1207, allocations: 0.8978 MB / 484.3 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00469/0.1254, allocations: 1.158 MB / 485.4 MB, free: 10 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMR_Inverter.mo:88:3-88:33:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.002344/0.1278, allocations: 0.7988 MB / 486.2 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005178/0.1329, allocations: 4.05 MB / 490.3 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003443/0.1364, allocations: 2.754 MB / 493 MB, free: 2.324 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002123/0.1386, allocations: 1.248 MB / 494.3 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002566/0.1412, allocations: 1.606 MB / 495.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005168/0.1417, allocations: 204 kB / 496.1 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001328/0.143, allocations: 411.7 kB / 496.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006401/0.1437, allocations: 0.7159 MB / 497.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001845/0.1455, allocations: 1.688 MB / 498.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00533/0.1509, allocations: 5.991 MB / 0.493 GB, free: 6.422 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1509, allocations: 0 / 0.493 GB, free: 6.422 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1509, allocations: 0 / 0.493 GB, free: 6.422 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001357/0.1511, allocations: 4 kB / 0.493 GB, free: 6.418 MB / 334.1 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.008517/0.1596, allocations: 3.552 MB / 0.4965 GB, free: 2.797 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.1596, allocations: 12.03 kB / 0.4965 GB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00399/0.1636, allocations: 0.7501 MB / 0.4973 GB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003574/0.1672, allocations: 2.211 MB / 0.4994 GB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.1674, allocations: 230.7 kB / 0.4996 GB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004889/0.1679, allocations: 331.9 kB / 0.4999 GB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006559/0.1745, allocations: 4.169 MB / 0.504 GB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.226e-05/0.1745, allocations: 4 kB / 0.504 GB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002682/0.1748, allocations: 124 kB / 0.5041 GB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001209/0.175, allocations: 150.2 kB / 0.5043 GB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005535/0.1805, allocations: 3.523 MB / 0.5077 GB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0169/0.1974, allocations: 13.26 MB / 0.5207 GB, free: 9.516 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005414/0.2029, allocations: 5.51 MB / 0.5261 GB, free: 3.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001826/0.2047, allocations: 1.095 MB / 0.5271 GB, free: 2.172 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2124/0.4171, allocations: 3.045 MB / 0.5301 GB, free: 64.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.126e-05/0.4172, allocations: 54.05 kB / 0.5302 GB, free: 64.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 3.737e-06/0.4172, allocations: 0 / 0.5302 GB, free: 64.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.00896/0.4262, allocations: 4.669 MB / 0.5347 GB, free: 63.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.4263, allocations: 66.75 kB / 0.5348 GB, free: 62.97 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002376/0.4286, allocations: 1.6 MB / 0.5363 GB, free: 62.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.527e-05/0.4287, allocations: 45.58 kB / 0.5364 GB, free: 62.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008511/0.4296, allocations: 1.425 MB / 0.5378 GB, free: 62.06 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002623/0.4299, allocations: 386.2 kB / 0.5381 GB, free: 61.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/0.43, allocations: 122.8 kB / 0.5383 GB, free: 61.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.071e-05/0.4301, allocations: 305 kB / 0.5385 GB, free: 61.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009399/0.431, allocations: 0.5747 MB / 0.5391 GB, free: 61.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001199/0.4322, allocations: 1.067 MB / 0.5402 GB, free: 60.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002191/0.4345, allocations: 1.749 MB / 0.5419 GB, free: 60.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.4345, allocations: 8.062 kB / 0.5419 GB, free: 60.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.004019/0.4385, allocations: 2.063 MB / 0.5439 GB, free: 59.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.409e-05/0.4386, allocations: 11.28 kB / 0.5439 GB, free: 59.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.985e-05/0.4386, allocations: 17.08 kB / 0.5439 GB, free: 59.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000431/0.439, allocations: 141 kB / 0.544 GB, free: 59.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/0.4404, allocations: 366.9 kB / 0.5444 GB, free: 59.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002062/0.4425, allocations: 3.096 MB / 0.5474 GB, free: 57.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001309/0.4438, allocations: 72.11 kB / 0.5475 GB, free: 57.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001186/0.444, allocations: 66.5 kB / 0.5475 GB, free: 57.23 MB / 366.1 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 (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001781/0.4458, allocations: 0.968 MB / 0.5485 GB, free: 56.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000351/0.4461, allocations: 172.8 kB / 0.5487 GB, free: 56.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003372/0.4495, allocations: 1.828 MB / 0.5504 GB, free: 55.67 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/0.4495, allocations: 10.75 kB / 0.5505 GB, free: 55.67 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.29e-05/0.4496, allocations: 8.375 kB / 0.5505 GB, free: 55.67 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.4496, allocations: 4.781 kB / 0.5505 GB, free: 55.67 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00724/0.4568, allocations: 4.364 MB / 0.5547 GB, free: 53.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.4569, allocations: 0 / 0.5547 GB, free: 53.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007744/0.4576, allocations: 192 kB / 0.5549 GB, free: 53.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007864/0.4584, allocations: 310.2 kB / 0.5552 GB, free: 53.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.934e-05/0.4585, allocations: 31.66 kB / 0.5552 GB, free: 53.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005551/0.4641, allocations: 7.489 MB / 0.5626 GB, free: 46.85 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.4641, allocations: 3.938 kB / 0.5626 GB, free: 46.85 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003962/0.4681, allocations: 2.586 MB / 0.5651 GB, free: 45.42 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009513/0.4691, allocations: 371 kB / 0.5654 GB, free: 45.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004345/0.4695, allocations: 24.81 kB / 0.5655 GB, free: 45.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.4706, allocations: 69.67 kB / 0.5655 GB, free: 45.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002441/0.4708, allocations: 91.56 kB / 0.5656 GB, free: 45.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-05/0.4709, allocations: 26.22 kB / 0.5656 GB, free: 45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001942/0.4729, allocations: 1.098 MB / 0.5667 GB, free: 44.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4729, allocations: 0 / 0.5667 GB, free: 44.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002033/0.4749, allocations: 0.5057 MB / 0.5672 GB, free: 44.36 MB / 366.1 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.zeroInductor.i0,smr.stator.core.Phi.re,smr.stator.core.Phi.im,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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003303/0.4753, allocations: 161.7 kB / 0.5674 GB, free: 44.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002858/0.4781, allocations: 1.732 MB / 0.569 GB, free: 43.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.4782, allocations: 5.094 kB / 0.5691 GB, free: 43.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00169/0.4799, allocations: 1.235 MB / 0.5703 GB, free: 42.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002858/0.4827, allocations: 487.6 kB / 0.5707 GB, free: 41.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01068/0.4934, allocations: 6.879 MB / 0.5774 GB, free: 34.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002283/0.4957, allocations: 2.229 MB / 0.5796 GB, free: 32.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001615/0.4974, allocations: 375.3 kB / 0.58 GB, free: 32.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004153/0.4978, allocations: 120.3 kB / 0.5801 GB, free: 32 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4978, allocations: 0 / 0.5801 GB, free: 32 MB / 366.1 MB Notification: Performance of Templates: time 0.03945/0.5373, allocations: 24.12 MB / 0.6036 GB, free: 8.121 MB / 366.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: