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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.33/1.33, allocations: 223.3 MB / 239 MB, free: 5.457 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.001007/0.001007, allocations: 176.5 kB / 290.3 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03378/0.03378, allocations: 8.781 MB / 350.1 MB, free: 4.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003812/0.0003813, allocations: 14.59 kB / 413.3 MB, free: 42.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09488/0.09528, allocations: 52.56 MB / 465.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01403/0.1093, allocations: 11.78 MB / 477.6 MB, free: 1.566 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008741/0.1181, allocations: 4.098 MB / 481.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002602/0.1207, allocations: 79.62 kB / 481.8 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002998/0.1238, allocations: 0.7691 MB / 482.6 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003771/0.1276, allocations: 1.057 MB / 483.6 MB, free: 11.54 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.002042/0.1296, allocations: 0.5924 MB / 484.2 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005061/0.1347, allocations: 3.779 MB / 488 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003999/0.1387, allocations: 2.29 MB / 490.3 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002131/0.1409, allocations: 1.23 MB / 491.5 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001932/0.1428, allocations: 1.517 MB / 493 MB, free: 2.066 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003339/0.1431, allocations: 200 kB / 493.2 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009499/0.1441, allocations: 395.7 kB / 493.6 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005764/0.1447, allocations: 0.7122 MB / 494.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008192/0.1455, allocations: 0.7148 MB / 495 MB, free: 48 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004546/0.1501, allocations: 5.243 MB / 0.4886 GB, free: 10.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1501, allocations: 0 / 0.4886 GB, free: 10.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1501, allocations: 0 / 0.4886 GB, free: 10.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001106/0.1502, allocations: 0 / 0.4886 GB, free: 10.79 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.007775/0.158, allocations: 3.575 MB / 0.492 GB, free: 7.145 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.1581, allocations: 12.03 kB / 0.4921 GB, free: 7.133 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008706/0.1589, allocations: 489.4 kB / 0.4925 GB, free: 6.641 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003515/0.1625, allocations: 0.757 MB / 0.4933 GB, free: 5.879 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003492/0.166, allocations: 2.168 MB / 0.4954 GB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001583/0.1661, allocations: 238.3 kB / 0.4956 GB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004481/0.1666, allocations: 312 kB / 0.4959 GB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006878/0.1735, allocations: 4.15 MB / 0.5 GB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.473e-05/0.1736, allocations: 7.906 kB / 0.5 GB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002618/0.1738, allocations: 131.9 kB / 0.5001 GB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000137/0.174, allocations: 138.3 kB / 0.5002 GB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00567/0.1797, allocations: 3.499 MB / 0.5036 GB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01732/0.197, allocations: 13.25 MB / 0.5166 GB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004607/0.2016, allocations: 5.509 MB / 0.522 GB, free: 7.234 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001653/0.2033, allocations: 1.095 MB / 0.523 GB, free: 6.141 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004862/0.2082, allocations: 3.052 MB / 0.526 GB, free: 3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.422e-05/0.2083, allocations: 51.5 kB / 0.5261 GB, free: 2.941 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 2.434e-06/0.2083, allocations: 4 kB / 0.5261 GB, free: 2.938 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.2294/0.4377, allocations: 4.67 MB / 0.5306 GB, free: 64.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.141e-05/0.4377, allocations: 72.38 kB / 0.5307 GB, free: 63.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00221/0.4399, allocations: 1.589 MB / 0.5322 GB, free: 63.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.4401, allocations: 43.7 kB / 0.5323 GB, free: 63.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008304/0.4409, allocations: 1.419 MB / 0.5337 GB, free: 63.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002566/0.4412, allocations: 390.8 kB / 0.534 GB, free: 62.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.538e-05/0.4412, allocations: 32.19 kB / 0.5341 GB, free: 62.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.4413, allocations: 362.2 kB / 0.5344 GB, free: 62.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000876/0.4422, allocations: 0.5733 MB / 0.535 GB, free: 62.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/0.4434, allocations: 1.059 MB / 0.536 GB, free: 61.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001229/0.4447, allocations: 0.768 MB / 0.5368 GB, free: 61.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/0.4447, allocations: 4.812 kB / 0.5368 GB, free: 61.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.00329/0.448, allocations: 2.04 MB / 0.5388 GB, free: 61.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/0.448, allocations: 18.2 kB / 0.5388 GB, free: 61.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.476e-05/0.448, allocations: 15.91 kB / 0.5388 GB, free: 61.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003718/0.4484, allocations: 134.9 kB / 0.5389 GB, free: 61.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/0.4498, allocations: 369.9 kB / 0.5393 GB, free: 61.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002105/0.4519, allocations: 3.091 MB / 0.5423 GB, free: 58.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.453, allocations: 76.61 kB / 0.5424 GB, free: 58.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.4531, allocations: 69.14 kB / 0.5424 GB, free: 58.87 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 (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.001743/0.4549, allocations: 0.9618 MB / 0.5434 GB, free: 58.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002631/0.4551, allocations: 169.2 kB / 0.5435 GB, free: 58.63 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003408/0.4586, allocations: 1.825 MB / 0.5453 GB, free: 58.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.3e-05/0.4586, allocations: 11.41 kB / 0.5453 GB, free: 58.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.4586, allocations: 4.219 kB / 0.5453 GB, free: 58.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.664e-05/0.4586, allocations: 6.062 kB / 0.5453 GB, free: 58.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006446/0.4651, allocations: 4.368 MB / 0.5496 GB, free: 56.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.4651, allocations: 1 kB / 0.5496 GB, free: 56.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008023/0.4659, allocations: 190.5 kB / 0.5498 GB, free: 56.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007706/0.4667, allocations: 308.1 kB / 0.5501 GB, free: 56.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.891e-05/0.4668, allocations: 29.62 kB / 0.5501 GB, free: 56.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005509/0.4723, allocations: 7.486 MB / 0.5574 GB, free: 49.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.4723, allocations: 0 / 0.5574 GB, free: 49.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003382/0.4757, allocations: 2.579 MB / 0.5599 GB, free: 48.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006138/0.4763, allocations: 367.4 kB / 0.5603 GB, free: 47.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001845/0.4765, allocations: 27.44 kB / 0.5603 GB, free: 47.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000659/0.4772, allocations: 66.72 kB / 0.5604 GB, free: 47.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.4773, allocations: 82.02 kB / 0.5605 GB, free: 47.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.907e-05/0.4774, allocations: 31.61 kB / 0.5605 GB, free: 47.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001714/0.4791, allocations: 1.08 MB / 0.5615 GB, free: 47.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.4791, allocations: 0 / 0.5615 GB, free: 47.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002148/0.4813, allocations: 0.5098 MB / 0.562 GB, free: 47.39 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 (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.003637/0.4849, allocations: 3.176 MB / 0.5651 GB, free: 45.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002569/0.4875, allocations: 1.734 MB / 0.5668 GB, free: 44.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4875, allocations: 0 / 0.5668 GB, free: 44.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.489, allocations: 1.222 MB / 0.568 GB, free: 43.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001844/0.4909, allocations: 491.8 kB / 0.5685 GB, free: 43.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0248/0.5157, allocations: 14.87 MB / 0.583 GB, free: 27.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002109/0.5178, allocations: 2.229 MB / 0.5852 GB, free: 25.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001438/0.5193, allocations: 375.3 kB / 0.5856 GB, free: 25.01 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001242/0.5205, allocations: 1.108 MB / 0.5866 GB, free: 23.9 MB / 366.1 MB Notification: Performance of SimCode: time 1.943e-06/0.5206, allocations: 6.844 kB / 0.5866 GB, free: 23.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06945/0.59, allocations: 43.67 MB / 0.6293 GB, free: 12.62 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/0.5903, allocations: 200.2 kB / 0.6295 GB, free: 12.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.572/3.163, allocations: 0 / 0.6295 GB, free: 12.38 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1) Environment - environmentSimulation: