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.001438/0.001438, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.312/1.312, allocations: 222.9 MB / 239 MB, free: 4.723 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.001296/0.001296, allocations: 188.5 kB / 289.3 MB, free: 2.461 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03513/0.03513, allocations: 8.792 MB / 348.2 MB, free: 4.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 77.7 kB / 410.7 MB, free: 42.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0781/0.07956, allocations: 51.56 MB / 462.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01353/0.09312, allocations: 12.99 MB / 475.2 MB, free: 1.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007569/0.1007, allocations: 4.26 MB / 479.5 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00209/0.1029, allocations: 87.62 kB / 479.6 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002672/0.1056, allocations: 0.9097 MB / 480.5 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003629/0.1092, allocations: 1.153 MB / 481.7 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002034/0.1113, allocations: 0.7852 MB / 482.4 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004904/0.1162, allocations: 4.169 MB / 486.6 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00371/0.1199, allocations: 3.522 MB / 490.1 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002199/0.1221, allocations: 1.814 MB / 491.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00244/0.1246, allocations: 2.105 MB / 494 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006645/0.1253, allocations: 0.5195 MB / 494.6 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001305/0.1266, allocations: 0.7263 MB / 495.3 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008909/0.1275, allocations: 1.145 MB / 496.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002099/0.1296, allocations: 2.171 MB / 498.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005839/0.1355, allocations: 6.816 MB / 0.4936 GB, free: 3.258 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1355, allocations: 4 kB / 0.4936 GB, free: 3.254 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1355, allocations: 0 / 0.4936 GB, free: 3.254 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001158/0.1356, allocations: 4 kB / 0.4936 GB, free: 3.25 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.0103/0.1459, allocations: 4.426 MB / 0.4979 GB, free: 14.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.146, allocations: 8.031 kB / 0.4979 GB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008031/0.1468, allocations: 0.5188 MB / 0.4984 GB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004168/0.151, allocations: 0.8279 MB / 0.4992 GB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003775/0.1548, allocations: 2.36 MB / 0.5015 GB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002423/0.155, allocations: 251.1 kB / 0.5018 GB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004774/0.1555, allocations: 343.8 kB / 0.5021 GB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007987/0.1635, allocations: 4.508 MB / 0.5065 GB, free: 5.832 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.362e-05/0.1636, allocations: 3.906 kB / 0.5065 GB, free: 5.828 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003162/0.1639, allocations: 140 kB / 0.5066 GB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001509/0.1641, allocations: 158.7 kB / 0.5068 GB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007157/0.1712, allocations: 3.809 MB / 0.5105 GB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02136/0.1926, allocations: 14.2 MB / 0.5244 GB, free: 3.098 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1593/0.3519, allocations: 6.127 MB / 0.5304 GB, free: 60.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001973/0.354, allocations: 1.196 MB / 0.5315 GB, free: 60.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004535/0.3585, allocations: 3.319 MB / 0.5348 GB, free: 59.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.401e-05/0.3585, allocations: 48.47 kB / 0.5348 GB, free: 59.92 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 2.685e-06/0.3586, allocations: 1.641 kB / 0.5348 GB, free: 59.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.009403/0.368, allocations: 5.224 MB / 0.5399 GB, free: 58.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.301e-05/0.368, allocations: 67.47 kB / 0.54 GB, free: 58.44 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002929/0.371, allocations: 1.688 MB / 0.5416 GB, free: 58.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.05e-05/0.371, allocations: 45.92 kB / 0.5417 GB, free: 58.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001017/0.3721, allocations: 1.495 MB / 0.5431 GB, free: 57.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002691/0.3723, allocations: 418.1 kB / 0.5435 GB, free: 57.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000442/0.3728, allocations: 293.1 kB / 0.5438 GB, free: 57.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.861e-05/0.3729, allocations: 309.4 kB / 0.5441 GB, free: 56.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009998/0.3739, allocations: 0.6233 MB / 0.5447 GB, free: 56.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001218/0.3751, allocations: 1.132 MB / 0.5458 GB, free: 55.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002139/0.3772, allocations: 1.866 MB / 0.5477 GB, free: 54.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.3773, allocations: 4.906 kB / 0.5477 GB, free: 54.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00309/0.3803, allocations: 2.193 MB / 0.5498 GB, free: 53.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.3804, allocations: 11.72 kB / 0.5498 GB, free: 53.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.152e-05/0.3804, allocations: 17.06 kB / 0.5498 GB, free: 53.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003605/0.3808, allocations: 135.8 kB / 0.55 GB, free: 53.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/0.3822, allocations: 392.5 kB / 0.5503 GB, free: 53.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002032/0.3842, allocations: 3.358 MB / 0.5536 GB, free: 50.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.3853, allocations: 81.69 kB / 0.5537 GB, free: 50.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.3854, allocations: 73.19 kB / 0.5538 GB, free: 50.25 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.001436/0.3869, allocations: 1.036 MB / 0.5548 GB, free: 49.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001913/0.3871, allocations: 180.6 kB / 0.5549 GB, free: 49.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00286/0.3899, allocations: 2.049 MB / 0.5569 GB, free: 48.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.3899, allocations: 16.22 kB / 0.557 GB, free: 48.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.39, allocations: 7.969 kB / 0.557 GB, free: 48.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.39, allocations: 8.297 kB / 0.557 GB, free: 48.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00563/0.3956, allocations: 4.781 MB / 0.5616 GB, free: 45.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3956, allocations: 2.656 kB / 0.5616 GB, free: 45.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006893/0.3963, allocations: 160.8 kB / 0.5618 GB, free: 45.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009607/0.3973, allocations: 443.6 kB / 0.5622 GB, free: 45.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.473e-05/0.3974, allocations: 35.42 kB / 0.5623 GB, free: 45.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007169/0.4046, allocations: 11.07 MB / 0.5731 GB, free: 35.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4046, allocations: 3.875 kB / 0.5731 GB, free: 35.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003627/0.4082, allocations: 2.873 MB / 0.5759 GB, free: 32.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005693/0.4088, allocations: 394.7 kB / 0.5763 GB, free: 32.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002077/0.409, allocations: 32.66 kB / 0.5763 GB, free: 32.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007762/0.4098, allocations: 59.95 kB / 0.5763 GB, free: 32.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002088/0.41, allocations: 104.7 kB / 0.5764 GB, free: 32.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-05/0.4101, allocations: 35.98 kB / 0.5765 GB, free: 32.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001278/0.4114, allocations: 1.15 MB / 0.5776 GB, free: 31.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4114, allocations: 0 / 0.5776 GB, free: 31.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001737/0.4131, allocations: 0.5391 MB / 0.5781 GB, free: 30.65 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.00371/0.4168, allocations: 3.473 MB / 0.5815 GB, free: 27.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003269/0.4201, allocations: 2.118 MB / 0.5836 GB, free: 24.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.4201, allocations: 1.75 kB / 0.5836 GB, free: 24.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001719/0.4219, allocations: 1.487 MB / 0.585 GB, free: 23.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001977/0.4239, allocations: 0.5366 MB / 0.5856 GB, free: 22.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03043/0.4543, allocations: 22.26 MB / 0.6073 GB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001976/0.4563, allocations: 2.358 MB / 0.6096 GB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001381/0.4577, allocations: 388 kB / 0.61 GB, free: 12.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001424/0.4591, allocations: 1.149 MB / 0.6111 GB, free: 11.12 MB / 382.1 MB Notification: Performance of SimCode: time 7.22e-07/0.4591, allocations: 0 / 0.6111 GB, free: 11.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08907/0.5482, allocations: 49.59 MB / 0.6595 GB, free: 9.926 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002316/0.5485, allocations: 224 kB / 0.6597 GB, free: 9.664 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.789/3.338, allocations: 0 / 0.6597 GB, free: 9.664 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)