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.0009094/0.0009095, allocations: 99.27 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 223.3 MB / 240 MB, free: 5.492 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.0009801/0.0009797, allocations: 180.5 kB / 291.3 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03498/0.03498, allocations: 8.801 MB / 351.2 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003265/0.0003266, allocations: 12.75 kB / 414.5 MB, free: 42.83 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0651/0.06544, allocations: 52.56 MB / 467 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01206/0.07753, allocations: 12.58 MB / 479.6 MB, free: 488 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006698/0.08426, allocations: 4.318 MB / 483.9 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001052/0.08533, allocations: 83.62 kB / 484 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001852/0.08719, allocations: 0.8979 MB / 484.9 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002292/0.08949, allocations: 1.158 MB / 486.1 MB, free: 9.992 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.001478/0.09099, allocations: 0.7989 MB / 486.9 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003548/0.09455, allocations: 4.051 MB / 490.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002904/0.09746, allocations: 2.758 MB / 493.7 MB, free: 2.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001144/0.09862, allocations: 1.245 MB / 494.9 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001595/0.1002, allocations: 1.606 MB / 496.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002816/0.1005, allocations: 204 kB / 496.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007325/0.1013, allocations: 407.7 kB / 497.1 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005671/0.1018, allocations: 0.7237 MB / 497.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001334/0.1032, allocations: 1.685 MB / 499.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003791/0.107, allocations: 5.243 MB / 0.4929 GB, free: 7.164 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.604e-06/0.107, allocations: 0 / 0.4929 GB, free: 7.164 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.107, allocations: 0 / 0.4929 GB, free: 7.164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.299e-05/0.107, allocations: 4 kB / 0.493 GB, free: 7.16 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.007559/0.1146, allocations: 3.548 MB / 0.4964 GB, free: 3.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.1146, allocations: 12.03 kB / 0.4964 GB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003884/0.1185, allocations: 0.754 MB / 0.4972 GB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003157/0.1217, allocations: 2.208 MB / 0.4993 GB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001519/0.1219, allocations: 238.7 kB / 0.4995 GB, free: 280 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004724/0.1224, allocations: 320.1 kB / 0.4999 GB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006414/0.1288, allocations: 4.177 MB / 0.5039 GB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.688e-05/0.1289, allocations: 4 kB / 0.5039 GB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003008/0.1292, allocations: 124 kB / 0.5041 GB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001281/0.1293, allocations: 150.3 kB / 0.5042 GB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005683/0.135, allocations: 3.519 MB / 0.5076 GB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01682/0.1518, allocations: 13.27 MB / 0.5206 GB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005142/0.157, allocations: 5.51 MB / 0.526 GB, free: 4.012 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001804/0.1588, allocations: 1.095 MB / 0.527 GB, free: 2.914 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1509/0.3097, allocations: 3.055 MB / 0.53 GB, free: 64.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.939e-05/0.3098, allocations: 47 kB / 0.5301 GB, free: 64.49 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 3.156e-06/0.3098, allocations: 0 / 0.5301 GB, free: 64.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.007938/0.3178, allocations: 4.67 MB / 0.5346 GB, free: 63.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.361e-05/0.3178, allocations: 63.19 kB / 0.5347 GB, free: 63.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002082/0.3199, allocations: 1.604 MB / 0.5363 GB, free: 63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.869e-05/0.32, allocations: 45.17 kB / 0.5363 GB, free: 62.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007157/0.3207, allocations: 1.425 MB / 0.5377 GB, free: 62.26 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002223/0.3209, allocations: 386.1 kB / 0.5381 GB, free: 62.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001544/0.3211, allocations: 127.5 kB / 0.5382 GB, free: 62.01 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 2.823e-05/0.3211, allocations: 302.6 kB / 0.5385 GB, free: 61.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009533/0.3221, allocations: 0.5746 MB / 0.539 GB, free: 61.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001066/0.3232, allocations: 1.064 MB / 0.5401 GB, free: 61.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002079/0.3252, allocations: 1.746 MB / 0.5418 GB, free: 60.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.749e-06/0.3253, allocations: 5.094 kB / 0.5418 GB, free: 60.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003184/0.3285, allocations: 2.067 MB / 0.5438 GB, free: 60.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.3285, allocations: 14.31 kB / 0.5438 GB, free: 60.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.364e-05/0.3285, allocations: 15.23 kB / 0.5438 GB, free: 60.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003648/0.3289, allocations: 138.7 kB / 0.544 GB, free: 60.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001393/0.3303, allocations: 372.5 kB / 0.5443 GB, free: 60.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001947/0.3323, allocations: 3.096 MB / 0.5473 GB, free: 57.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001067/0.3333, allocations: 67.84 kB / 0.5474 GB, free: 57.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/0.3334, allocations: 67.25 kB / 0.5475 GB, free: 57.43 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.001287/0.3347, allocations: 0.966 MB / 0.5484 GB, free: 57.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002023/0.3349, allocations: 177.2 kB / 0.5486 GB, free: 57.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002989/0.3379, allocations: 1.819 MB / 0.5504 GB, free: 56.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.338, allocations: 10.22 kB / 0.5504 GB, free: 56.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.338, allocations: 10.66 kB / 0.5504 GB, free: 56.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.338, allocations: 5.812 kB / 0.5504 GB, free: 56.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005574/0.3436, allocations: 4.373 MB / 0.5546 GB, free: 54.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.3436, allocations: 3.75 kB / 0.5547 GB, free: 54.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008145/0.3444, allocations: 181.4 kB / 0.5548 GB, free: 54.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007386/0.3452, allocations: 308.3 kB / 0.5551 GB, free: 53.99 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.674e-05/0.3452, allocations: 40.05 kB / 0.5552 GB, free: 53.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004997/0.3503, allocations: 7.473 MB / 0.5625 GB, free: 47.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3503, allocations: 10 kB / 0.5625 GB, free: 47.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003329/0.3536, allocations: 2.59 MB / 0.565 GB, free: 46.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004088/0.354, allocations: 368.3 kB / 0.5653 GB, free: 45.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001888/0.3542, allocations: 31.8 kB / 0.5654 GB, free: 45.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007784/0.355, allocations: 55.25 kB / 0.5654 GB, free: 45.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.3552, allocations: 92.69 kB / 0.5655 GB, free: 45.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.063e-05/0.3552, allocations: 31.7 kB / 0.5655 GB, free: 45.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001262/0.3565, allocations: 1.094 MB / 0.5666 GB, free: 45.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3565, allocations: 0 / 0.5666 GB, free: 45.06 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001361/0.3579, allocations: 0.5137 MB / 0.5671 GB, free: 45.02 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.000218/0.3581, allocations: 157 kB / 0.5673 GB, free: 44.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002148/0.3603, allocations: 1.735 MB / 0.569 GB, free: 43.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3603, allocations: 3.906 kB / 0.569 GB, free: 43.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.3617, allocations: 1.237 MB / 0.5702 GB, free: 42.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002221/0.364, allocations: 479.2 kB / 0.5706 GB, free: 42.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006645/0.3706, allocations: 6.853 MB / 0.5773 GB, free: 35.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/0.3719, allocations: 2.183 MB / 0.5795 GB, free: 33.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000343/0.3723, allocations: 127.4 kB / 0.5796 GB, free: 33.11 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3723, allocations: 0 / 0.5796 GB, free: 33.11 MB / 366.1 MB Notification: Performance of Templates: time 0.07416/0.4464, allocations: 89.61 MB / 0.6671 GB, free: 7.508 MB / 430.1 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)