Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.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_Inverter1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Inverter1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1",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.001561/0.001561, 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.405/1.405, allocations: 222.9 MB / 239.3 MB, free: 4.59 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.00135/0.00135, allocations: 196.5 kB / 289.6 MB, free: 2.309 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03459/0.03459, allocations: 8.789 MB / 348.5 MB, free: 4.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001565, allocations: 81.58 kB / 411.2 MB, free: 41.97 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09825/0.09983, allocations: 51.56 MB / 462.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01414/0.114, allocations: 13.13 MB / 475.9 MB, free: 1.078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009292/0.1233, allocations: 4.33 MB / 480.2 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002318/0.1257, allocations: 87.62 kB / 480.3 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003185/0.1289, allocations: 1.021 MB / 481.3 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004784/0.1338, allocations: 1.29 MB / 482.6 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002679/0.1365, allocations: 0.8629 MB / 483.5 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005852/0.1423, allocations: 4.014 MB / 487.5 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004055/0.1464, allocations: 3.521 MB / 491 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002607/0.149, allocations: 1.92 MB / 492.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00277/0.1518, allocations: 2.117 MB / 495 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000967/0.1528, allocations: 0.5234 MB / 495.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001637/0.1545, allocations: 0.7341 MB / 496.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001268/0.1557, allocations: 1.145 MB / 497.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003128/0.1589, allocations: 2.178 MB / 499.6 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00784/0.1667, allocations: 6.835 MB / 0.4946 GB, free: 2.344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1668, allocations: 0 / 0.4946 GB, free: 2.344 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1668, allocations: 0 / 0.4946 GB, free: 2.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001638/0.167, allocations: 4 kB / 0.4946 GB, free: 2.34 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.01511/0.1821, allocations: 4.442 MB / 0.4989 GB, free: 13.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/0.1821, allocations: 8.031 kB / 0.4989 GB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001165/0.1833, allocations: 0.515 MB / 0.4994 GB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004456/0.1878, allocations: 0.8319 MB / 0.5003 GB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004177/0.192, allocations: 2.395 MB / 0.5026 GB, free: 10 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001773/0.1922, allocations: 255.1 kB / 0.5028 GB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004958/0.1927, allocations: 335.8 kB / 0.5032 GB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007848/0.2005, allocations: 4.512 MB / 0.5076 GB, free: 4.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.373e-05/0.2006, allocations: 7.906 kB / 0.5076 GB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002944/0.2009, allocations: 139.9 kB / 0.5077 GB, free: 4.727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001431/0.2011, allocations: 158.7 kB / 0.5079 GB, free: 4.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007191/0.2083, allocations: 3.813 MB / 0.5116 GB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02784/0.2362, allocations: 14.2 MB / 0.5254 GB, free: 2.133 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1968/0.433, allocations: 6.133 MB / 0.5314 GB, free: 59.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001981/0.435, allocations: 1.205 MB / 0.5326 GB, free: 59.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004878/0.4399, allocations: 3.316 MB / 0.5359 GB, free: 59.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.44, allocations: 49.38 kB / 0.5359 GB, free: 59.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 2.605e-06/0.44, allocations: 0 / 0.5359 GB, free: 59.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01027/0.4503, allocations: 5.23 MB / 0.541 GB, free: 57.92 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.184e-05/0.4503, allocations: 63.41 kB / 0.5411 GB, free: 57.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002789/0.4531, allocations: 1.685 MB / 0.5427 GB, free: 57.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001002/0.4532, allocations: 48.83 kB / 0.5428 GB, free: 57.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001055/0.4543, allocations: 1.491 MB / 0.5442 GB, free: 56.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003052/0.4546, allocations: 421.3 kB / 0.5446 GB, free: 56.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004394/0.4551, allocations: 297.2 kB / 0.5449 GB, free: 56.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.418e-05/0.4551, allocations: 302.6 kB / 0.5452 GB, free: 56.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/0.4562, allocations: 0.6202 MB / 0.5458 GB, free: 56.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.4574, allocations: 1.136 MB / 0.5469 GB, free: 55.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002412/0.4598, allocations: 1.874 MB / 0.5487 GB, free: 54.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.417e-06/0.4598, allocations: 4.312 kB / 0.5487 GB, free: 54.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003928/0.4637, allocations: 2.181 MB / 0.5509 GB, free: 53.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.314e-05/0.4638, allocations: 15 kB / 0.5509 GB, free: 53.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.079e-05/0.4638, allocations: 17.66 kB / 0.5509 GB, free: 53.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004287/0.4643, allocations: 142 kB / 0.551 GB, free: 53.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/0.4658, allocations: 392.6 kB / 0.5514 GB, free: 52.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002155/0.468, allocations: 3.359 MB / 0.5547 GB, free: 49.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001377/0.4694, allocations: 79.36 kB / 0.5548 GB, free: 49.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/0.4695, allocations: 67.3 kB / 0.5548 GB, free: 49.75 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.001867/0.4714, allocations: 1.043 MB / 0.5558 GB, free: 49.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003456/0.4717, allocations: 181.3 kB / 0.556 GB, free: 49.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003113/0.4748, allocations: 2.05 MB / 0.558 GB, free: 48.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.769e-06/0.4749, allocations: 11.84 kB / 0.558 GB, free: 48.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.4749, allocations: 7.938 kB / 0.558 GB, free: 48.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.4749, allocations: 8.312 kB / 0.558 GB, free: 48.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006636/0.4815, allocations: 4.775 MB / 0.5627 GB, free: 45.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.4816, allocations: 5.344 kB / 0.5627 GB, free: 45.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007153/0.4823, allocations: 157.4 kB / 0.5629 GB, free: 45.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001069/0.4834, allocations: 450.1 kB / 0.5633 GB, free: 45.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.779e-05/0.4835, allocations: 35.39 kB / 0.5633 GB, free: 45.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007932/0.4914, allocations: 11.08 MB / 0.5741 GB, free: 35.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.4914, allocations: 0 / 0.5741 GB, free: 35.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004024/0.4955, allocations: 2.877 MB / 0.577 GB, free: 32.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008158/0.4963, allocations: 390.8 kB / 0.5773 GB, free: 32.33 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002347/0.4966, allocations: 31.98 kB / 0.5774 GB, free: 32.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000798/0.4974, allocations: 62.78 kB / 0.5774 GB, free: 32.24 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002454/0.4976, allocations: 100.8 kB / 0.5775 GB, free: 32.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.297e-05/0.4977, allocations: 32 kB / 0.5775 GB, free: 32.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001393/0.4991, allocations: 1.151 MB / 0.5787 GB, free: 30.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4991, allocations: 0 / 0.5787 GB, free: 30.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00186/0.501, allocations: 0.5469 MB / 0.5792 GB, free: 30.42 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.003897/0.5049, allocations: 3.46 MB / 0.5826 GB, free: 26.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003835/0.5087, allocations: 2.12 MB / 0.5847 GB, free: 24.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.5088, allocations: 192 / 0.5847 GB, free: 24.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00211/0.5109, allocations: 1.487 MB / 0.5861 GB, free: 23.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002866/0.5138, allocations: 0.5361 MB / 0.5866 GB, free: 22.65 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02446/0.5382, allocations: 20.95 MB / 0.6071 GB, free: 108 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00227/0.5405, allocations: 2.366 MB / 0.6094 GB, free: 13.72 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00151/0.5421, allocations: 388 kB / 0.6098 GB, free: 13.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001471/0.5436, allocations: 1.144 MB / 0.6109 GB, free: 12.19 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.5436, allocations: 0 / 0.6109 GB, free: 12.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1043/0.6478, allocations: 49.79 MB / 0.6595 GB, free: 10.76 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/11, allocations: 18.25 kB / 0.6595 GB, free: 10.74 MB / 430.1 MB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)