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.001045/0.001045, allocations: 105.6 kB / 16.35 MB, free: 5.824 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.342/1.342, allocations: 222.9 MB / 240 MB, free: 4.5 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.002206/0.002206, allocations: 188.5 kB / 290.3 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03537/0.03537, allocations: 8.793 MB / 349.3 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002611/0.002611, allocations: 78.38 kB / 412.5 MB, free: 41.79 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1089, allocations: 51.58 MB / 464.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01379/0.1228, allocations: 13.38 MB / 477.5 MB, free: 92 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008735/0.1315, allocations: 4.438 MB / 481.9 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001546/0.1331, allocations: 87.69 kB / 482 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002443/0.1356, allocations: 1.021 MB / 483 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003716/0.1393, allocations: 1.307 MB / 484.3 MB, free: 9.207 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.002145/0.1415, allocations: 0.8504 MB / 485.2 MB, free: 8.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005451/0.1469, allocations: 3.809 MB / 489 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003845/0.1508, allocations: 3.347 MB / 492.3 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002404/0.1533, allocations: 1.78 MB / 494.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002342/0.1556, allocations: 2 MB / 496.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000578/0.1562, allocations: 500 kB / 496.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001083/0.1573, allocations: 0.6911 MB / 497.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007836/0.1581, allocations: 1.071 MB / 498.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001814/0.1599, allocations: 2.034 MB / 0.4887 GB, free: 9.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005134/0.1651, allocations: 6.403 MB / 0.4949 GB, free: 2.605 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1651, allocations: 0 / 0.4949 GB, free: 2.605 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1651, allocations: 0 / 0.4949 GB, free: 2.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.782e-05/0.1652, allocations: 0 / 0.4949 GB, free: 2.605 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.009227/0.1744, allocations: 4.183 MB / 0.499 GB, free: 14.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.1745, allocations: 12.03 kB / 0.499 GB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0037/0.1782, allocations: 0.7501 MB / 0.4997 GB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004035/0.1822, allocations: 2.321 MB / 0.502 GB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001505/0.1824, allocations: 234.7 kB / 0.5022 GB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004433/0.1828, allocations: 320 kB / 0.5025 GB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006246/0.1891, allocations: 4.157 MB / 0.5066 GB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.374e-05/0.1892, allocations: 7.922 kB / 0.5066 GB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002701/0.1894, allocations: 128 kB / 0.5067 GB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000121/0.1896, allocations: 146.3 kB / 0.5069 GB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005489/0.1951, allocations: 3.495 MB / 0.5103 GB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01923/0.2143, allocations: 13.04 MB / 0.523 GB, free: 5.227 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1824/0.3968, allocations: 5.499 MB / 0.5284 GB, free: 63.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001914/0.3987, allocations: 1.075 MB / 0.5294 GB, free: 63.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005708/0.4045, allocations: 3.034 MB / 0.5324 GB, free: 62.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.4046, allocations: 42.72 kB / 0.5324 GB, free: 62.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 3.597e-06/0.4046, allocations: 2.344 kB / 0.5324 GB, free: 62.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.008795/0.4134, allocations: 4.615 MB / 0.5369 GB, free: 61.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.032e-05/0.4134, allocations: 64.09 kB / 0.537 GB, free: 61.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00244/0.4159, allocations: 1.604 MB / 0.5386 GB, free: 61.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.503e-05/0.416, allocations: 46.55 kB / 0.5386 GB, free: 61.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008566/0.4169, allocations: 1.422 MB / 0.54 GB, free: 60.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002512/0.4171, allocations: 391.6 kB / 0.5404 GB, free: 60.31 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003921/0.4175, allocations: 271.1 kB / 0.5406 GB, free: 60.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.987e-05/0.4176, allocations: 302.9 kB / 0.5409 GB, free: 59.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009474/0.4185, allocations: 0.5658 MB / 0.5415 GB, free: 59.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001141/0.4197, allocations: 1.071 MB / 0.5425 GB, free: 59.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00212/0.4218, allocations: 1.724 MB / 0.5442 GB, free: 58.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.09e-05/0.4218, allocations: 4.562 kB / 0.5442 GB, free: 58.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003226/0.4251, allocations: 2.046 MB / 0.5462 GB, free: 57.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/0.4251, allocations: 11.06 kB / 0.5462 GB, free: 57.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.216e-05/0.4251, allocations: 15.91 kB / 0.5462 GB, free: 57.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003676/0.4255, allocations: 132.8 kB / 0.5464 GB, free: 57.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/0.4268, allocations: 362.4 kB / 0.5467 GB, free: 57.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002202/0.429, allocations: 3.379 MB / 0.55 GB, free: 54.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/0.4304, allocations: 72.84 kB / 0.5501 GB, free: 54.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.4305, allocations: 65.44 kB / 0.5501 GB, free: 54.03 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.001649/0.4322, allocations: 0.9674 MB / 0.5511 GB, free: 53.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002681/0.4325, allocations: 174 kB / 0.5513 GB, free: 53.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003031/0.4355, allocations: 1.807 MB / 0.553 GB, free: 52.47 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.487e-06/0.4355, allocations: 8.406 kB / 0.553 GB, free: 52.47 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.4355, allocations: 11.88 kB / 0.553 GB, free: 52.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.4355, allocations: 7.688 kB / 0.553 GB, free: 52.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005606/0.4412, allocations: 4.346 MB / 0.5573 GB, free: 50.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.4412, allocations: 3.969 kB / 0.5573 GB, free: 50.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007729/0.442, allocations: 179.1 kB / 0.5575 GB, free: 50.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007172/0.4427, allocations: 307.3 kB / 0.5578 GB, free: 50.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.959e-05/0.4428, allocations: 34.12 kB / 0.5578 GB, free: 50.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005503/0.4483, allocations: 8.199 MB / 0.5658 GB, free: 42.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.4483, allocations: 3.969 kB / 0.5658 GB, free: 42.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003378/0.4517, allocations: 2.558 MB / 0.5683 GB, free: 40.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006248/0.4523, allocations: 375.1 kB / 0.5687 GB, free: 40.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/0.4525, allocations: 24.47 kB / 0.5687 GB, free: 40.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007105/0.4532, allocations: 59.52 kB / 0.5687 GB, free: 40.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.4534, allocations: 88.61 kB / 0.5688 GB, free: 40.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.049e-05/0.4535, allocations: 33.69 kB / 0.5689 GB, free: 40.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001219/0.4547, allocations: 1.096 MB / 0.5699 GB, free: 39.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4547, allocations: 0 / 0.5699 GB, free: 39.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001763/0.4565, allocations: 0.5071 MB / 0.5704 GB, free: 39.79 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.0002604/0.4567, allocations: 161.1 kB / 0.5706 GB, free: 39.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002121/0.4589, allocations: 1.714 MB / 0.5722 GB, free: 37.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4589, allocations: 0 / 0.5722 GB, free: 37.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001363/0.4603, allocations: 1.229 MB / 0.5734 GB, free: 36.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001622/0.4619, allocations: 0.4976 MB / 0.5739 GB, free: 36.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007174/0.4691, allocations: 5.361 MB / 0.5792 GB, free: 30.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/0.4705, allocations: 2.242 MB / 0.5814 GB, free: 28.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001129/0.4716, allocations: 373.5 kB / 0.5817 GB, free: 28.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002785/0.4719, allocations: 119.4 kB / 0.5818 GB, free: 28.03 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4719, allocations: 0 / 0.5818 GB, free: 28.03 MB / 366.1 MB Notification: Performance of Templates: time 0.03617/0.5081, allocations: 25.33 MB / 0.6066 GB, free: 2.992 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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1)