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.001068/0.001068, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.299/1.299, allocations: 222.9 MB / 239 MB, free: 4.746 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.001436/0.001436, allocations: 192.3 kB / 289.3 MB, free: 2.484 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0398/0.0398, allocations: 8.796 MB / 348.2 MB, free: 4.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 78.78 kB / 410.6 MB, free: 42.37 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07986/0.08121, allocations: 51.57 MB / 462.2 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01209/0.09333, allocations: 13.22 MB / 475.4 MB, free: 1.508 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006832/0.1002, allocations: 4.353 MB / 479.7 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001301/0.1015, allocations: 83.69 kB / 479.8 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002193/0.1038, allocations: 0.9135 MB / 480.7 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003301/0.1071, allocations: 1.166 MB / 481.9 MB, free: 10.96 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.001793/0.1089, allocations: 0.7881 MB / 482.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004624/0.1135, allocations: 3.91 MB / 486.6 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003414/0.1169, allocations: 3.347 MB / 489.9 MB, free: 2.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002227/0.1192, allocations: 1.701 MB / 491.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001878/0.1211, allocations: 1.981 MB / 493.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005066/0.1216, allocations: 496 kB / 494.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001142/0.1227, allocations: 0.695 MB / 494.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007647/0.1235, allocations: 1.067 MB / 495.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001803/0.1253, allocations: 2.038 MB / 497.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005908/0.1312, allocations: 6.337 MB / 0.4924 GB, free: 4.492 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1313, allocations: 0 / 0.4924 GB, free: 4.492 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1313, allocations: 0 / 0.4924 GB, free: 4.492 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001365/0.1314, allocations: 0 / 0.4924 GB, free: 4.492 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.009582/0.141, allocations: 4.172 MB / 0.4965 GB, free: 256 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.1411, allocations: 8.031 kB / 0.4965 GB, free: 248 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003651/0.1447, allocations: 0.754 MB / 0.4972 GB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003317/0.1481, allocations: 2.219 MB / 0.4994 GB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/0.1482, allocations: 234.7 kB / 0.4996 GB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004218/0.1486, allocations: 316 kB / 0.4999 GB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006337/0.155, allocations: 4.161 MB / 0.504 GB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.326e-05/0.1551, allocations: 8 kB / 0.504 GB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002693/0.1553, allocations: 128 kB / 0.5041 GB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001256/0.1555, allocations: 146.3 kB / 0.5043 GB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005245/0.1607, allocations: 3.499 MB / 0.5077 GB, free: 4.672 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01703/0.1778, allocations: 13.21 MB / 0.5206 GB, free: 7.055 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004866/0.1827, allocations: 5.506 MB / 0.526 GB, free: 0.8125 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1891/0.3719, allocations: 1.073 MB / 0.527 GB, free: 65.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004802/0.3767, allocations: 3.042 MB / 0.53 GB, free: 65.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.3767, allocations: 46.34 kB / 0.53 GB, free: 64.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 3.246e-06/0.3768, allocations: 0 / 0.53 GB, free: 64.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.00886/0.3856, allocations: 4.61 MB / 0.5345 GB, free: 63.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.3857, allocations: 62.41 kB / 0.5346 GB, free: 63.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002811/0.3885, allocations: 1.61 MB / 0.5362 GB, free: 63.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.923e-05/0.3886, allocations: 44.89 kB / 0.5362 GB, free: 63.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009207/0.3895, allocations: 1.416 MB / 0.5376 GB, free: 62.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002923/0.3898, allocations: 392.3 kB / 0.538 GB, free: 62.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000428/0.3903, allocations: 272.8 kB / 0.5382 GB, free: 62.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.644e-05/0.3903, allocations: 305.7 kB / 0.5385 GB, free: 62.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009728/0.3913, allocations: 0.5628 MB / 0.5391 GB, free: 62.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001241/0.3926, allocations: 1.064 MB / 0.5401 GB, free: 61.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002222/0.3948, allocations: 1.732 MB / 0.5418 GB, free: 60.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.3948, allocations: 4.125 kB / 0.5418 GB, free: 60.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.0036/0.3984, allocations: 2.035 MB / 0.5438 GB, free: 59.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.109e-05/0.3985, allocations: 15.53 kB / 0.5438 GB, free: 59.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-05/0.3985, allocations: 19.53 kB / 0.5438 GB, free: 59.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004524/0.399, allocations: 134.4 kB / 0.5439 GB, free: 59.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001346/0.4003, allocations: 366.7 kB / 0.5443 GB, free: 59.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002085/0.4024, allocations: 3.37 MB / 0.5476 GB, free: 56.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/0.4039, allocations: 74.39 kB / 0.5477 GB, free: 56.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/0.404, allocations: 68.53 kB / 0.5477 GB, free: 56.44 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.001865/0.4059, allocations: 0.9674 MB / 0.5487 GB, free: 55.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003534/0.4062, allocations: 172.7 kB / 0.5488 GB, free: 55.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003088/0.4093, allocations: 1.808 MB / 0.5506 GB, free: 54.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.092e-05/0.4094, allocations: 11.19 kB / 0.5506 GB, free: 54.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.4094, allocations: 8.719 kB / 0.5506 GB, free: 54.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.4094, allocations: 5.062 kB / 0.5506 GB, free: 54.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005758/0.4152, allocations: 4.348 MB / 0.5549 GB, free: 52.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.4152, allocations: 192 / 0.5549 GB, free: 52.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007794/0.416, allocations: 178 kB / 0.555 GB, free: 52.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007384/0.4167, allocations: 319.2 kB / 0.5553 GB, free: 52.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.88e-05/0.4168, allocations: 27.89 kB / 0.5554 GB, free: 52.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00558/0.4224, allocations: 8.201 MB / 0.5634 GB, free: 44.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.4224, allocations: 1.531 kB / 0.5634 GB, free: 44.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00346/0.4259, allocations: 2.56 MB / 0.5659 GB, free: 43.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007772/0.4267, allocations: 376.2 kB / 0.5662 GB, free: 43.06 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002162/0.4269, allocations: 23.91 kB / 0.5663 GB, free: 43.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007658/0.4277, allocations: 59.55 kB / 0.5663 GB, free: 43.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/0.4279, allocations: 87.55 kB / 0.5664 GB, free: 42.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.884e-05/0.428, allocations: 31.42 kB / 0.5664 GB, free: 42.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00132/0.4293, allocations: 1.094 MB / 0.5675 GB, free: 42.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4293, allocations: 0 / 0.5675 GB, free: 42.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002173/0.4315, allocations: 0.5066 MB / 0.568 GB, free: 42.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.0003502/0.4319, allocations: 164.4 kB / 0.5681 GB, free: 41.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003416/0.4353, allocations: 1.977 MB / 0.5701 GB, free: 39.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.4353, allocations: 384 / 0.5701 GB, free: 39.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001444/0.4368, allocations: 1.22 MB / 0.5713 GB, free: 38.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/0.4389, allocations: 0.5008 MB / 0.5718 GB, free: 38.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00836/0.4473, allocations: 6.717 MB / 0.5783 GB, free: 31.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001328/0.4487, allocations: 2.239 MB / 0.5805 GB, free: 29.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001309/0.45, allocations: 379.2 kB / 0.5809 GB, free: 28.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002686/0.4503, allocations: 119.4 kB / 0.581 GB, free: 28.63 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4503, allocations: 0 / 0.581 GB, free: 28.63 MB / 366.1 MB Notification: Performance of Templates: time 0.03747/0.4877, allocations: 25.3 MB / 0.6057 GB, free: 3.609 MB / 366.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)