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.001142/0.001142, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 222.9 MB / 239.3 MB, free: 4.641 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.001528/0.001528, allocations: 196.5 kB / 289.6 MB, free: 2.363 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03669/0.03669, allocations: 8.8 MB / 348.5 MB, free: 4.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 78.42 kB / 411.2 MB, free: 42.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09241/0.09428, allocations: 51.57 MB / 462.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Characteristics1): time 0.03021/0.1245, allocations: 27 MB / 489.8 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02105/0.1456, allocations: 8.05 MB / 497.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006985/0.1527, allocations: 199.4 kB / 498 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02434/0.177, allocations: 9.333 MB / 0.4954 GB, free: 1.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01473/0.1918, allocations: 3.304 MB / 0.4987 GB, free: 14.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006934/0.1988, allocations: 1.814 MB / 0.5004 GB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01711/0.2159, allocations: 12.05 MB / 0.5122 GB, free: 348 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2991/0.5151, allocations: 24.48 MB / 0.5361 GB, free: 11.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01261/0.5277, allocations: 6.442 MB / 0.5424 GB, free: 11.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01466/0.5424, allocations: 7.203 MB / 0.5494 GB, free: 10.35 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007116/0.5496, allocations: 1.845 MB / 0.5512 GB, free: 10.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009698/0.5593, allocations: 2.207 MB / 0.5534 GB, free: 10.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007433/0.5668, allocations: 3.612 MB / 0.5569 GB, free: 9.953 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02009/0.5869, allocations: 6.93 MB / 0.5637 GB, free: 8.379 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03101/0.6179, allocations: 24.6 MB / 0.5877 GB, free: 9.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.119e-05/0.618, allocations: 4 kB / 0.5877 GB, free: 9.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.618, allocations: 3.656 kB / 0.5877 GB, free: 9.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008647/0.6189, allocations: 0 / 0.5877 GB, free: 9.719 MB / 382.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.05573/0.6746, allocations: 14.55 MB / 0.6019 GB, free: 11.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.631e-05/0.6747, allocations: 8.031 kB / 0.6019 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008297/0.683, allocations: 1.797 MB / 0.6037 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04934/0.7324, allocations: 8.43 MB / 0.6119 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01953/0.7519, allocations: 7.44 MB / 0.6192 GB, free: 9.844 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001253/0.7533, allocations: 0.8126 MB / 0.62 GB, free: 9.043 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006339/0.7596, allocations: 1.056 MB / 0.621 GB, free: 8 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05633/0.816, allocations: 18.31 MB / 0.6389 GB, free: 5.688 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006085/0.8167, allocations: 15.8 kB / 0.6389 GB, free: 5.672 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005036/0.8217, allocations: 453.8 kB / 0.6393 GB, free: 5.242 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008322/0.8226, allocations: 0.6673 MB / 0.64 GB, free: 4.574 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04363/0.8662, allocations: 17.53 MB / 0.6571 GB, free: 3.035 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5293/1.396, allocations: 58.73 MB / 0.7145 GB, free: 130.7 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03182/1.427, allocations: 37.48 MB / 0.7511 GB, free: 100.3 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006488/1.434, allocations: 4.115 MB / 0.7551 GB, free: 100.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004352/1.434, allocations: 193.3 kB / 0.7553 GB, free: 100.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.669e-05/1.434, allocations: 91.41 kB / 0.7554 GB, free: 100 MB / 494.1 MB Notification: Performance of pre-optimization done (n=518): time 7.294e-06/1.434, allocations: 0 / 0.7554 GB, free: 100 MB / 494.1 MB Notification: Performance of matching and sorting (n=524): time 0.04885/1.483, allocations: 21.45 MB / 0.7763 GB, free: 97.64 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/1.483, allocations: 110.2 kB / 0.7764 GB, free: 97.57 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006271/1.49, allocations: 4.17 MB / 0.7805 GB, free: 96.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008404/1.491, allocations: 115.1 kB / 0.7806 GB, free: 96.39 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002174/1.493, allocations: 4.518 MB / 0.785 GB, free: 93 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00166/1.494, allocations: 1.774 MB / 0.7867 GB, free: 91.64 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001857/1.496, allocations: 1.349 MB / 0.788 GB, free: 91 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.602e-05/1.496, allocations: 301.1 kB / 0.7883 GB, free: 90.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004712/1.501, allocations: 3.443 MB / 0.7917 GB, free: 89.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006235/1.507, allocations: 5.885 MB / 0.7974 GB, free: 85.01 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0139/1.521, allocations: 10.02 MB / 0.8072 GB, free: 77.76 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001064/1.521, allocations: 23.25 kB / 0.8073 GB, free: 77.76 MB / 494.1 MB Notification: Performance of matching and sorting (n=910) (initialization): time 0.02194/1.543, allocations: 10.94 MB / 0.8179 GB, free: 69.79 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.623e-05/1.543, allocations: 40.92 kB / 0.818 GB, free: 69.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001524/1.544, allocations: 81.25 kB / 0.8181 GB, free: 69.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003737/1.547, allocations: 1.426 MB / 0.8194 GB, free: 68.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006202/1.554, allocations: 1.614 MB / 0.821 GB, free: 66.63 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01511/1.569, allocations: 11.47 MB / 0.8322 GB, free: 55.03 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005982/1.575, allocations: 407.3 kB / 0.8326 GB, free: 54.63 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001321/1.576, allocations: 343.9 kB / 0.8329 GB, free: 54.3 MB / 494.1 MB 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.007199/1.583, allocations: 4.174 MB / 0.837 GB, free: 50.11 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001374/1.585, allocations: 478.1 kB / 0.8375 GB, free: 49.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01273/1.597, allocations: 8.478 MB / 0.8458 GB, free: 41.05 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009626/1.607, allocations: 7.08 MB / 0.8527 GB, free: 33.88 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.069e-05/1.607, allocations: 12 kB / 0.8527 GB, free: 33.87 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.917e-05/1.607, allocations: 35.81 kB / 0.8527 GB, free: 33.83 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03307/1.64, allocations: 19.31 MB / 0.8716 GB, free: 14.26 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.8e-05/1.64, allocations: 8.281 kB / 0.8716 GB, free: 14.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003618/1.644, allocations: 0.9362 MB / 0.8725 GB, free: 13.31 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003344/1.647, allocations: 1.285 MB / 0.8738 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005208/1.648, allocations: 112 kB / 0.8739 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01195/1.66, allocations: 10.17 MB / 0.8838 GB, free: 1.625 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/1.66, allocations: 0 / 0.8838 GB, free: 1.625 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02048/1.68, allocations: 12.27 MB / 0.8958 GB, free: 5.148 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004106/1.685, allocations: 1.159 MB / 0.8969 GB, free: 3.965 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001278/1.686, allocations: 99.94 kB / 0.897 GB, free: 3.867 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002981/1.689, allocations: 267.7 kB / 0.8973 GB, free: 3.605 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007642/1.69, allocations: 352.4 kB / 0.8976 GB, free: 3.258 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003027/1.69, allocations: 152 kB / 0.8977 GB, free: 3.109 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.004262/1.694, allocations: 2.811 MB / 0.9005 GB, free: 292 kB / 0.4982 GB Notification: Performance of sort global known variables: time 1.8e-07/1.694, allocations: 0 / 0.9005 GB, free: 292 kB / 0.4982 GB Notification: Performance of remove unused functions: time 0.2479/1.942, allocations: 1.935 MB / 0.9024 GB, free: 157.8 MB / 0.4982 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.021/1.963, allocations: 13.02 MB / 0.9151 GB, free: 156.7 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.04517/2.008, allocations: 20.62 MB / 0.9352 GB, free: 154.5 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/2.008, allocations: 0 / 0.9352 GB, free: 154.5 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007749/2.016, allocations: 4.17 MB / 0.9393 GB, free: 152.8 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006894/2.023, allocations: 1.13 MB / 0.9404 GB, free: 152.4 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1133/2.136, allocations: 75.98 MB / 1.015 GB, free: 78.89 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009282/2.146, allocations: 7.01 MB / 1.021 GB, free: 71.84 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.006831/2.153, allocations: 2.319 MB / 1.024 GB, free: 69.53 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006722/2.159, allocations: 3.838 MB / 1.027 GB, free: 65.69 MB / 0.4982 GB Notification: Performance of SimCode: time 2.064e-06/2.159, allocations: 4 kB / 1.027 GB, free: 65.69 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.434/2.593, allocations: 151 MB / 1.175 GB, free: 90.51 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/14.98, allocations: 3.562 kB / 1.175 GB, free: 90.51 MB / 0.4982 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)