Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.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_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Steinmetz,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz",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.001411/0.001411, 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.501/1.501, allocations: 222.9 MB / 239.3 MB, free: 4.598 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.001253/0.001253, allocations: 192.5 kB / 289.6 MB, free: 2.316 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0349/0.0349, allocations: 8.785 MB / 348.5 MB, free: 4.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 81.44 kB / 411.2 MB, free: 41.97 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09751/0.09905, allocations: 51.57 MB / 462.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01565/0.1147, allocations: 13.58 MB / 476.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008518/0.1233, allocations: 4.446 MB / 480.8 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002098/0.1254, allocations: 79.69 kB / 480.9 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002912/0.1284, allocations: 0.9822 MB / 481.8 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003987/0.1324, allocations: 1.297 MB / 483.1 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002252/0.1347, allocations: 0.8905 MB / 484 MB, free: 8.914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004609/0.1393, allocations: 4.155 MB / 488.2 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003797/0.1431, allocations: 3.19 MB / 491.4 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002366/0.1455, allocations: 1.896 MB / 493.3 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002747/0.1482, allocations: 2.07 MB / 495.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001288/0.1495, allocations: 0.5078 MB / 495.8 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00181/0.1514, allocations: 0.7185 MB / 496.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008924/0.1523, allocations: 1.098 MB / 497.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00217/0.1544, allocations: 2.139 MB / 499.8 MB, free: 9.023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005439/0.1599, allocations: 6.637 MB / 0.4946 GB, free: 2.367 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1599, allocations: 0 / 0.4946 GB, free: 2.367 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1599, allocations: 0 / 0.4946 GB, free: 2.367 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001061/0.16, allocations: 7.938 kB / 0.4946 GB, free: 2.359 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: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.009995/0.17, allocations: 4.406 MB / 0.4989 GB, free: 13.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.1701, allocations: 12.03 kB / 0.4989 GB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005637/0.1707, allocations: 471.9 kB / 0.4993 GB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003929/0.1746, allocations: 0.8162 MB / 0.5001 GB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003733/0.1783, allocations: 2.381 MB / 0.5025 GB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001824/0.1785, allocations: 246.9 kB / 0.5027 GB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004683/0.179, allocations: 331.8 kB / 0.503 GB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006964/0.186, allocations: 4.314 MB / 0.5072 GB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.692e-05/0.1861, allocations: 11.91 kB / 0.5072 GB, free: 5.191 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002901/0.1864, allocations: 132 kB / 0.5074 GB, free: 5.062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000149/0.1865, allocations: 150.5 kB / 0.5075 GB, free: 4.914 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005558/0.1921, allocations: 3.602 MB / 0.511 GB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02098/0.2131, allocations: 13.84 MB / 0.5245 GB, free: 3.094 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2562/0.4694, allocations: 6.627 MB / 0.531 GB, free: 60.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002847/0.4723, allocations: 1.383 MB / 0.5324 GB, free: 60.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006732/0.479, allocations: 3.67 MB / 0.5359 GB, free: 59.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001554/0.4806, allocations: 0.9434 MB / 0.5369 GB, free: 59.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=143): time 4.258e-06/0.4806, allocations: 0 / 0.5369 GB, free: 59.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=146): time 0.01233/0.493, allocations: 5.987 MB / 0.5427 GB, free: 57.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.211e-05/0.4931, allocations: 229.7 kB / 0.5429 GB, free: 57.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002719/0.4958, allocations: 1.786 MB / 0.5447 GB, free: 57.31 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001066/0.496, allocations: 53.42 kB / 0.5447 GB, free: 57.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001147/0.4971, allocations: 1.47 MB / 0.5462 GB, free: 56.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003181/0.4974, allocations: 0.4943 MB / 0.5466 GB, free: 55.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000469/0.4979, allocations: 345.9 kB / 0.547 GB, free: 55.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.498e-05/0.498, allocations: 302.1 kB / 0.5473 GB, free: 55.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.499, allocations: 0.6921 MB / 0.5479 GB, free: 55.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001306/0.5003, allocations: 1.354 MB / 0.5493 GB, free: 53.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002501/0.5028, allocations: 2.119 MB / 0.5513 GB, free: 52.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.211e-05/0.5029, allocations: 5.781 kB / 0.5513 GB, free: 52.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004347/0.5072, allocations: 2.636 MB / 0.5539 GB, free: 51.37 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.973e-05/0.5073, allocations: 15.78 kB / 0.5539 GB, free: 51.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.722e-05/0.5073, allocations: 15.81 kB / 0.5539 GB, free: 51.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008862/0.5082, allocations: 369.3 kB / 0.5543 GB, free: 51.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.5094, allocations: 400.5 kB / 0.5547 GB, free: 51.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005871/0.5153, allocations: 8.442 MB / 0.5629 GB, free: 43.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001841/0.5172, allocations: 94.53 kB / 0.563 GB, free: 43.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/0.5173, allocations: 85.98 kB / 0.5631 GB, free: 43.88 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,rmsI[3].mean.y_last,$PRE.rmsI[3].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[1].mean.y_last,$PRE.rmsI[1].mean.y_last,idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002107/0.5194, allocations: 1.038 MB / 0.5641 GB, free: 43.17 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004458/0.5199, allocations: 196.8 kB / 0.5643 GB, free: 43.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003706/0.5236, allocations: 2.345 MB / 0.5666 GB, free: 41.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.5236, allocations: 14.47 kB / 0.5666 GB, free: 41.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.5236, allocations: 8.281 kB / 0.5666 GB, free: 41.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.358e-05/0.5236, allocations: 7.969 kB / 0.5666 GB, free: 41.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00704/0.5307, allocations: 5.134 MB / 0.5716 GB, free: 37.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.5307, allocations: 4 kB / 0.5716 GB, free: 37.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006944/0.5314, allocations: 172 kB / 0.5718 GB, free: 37.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00121/0.5326, allocations: 0.5317 MB / 0.5723 GB, free: 37.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/0.5327, allocations: 50.11 kB / 0.5724 GB, free: 37.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009727/0.5425, allocations: 13.25 MB / 0.5853 GB, free: 23.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.5425, allocations: 4 kB / 0.5853 GB, free: 23.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004449/0.547, allocations: 3.283 MB / 0.5885 GB, free: 19.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001062/0.5481, allocations: 430.6 kB / 0.5889 GB, free: 19.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000264/0.5483, allocations: 51.86 kB / 0.589 GB, free: 19.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008364/0.5492, allocations: 59.95 kB / 0.589 GB, free: 19.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003165/0.5495, allocations: 105.2 kB / 0.5891 GB, free: 19.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.232e-05/0.5496, allocations: 56.77 kB / 0.5892 GB, free: 19.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001575/0.5512, allocations: 1.215 MB / 0.5904 GB, free: 17.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5512, allocations: 0 / 0.5904 GB, free: 17.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002387/0.5536, allocations: 0.5964 MB / 0.591 GB, free: 17.24 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (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,quadraticLoadTorque.phi,cRun.v,cStart.v,rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control,idealOpener.control,rmsI[1].mean.y_last,rmsI[2].mean.y_last,rmsI[3].mean.y_last) * Number of discrete states: 3 (rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,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.004316/0.5579, allocations: 3.901 MB / 0.5948 GB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004596/0.5625, allocations: 2.826 MB / 0.5975 GB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.5625, allocations: 7.938 kB / 0.5975 GB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002075/0.5646, allocations: 1.764 MB / 0.5993 GB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00268/0.5673, allocations: 0.5469 MB / 0.5998 GB, free: 7.992 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03243/0.5998, allocations: 23.17 MB / 0.6224 GB, free: 14.92 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002073/0.6019, allocations: 2.335 MB / 0.6247 GB, free: 12.56 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001543/0.6034, allocations: 417.3 kB / 0.6251 GB, free: 12.15 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001377/0.6048, allocations: 1.151 MB / 0.6262 GB, free: 11 MB / 398.1 MB Notification: Performance of SimCode: time 8.41e-07/0.6048, allocations: 0 / 0.6262 GB, free: 11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1188/0.7236, allocations: 53.79 MB / 0.6787 GB, free: 5.586 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/10.98, allocations: 12 kB / 0.6788 GB, free: 5.574 MB / 446.1 MB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_InductionMachines_IMC_Steinmetz.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)