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.007372/0.007372, allocations: 105.5 kB / 15.74 MB, free: 6.02 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.497/1.497, allocations: 222.9 MB / 239.4 MB, free: 4.512 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.001551/0.001551, allocations: 192.5 kB / 289.7 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0368/0.0368, allocations: 8.796 MB / 348.7 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 75.88 kB / 463.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1351, allocations: 51.56 MB / 0.5029 GB, free: 9.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.3574/0.4925, allocations: 27 MB / 0.5293 GB, free: 4.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01762/0.5102, allocations: 8.059 MB / 0.5372 GB, free: 4.293 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008384/0.5186, allocations: 199 kB / 0.5373 GB, free: 4.293 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02172/0.5404, allocations: 9.376 MB / 0.5465 GB, free: 3.109 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01327/0.5537, allocations: 3.371 MB / 0.5498 GB, free: 2.195 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006419/0.5601, allocations: 1.812 MB / 0.5516 GB, free: 2.039 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01991/0.58, allocations: 12.14 MB / 0.5634 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03946/0.6196, allocations: 24.39 MB / 0.5872 GB, free: 9.555 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01264/0.6322, allocations: 6.483 MB / 0.5936 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01495/0.6472, allocations: 7.166 MB / 0.6006 GB, free: 12.25 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006532/0.6538, allocations: 1.844 MB / 0.6024 GB, free: 10.4 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008782/0.6626, allocations: 2.2 MB / 0.6045 GB, free: 8.207 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008367/0.671, allocations: 3.604 MB / 0.608 GB, free: 4.648 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01704/0.6881, allocations: 6.92 MB / 0.6148 GB, free: 13.75 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0341/0.7223, allocations: 24.79 MB / 0.639 GB, free: 5.367 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.395e-06/0.7223, allocations: 3.984 kB / 0.639 GB, free: 5.363 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.7223, allocations: 0 / 0.639 GB, free: 5.363 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006861/0.723, allocations: 0 / 0.639 GB, free: 5.363 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.04968/0.7727, allocations: 14.74 MB / 0.6534 GB, free: 6.621 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.7728, allocations: 12.03 kB / 0.6534 GB, free: 6.609 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008478/0.7813, allocations: 1.785 MB / 0.6551 GB, free: 4.824 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04841/0.8297, allocations: 8.544 MB / 0.6635 GB, free: 12.37 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01843/0.8482, allocations: 7.663 MB / 0.671 GB, free: 4.672 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001035/0.8493, allocations: 0.8068 MB / 0.6718 GB, free: 3.879 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005745/0.855, allocations: 1.058 MB / 0.6728 GB, free: 2.836 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05295/0.908, allocations: 18.29 MB / 0.6907 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000827/0.9089, allocations: 15.89 kB / 0.6907 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005353/0.9143, allocations: 449.2 kB / 0.6911 GB, free: 88 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001055/0.9154, allocations: 0.6749 MB / 0.6918 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04254/0.958, allocations: 17.53 MB / 0.7089 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6008/1.559, allocations: 58.22 MB / 0.7657 GB, free: 118 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02703/1.586, allocations: 37.47 MB / 0.8023 GB, free: 82.3 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006228/1.592, allocations: 4.107 MB / 0.8063 GB, free: 80.14 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004473/1.593, allocations: 192.8 kB / 0.8065 GB, free: 80.02 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.397e-05/1.593, allocations: 84.81 kB / 0.8066 GB, free: 79.94 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=518): time 6.652e-06/1.593, allocations: 4 kB / 0.8066 GB, free: 79.93 MB / 0.5138 GB Notification: Performance of matching and sorting (n=524): time 0.04767/1.64, allocations: 21.58 MB / 0.8277 GB, free: 65.9 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/1.641, allocations: 103.5 kB / 0.8278 GB, free: 65.78 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006161/1.647, allocations: 4.191 MB / 0.8319 GB, free: 61.62 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001033/1.648, allocations: 109.7 kB / 0.832 GB, free: 61.5 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002639/1.65, allocations: 4.67 MB / 0.8365 GB, free: 57.42 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002206/1.653, allocations: 1.869 MB / 0.8384 GB, free: 55.58 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002175/1.655, allocations: 1.359 MB / 0.8397 GB, free: 54.21 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 7.569e-05/1.655, allocations: 313 kB / 0.84 GB, free: 53.9 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006122/1.661, allocations: 3.438 MB / 0.8433 GB, free: 50.46 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01284/1.674, allocations: 5.879 MB / 0.8491 GB, free: 43.49 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01524/1.689, allocations: 10.02 MB / 0.8589 GB, free: 32.3 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001119/1.689, allocations: 24 kB / 0.8589 GB, free: 32.28 MB / 0.5138 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.02276/1.712, allocations: 10.96 MB / 0.8696 GB, free: 21.23 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.000116/1.712, allocations: 41.56 kB / 0.8696 GB, free: 21.19 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001451/1.713, allocations: 76 kB / 0.8697 GB, free: 21.12 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003781/1.716, allocations: 1.43 MB / 0.8711 GB, free: 19.68 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006161/1.722, allocations: 1.611 MB / 0.8727 GB, free: 18.07 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0158/1.738, allocations: 11.48 MB / 0.8839 GB, free: 6.445 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005537/1.744, allocations: 411.5 kB / 0.8843 GB, free: 6.043 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001504/1.745, allocations: 339.9 kB / 0.8846 GB, free: 5.711 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.008651/1.754, allocations: 4.157 MB / 0.8887 GB, free: 1.539 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001754/1.756, allocations: 0.4929 MB / 0.8892 GB, free: 1.043 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0196/1.776, allocations: 8.475 MB / 0.8974 GB, free: 8.461 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01429/1.79, allocations: 7.084 MB / 0.9043 GB, free: 1.281 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.57e-05/1.79, allocations: 12 kB / 0.9044 GB, free: 1.27 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001299/1.79, allocations: 27.89 kB / 0.9044 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04183/1.832, allocations: 18.78 MB / 0.9227 GB, free: 14.39 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.103e-05/1.832, allocations: 4 kB / 0.9227 GB, free: 14.38 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004449/1.836, allocations: 0.9364 MB / 0.9236 GB, free: 13.45 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003879/1.84, allocations: 1.281 MB / 0.9249 GB, free: 12.16 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009061/1.841, allocations: 112 kB / 0.925 GB, free: 12.05 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01589/1.857, allocations: 10.19 MB / 0.935 GB, free: 1.734 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/1.857, allocations: 4 kB / 0.935 GB, free: 1.73 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2923/2.15, allocations: 12.28 MB / 0.9469 GB, free: 179.2 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00379/2.153, allocations: 1.185 MB / 0.9481 GB, free: 179.1 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001973/2.155, allocations: 94 kB / 0.9482 GB, free: 179.1 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004018/2.159, allocations: 273.1 kB / 0.9485 GB, free: 179.1 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001454/2.161, allocations: 350.1 kB / 0.9488 GB, free: 179.1 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000643/2.162, allocations: 149.3 kB / 0.9489 GB, free: 179.1 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.006623/2.168, allocations: 2.818 MB / 0.9517 GB, free: 178.9 MB / 0.5607 GB Notification: Performance of sort global known variables: time 9.61e-07/2.168, allocations: 0 / 0.9517 GB, free: 178.9 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01033/2.179, allocations: 1.932 MB / 0.9536 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.0223/2.201, allocations: 13.06 MB / 0.9663 GB, free: 173.8 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01417/2.215, allocations: 8.734 MB / 0.9749 GB, free: 170.5 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.303e-05/2.215, allocations: 8.344 kB / 0.9749 GB, free: 170.5 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.007036/2.222, allocations: 4.178 MB / 0.9789 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.006275/2.229, allocations: 1.136 MB / 0.98 GB, free: 168.4 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1124/2.341, allocations: 64.14 MB / 1.043 GB, free: 108.3 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01011/2.351, allocations: 7.005 MB / 1.05 GB, free: 101.3 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006881/2.358, allocations: 2.313 MB / 1.052 GB, free: 98.98 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006829/2.365, allocations: 3.842 MB / 1.056 GB, free: 95.13 MB / 0.5607 GB Notification: Performance of SimCode: time 1.263e-06/2.365, allocations: 0 / 1.056 GB, free: 95.13 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4683/2.833, allocations: 148.9 MB / 1.201 GB, free: 146.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.95/23.78, allocations: 0 / 1.201 GB, free: 146.9 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)