Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.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: "" <> buildModelFMU(HanserModelica.InductionMachines.IMS_Characteristics1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMS_Characteristics1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1",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.00627/0.00627, allocations: 101 kB / 15.73 MB, free: 6.059 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.535/1.535, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.001604/0.001604, allocations: 184.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03751/0.03751, allocations: 8.799 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002281/0.002281, allocations: 75.88 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1226, allocations: 51.57 MB / 0.5029 GB, free: 9.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.2759/0.3986, allocations: 27.01 MB / 0.5293 GB, free: 4.367 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01734/0.416, allocations: 8.05 MB / 0.5372 GB, free: 4.254 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006937/0.423, allocations: 202.6 kB / 0.5373 GB, free: 4.254 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02231/0.4453, allocations: 9.312 MB / 0.5464 GB, free: 3.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01412/0.4595, allocations: 3.321 MB / 0.5497 GB, free: 2.152 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006544/0.466, allocations: 1.81 MB / 0.5515 GB, free: 2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02004/0.4861, allocations: 12.14 MB / 0.5633 GB, free: 12.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04615/0.5323, allocations: 24.4 MB / 0.5871 GB, free: 9.695 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01494/0.5473, allocations: 6.448 MB / 0.5934 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01544/0.5628, allocations: 7.17 MB / 0.6004 GB, free: 12.42 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006745/0.5696, allocations: 1.844 MB / 0.6022 GB, free: 10.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009557/0.5792, allocations: 2.195 MB / 0.6044 GB, free: 8.387 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007524/0.5867, allocations: 3.615 MB / 0.6079 GB, free: 4.816 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01792/0.6047, allocations: 6.92 MB / 0.6147 GB, free: 13.92 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03781/0.6426, allocations: 24.79 MB / 0.6389 GB, free: 5.535 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.085e-05/0.6426, allocations: 0 / 0.6389 GB, free: 5.535 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.6427, allocations: 0 / 0.6389 GB, free: 5.535 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001135/0.6438, allocations: 0 / 0.6389 GB, free: 5.535 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.05868/0.7025, allocations: 14.75 MB / 0.6533 GB, free: 6.781 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.728e-05/0.7026, allocations: 8.031 kB / 0.6533 GB, free: 6.773 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007799/0.7104, allocations: 1.79 MB / 0.655 GB, free: 4.984 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04995/0.7604, allocations: 8.54 MB / 0.6634 GB, free: 12.54 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0206/0.781, allocations: 7.659 MB / 0.6708 GB, free: 4.84 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009585/0.782, allocations: 0.8069 MB / 0.6716 GB, free: 4.047 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006273/0.7883, allocations: 1.062 MB / 0.6727 GB, free: 3 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06068/0.849, allocations: 18.29 MB / 0.6905 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005025/0.8496, allocations: 19.89 kB / 0.6906 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00589/0.8555, allocations: 445.2 kB / 0.691 GB, free: 260 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000903/0.8564, allocations: 0.675 MB / 0.6916 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04537/0.9018, allocations: 17.54 MB / 0.7088 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6374/1.539, allocations: 58.2 MB / 0.7656 GB, free: 118.1 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02658/1.566, allocations: 37.48 MB / 0.8022 GB, free: 82.38 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006265/1.572, allocations: 4.104 MB / 0.8062 GB, free: 80.22 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000546/1.573, allocations: 193.5 kB / 0.8064 GB, free: 80.09 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.852e-05/1.573, allocations: 89.81 kB / 0.8065 GB, free: 80.01 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=518): time 7.214e-06/1.573, allocations: 0 / 0.8065 GB, free: 80.01 MB / 0.5138 GB Notification: Performance of matching and sorting (n=524): time 0.0554/1.628, allocations: 21.58 MB / 0.8275 GB, free: 66.13 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.608e-05/1.628, allocations: 107.5 kB / 0.8277 GB, free: 66.01 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008474/1.637, allocations: 4.191 MB / 0.8317 GB, free: 61.84 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001065/1.638, allocations: 109.7 kB / 0.8318 GB, free: 61.73 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003019/1.641, allocations: 4.673 MB / 0.8364 GB, free: 57.65 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002503/1.644, allocations: 1.865 MB / 0.8382 GB, free: 55.8 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003076/1.647, allocations: 1.359 MB / 0.8396 GB, free: 54.44 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 8.719e-05/1.647, allocations: 305.1 kB / 0.8399 GB, free: 54.14 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005055/1.652, allocations: 3.441 MB / 0.8432 GB, free: 50.69 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006846/1.659, allocations: 5.883 MB / 0.849 GB, free: 43.71 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01292/1.672, allocations: 10.02 MB / 0.8587 GB, free: 32.53 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001192/1.672, allocations: 27.94 kB / 0.8588 GB, free: 32.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.0201/1.692, allocations: 10.96 MB / 0.8695 GB, free: 21.45 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001049/1.692, allocations: 40 kB / 0.8695 GB, free: 21.41 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001475/1.692, allocations: 76 kB / 0.8696 GB, free: 21.34 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003888/1.696, allocations: 1.433 MB / 0.871 GB, free: 19.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006167/1.702, allocations: 1.607 MB / 0.8726 GB, free: 18.29 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01588/1.718, allocations: 11.48 MB / 0.8838 GB, free: 6.668 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006851/1.725, allocations: 407.5 kB / 0.8842 GB, free: 6.27 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002514/1.728, allocations: 339.9 kB / 0.8845 GB, free: 5.938 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 354 * 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 (840): * Single equations (assignments): 838 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,40.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01072/1.738, allocations: 4.161 MB / 0.8885 GB, free: 1.762 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002139/1.741, allocations: 0.4891 MB / 0.889 GB, free: 1.27 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02127/1.762, allocations: 8.483 MB / 0.8973 GB, free: 8.68 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01716/1.779, allocations: 7.08 MB / 0.9042 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-05/1.779, allocations: 15.94 kB / 0.9042 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001562/1.779, allocations: 27.89 kB / 0.9043 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0536/1.833, allocations: 18.77 MB / 0.9226 GB, free: 14.61 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.189e-05/1.833, allocations: 0 / 0.9226 GB, free: 14.61 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004883/1.838, allocations: 0.9404 MB / 0.9235 GB, free: 13.67 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004344/1.842, allocations: 1.285 MB / 0.9248 GB, free: 12.38 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001067/1.843, allocations: 112 kB / 0.9249 GB, free: 12.27 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01846/1.862, allocations: 10.18 MB / 0.9348 GB, free: 1.961 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/1.862, allocations: 0 / 0.9348 GB, free: 1.961 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2956/2.158, allocations: 12.29 MB / 0.9468 GB, free: 179.2 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003656/2.161, allocations: 1.186 MB / 0.948 GB, free: 179.1 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001397/2.163, allocations: 92.52 kB / 0.9481 GB, free: 179.1 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003838/2.167, allocations: 274.2 kB / 0.9483 GB, free: 179.1 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001113/2.168, allocations: 347.8 kB / 0.9487 GB, free: 179.1 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003775/2.168, allocations: 145.9 kB / 0.9488 GB, free: 179.1 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.006479/2.175, allocations: 2.819 MB / 0.9515 GB, free: 178.9 MB / 0.5607 GB Notification: Performance of sort global known variables: time 3.8e-07/2.175, allocations: 3.062 kB / 0.9516 GB, free: 178.9 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01073/2.185, allocations: 1.933 MB / 0.9534 GB, free: 178.9 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (ims.rotor.stray.port_p.reference.gamma,speed.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 (499): * Single equations (assignments): 497 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,40.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02448/2.21, allocations: 13.05 MB / 0.9662 GB, free: 173.9 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01452/2.224, allocations: 8.735 MB / 0.9747 GB, free: 170.5 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 9.467e-06/2.225, allocations: 3.875 kB / 0.9747 GB, free: 170.5 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.007399/2.232, allocations: 4.185 MB / 0.9788 GB, free: 168.8 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006846/2.239, allocations: 1.12 MB / 0.9799 GB, free: 168.5 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1084/2.347, allocations: 64.14 MB / 1.043 GB, free: 108.6 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008913/2.356, allocations: 7.009 MB / 1.049 GB, free: 101.6 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005852/2.362, allocations: 2.313 MB / 1.052 GB, free: 99.25 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005994/2.368, allocations: 3.846 MB / 1.055 GB, free: 95.41 MB / 0.5607 GB Notification: Performance of SimCode: time 2.284e-06/2.368, allocations: 0 / 1.055 GB, free: 95.41 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.486/2.854, allocations: 148.9 MB / 1.201 GB, free: 147.1 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.11/23.96, allocations: 0 / 1.201 GB, free: 147.1 MB / 0.5607 GB (rm -f HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_InductionMachines_IMS_Characteristics1.fmu > HanserModelica_HanserModelica.InductionMachines.IMS_Characteristics1.pipe 2>&1)