Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.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.IMC_Inverter2,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Inverter2,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2",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.001141/0.001141, allocations: 108 kB / 15.61 MB, free: 152 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.534/1.534, allocations: 222.9 MB / 239.3 MB, free: 4.613 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.001631/0.00163, allocations: 199.3 kB / 289.6 MB, free: 2.336 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0346/0.0346, allocations: 8.802 MB / 348.5 MB, free: 4.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001536, allocations: 84.19 kB / 411.2 MB, free: 42.28 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09759/0.09915, allocations: 51.56 MB / 462.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.0151/0.1143, allocations: 13.14 MB / 475.9 MB, free: 1.219 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01013/0.1245, allocations: 4.341 MB / 480.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003446/0.128, allocations: 83.69 kB / 480.3 MB, free: 12.78 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004201/0.1322, allocations: 1.021 MB / 481.3 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005178/0.1375, allocations: 1.288 MB / 482.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002416/0.1399, allocations: 0.8465 MB / 483.5 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005747/0.1456, allocations: 4.025 MB / 487.5 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004278/0.15, allocations: 3.525 MB / 491 MB, free: 1.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003232/0.1532, allocations: 1.916 MB / 492.9 MB, free: 60 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004586/0.1578, allocations: 2.117 MB / 495.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002216/0.1601, allocations: 0.5234 MB / 495.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002891/0.163, allocations: 0.7341 MB / 496.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001236/0.1642, allocations: 1.153 MB / 497.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003843/0.1681, allocations: 2.175 MB / 499.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00857/0.1767, allocations: 6.839 MB / 0.4946 GB, free: 2.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.1768, allocations: 0 / 0.4946 GB, free: 2.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1768, allocations: 0 / 0.4946 GB, free: 2.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000235/0.177, allocations: 0 / 0.4946 GB, free: 2.477 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: 880 * Number of variables: 880 Notification: Performance of Generate backend data structure: time 0.01384/0.1909, allocations: 4.442 MB / 0.499 GB, free: 13.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/0.1909, allocations: 8.031 kB / 0.499 GB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009933/0.1919, allocations: 0.5188 MB / 0.4995 GB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004492/0.1964, allocations: 0.828 MB / 0.5003 GB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00563/0.2021, allocations: 2.399 MB / 0.5026 GB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002754/0.2024, allocations: 255.1 kB / 0.5029 GB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001134/0.2035, allocations: 335.8 kB / 0.5032 GB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01042/0.214, allocations: 4.508 MB / 0.5076 GB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001194/0.2141, allocations: 11.84 kB / 0.5076 GB, free: 4.996 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007723/0.2149, allocations: 143.9 kB / 0.5077 GB, free: 4.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002242/0.2151, allocations: 154.7 kB / 0.5079 GB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008665/0.2238, allocations: 3.813 MB / 0.5116 GB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02591/0.2498, allocations: 14.2 MB / 0.5255 GB, free: 2.266 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2402/0.49, allocations: 6.135 MB / 0.5315 GB, free: 59.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002231/0.4923, allocations: 1.202 MB / 0.5326 GB, free: 59.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005397/0.4977, allocations: 3.313 MB / 0.5359 GB, free: 58.83 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.4978, allocations: 44.66 kB / 0.5359 GB, free: 58.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.437e-06/0.4978, allocations: 3.719 kB / 0.5359 GB, free: 58.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01184/0.5096, allocations: 5.229 MB / 0.541 GB, free: 57.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.058e-05/0.5097, allocations: 64.56 kB / 0.5411 GB, free: 57.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003918/0.5136, allocations: 1.688 MB / 0.5427 GB, free: 57.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000211/0.5139, allocations: 50.02 kB / 0.5428 GB, free: 57.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001493/0.5154, allocations: 1.491 MB / 0.5442 GB, free: 56.35 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004947/0.5159, allocations: 415.4 kB / 0.5446 GB, free: 56.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005114/0.5164, allocations: 293.8 kB / 0.5449 GB, free: 56.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.895e-05/0.5164, allocations: 302 kB / 0.5452 GB, free: 55.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/0.5175, allocations: 0.6263 MB / 0.5458 GB, free: 55.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001481/0.519, allocations: 1.144 MB / 0.5469 GB, free: 54.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002675/0.5217, allocations: 1.861 MB / 0.5487 GB, free: 53.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.369e-05/0.5218, allocations: 4.312 kB / 0.5488 GB, free: 53.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003875/0.5256, allocations: 2.19 MB / 0.5509 GB, free: 52.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.946e-05/0.5257, allocations: 12.16 kB / 0.5509 GB, free: 52.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.379e-05/0.5257, allocations: 16 kB / 0.5509 GB, free: 52.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004084/0.5261, allocations: 138.6 kB / 0.551 GB, free: 52.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/0.5276, allocations: 393.6 kB / 0.5514 GB, free: 52.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002176/0.5298, allocations: 3.364 MB / 0.5547 GB, free: 49.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.5313, allocations: 73.81 kB / 0.5548 GB, free: 49.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001629/0.5314, allocations: 68.03 kB / 0.5548 GB, free: 49.12 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * 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 (196): * Single equations (assignments): 193 * 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.00222/0.5337, allocations: 1.047 MB / 0.5559 GB, free: 48.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005342/0.5342, allocations: 180.6 kB / 0.556 GB, free: 48.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003487/0.5377, allocations: 2.047 MB / 0.558 GB, free: 47.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.5377, allocations: 11.84 kB / 0.5581 GB, free: 47.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.508e-05/0.5378, allocations: 3.938 kB / 0.5581 GB, free: 47.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.5378, allocations: 12.34 kB / 0.5581 GB, free: 47.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00873/0.5465, allocations: 4.782 MB / 0.5627 GB, free: 44.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.5466, allocations: 2.844 kB / 0.5627 GB, free: 44.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007668/0.5473, allocations: 160.3 kB / 0.5629 GB, free: 44.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001158/0.5485, allocations: 445.6 kB / 0.5633 GB, free: 44.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.742e-05/0.5486, allocations: 38.97 kB / 0.5634 GB, free: 44.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008349/0.557, allocations: 11.07 MB / 0.5742 GB, free: 34.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.557, allocations: 0 / 0.5742 GB, free: 34.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004591/0.5616, allocations: 2.873 MB / 0.577 GB, free: 32.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/0.5629, allocations: 396.2 kB / 0.5774 GB, free: 31.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006885/0.5636, allocations: 28 kB / 0.5774 GB, free: 31.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001406/0.565, allocations: 59.95 kB / 0.5774 GB, free: 31.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003372/0.5654, allocations: 105.5 kB / 0.5775 GB, free: 31.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.978e-05/0.5655, allocations: 35.98 kB / 0.5776 GB, free: 31.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002158/0.5677, allocations: 1.155 MB / 0.5787 GB, free: 30.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5677, allocations: 0 / 0.5787 GB, free: 30.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00278/0.5705, allocations: 0.5416 MB / 0.5792 GB, free: 29.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].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 (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,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.004464/0.5749, allocations: 3.475 MB / 0.5826 GB, free: 26.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003761/0.5787, allocations: 2.119 MB / 0.5847 GB, free: 24.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.5788, allocations: 4.188 kB / 0.5847 GB, free: 24.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001946/0.5807, allocations: 1.486 MB / 0.5861 GB, free: 22.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00295/0.5837, allocations: 0.5298 MB / 0.5867 GB, free: 21.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03271/0.6164, allocations: 20.95 MB / 0.6071 GB, free: 15.42 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003579/0.62, allocations: 2.358 MB / 0.6094 GB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001764/0.6218, allocations: 388.1 kB / 0.6098 GB, free: 12.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002098/0.6239, allocations: 1.148 MB / 0.6109 GB, free: 11.51 MB / 382.1 MB Notification: Performance of SimCode: time 1.753e-06/0.624, allocations: 0 / 0.6109 GB, free: 11.51 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1063/0.7302, allocations: 49.79 MB / 0.6595 GB, free: 10.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/10.85, allocations: 11.91 kB / 0.6595 GB, free: 10.05 MB / 430.1 MB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2_res.csv --start-time 0 --stop-time 3.5 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe 2>&1)