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.001401/0.001401, allocations: 105.4 kB / 15.7 MB, free: 28 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.487/1.487, 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.001453/0.001454, allocations: 188.5 kB / 289.7 MB, free: 2.305 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03556/0.03556, allocations: 8.794 MB / 348.6 MB, free: 4.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00243/0.00243, allocations: 81.86 kB / 411.3 MB, free: 41.91 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.1488, allocations: 51.57 MB / 462.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.02384/0.1728, allocations: 13.13 MB / 476 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0147/0.1875, allocations: 4.337 MB / 480.4 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004504/0.1921, allocations: 87.62 kB / 480.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005112/0.1973, allocations: 1.017 MB / 481.5 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007463/0.2048, allocations: 1.293 MB / 482.8 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003915/0.2088, allocations: 0.854 MB / 483.6 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009599/0.2184, allocations: 4.043 MB / 487.7 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006134/0.2246, allocations: 3.514 MB / 491.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003692/0.2283, allocations: 1.924 MB / 493.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00397/0.2323, allocations: 2.129 MB / 495.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001185/0.2335, allocations: 0.5273 MB / 495.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002272/0.2358, allocations: 0.7224 MB / 496.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001145/0.237, allocations: 1.142 MB / 497.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002725/0.2397, allocations: 2.175 MB / 499.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008509/0.2483, allocations: 6.89 MB / 0.4948 GB, free: 2.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.498e-06/0.2483, allocations: 0 / 0.4948 GB, free: 2.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.2483, allocations: 3.938 kB / 0.4948 GB, free: 2.168 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002197/0.2486, allocations: 0 / 0.4948 GB, free: 2.168 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.0137/0.2623, allocations: 4.442 MB / 0.4992 GB, free: 13.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.2623, allocations: 8.031 kB / 0.4992 GB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001042/0.2634, allocations: 0.5189 MB / 0.4997 GB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004433/0.2678, allocations: 0.8241 MB / 0.5005 GB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005523/0.2734, allocations: 2.469 MB / 0.5029 GB, free: 9.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002694/0.2737, allocations: 259 kB / 0.5031 GB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00115/0.2748, allocations: 331.8 kB / 0.5035 GB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009117/0.284, allocations: 4.519 MB / 0.5079 GB, free: 4.621 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.632e-05/0.2841, allocations: 7.906 kB / 0.5079 GB, free: 4.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003354/0.2844, allocations: 136 kB / 0.508 GB, free: 4.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001617/0.2846, allocations: 154.7 kB / 0.5082 GB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008053/0.2927, allocations: 3.813 MB / 0.5119 GB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02446/0.3172, allocations: 14.02 MB / 0.5256 GB, free: 2.062 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2499/0.567, allocations: 6.131 MB / 0.5316 GB, free: 59.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002282/0.5694, allocations: 1.202 MB / 0.5327 GB, free: 59.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005754/0.5751, allocations: 3.304 MB / 0.536 GB, free: 59.1 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/0.5752, allocations: 50.61 kB / 0.536 GB, free: 59.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.106e-06/0.5752, allocations: 1.938 kB / 0.536 GB, free: 59.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01086/0.5861, allocations: 5.225 MB / 0.5411 GB, free: 57.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.5862, allocations: 68.72 kB / 0.5412 GB, free: 57.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003111/0.5893, allocations: 1.687 MB / 0.5428 GB, free: 57.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001605/0.5895, allocations: 46.7 kB / 0.5429 GB, free: 57.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001055/0.5905, allocations: 1.499 MB / 0.5443 GB, free: 56.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004276/0.591, allocations: 413.7 kB / 0.5447 GB, free: 56.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005325/0.5915, allocations: 299.5 kB / 0.545 GB, free: 56.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.901e-05/0.5916, allocations: 301.1 kB / 0.5453 GB, free: 55.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.5928, allocations: 0.6238 MB / 0.5459 GB, free: 55.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001356/0.5941, allocations: 1.128 MB / 0.547 GB, free: 54.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002554/0.5967, allocations: 1.871 MB / 0.5488 GB, free: 53.4 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.399e-05/0.5967, allocations: 8.828 kB / 0.5488 GB, free: 53.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004507/0.6012, allocations: 2.187 MB / 0.551 GB, free: 52.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.135e-05/0.6013, allocations: 13.97 kB / 0.551 GB, free: 52.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.764e-05/0.6014, allocations: 16.38 kB / 0.551 GB, free: 52.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004801/0.6019, allocations: 137.5 kB / 0.5511 GB, free: 52.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001633/0.6035, allocations: 395.2 kB / 0.5515 GB, free: 52.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002748/0.6063, allocations: 3.36 MB / 0.5548 GB, free: 49.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001682/0.608, allocations: 78.44 kB / 0.5549 GB, free: 49.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002298/0.6082, allocations: 72.09 kB / 0.5549 GB, free: 49.1 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.002294/0.6105, allocations: 1.04 MB / 0.556 GB, free: 48.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000567/0.6111, allocations: 181.4 kB / 0.5561 GB, free: 48.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00357/0.6147, allocations: 2.045 MB / 0.5581 GB, free: 47.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.6147, allocations: 15.88 kB / 0.5581 GB, free: 47.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.006e-05/0.6147, allocations: 7.906 kB / 0.5582 GB, free: 47.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.6148, allocations: 3.656 kB / 0.5582 GB, free: 47.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009937/0.6247, allocations: 4.777 MB / 0.5628 GB, free: 44.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.6247, allocations: 0.7969 kB / 0.5628 GB, free: 44.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007128/0.6255, allocations: 163.1 kB / 0.563 GB, free: 44.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.6266, allocations: 444.5 kB / 0.5634 GB, free: 44.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.636e-05/0.6267, allocations: 35.23 kB / 0.5634 GB, free: 44.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008298/0.635, allocations: 11.07 MB / 0.5742 GB, free: 34.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.6351, allocations: 4.062 kB / 0.5742 GB, free: 34.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004368/0.6394, allocations: 2.877 MB / 0.5771 GB, free: 32.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/0.6405, allocations: 392.3 kB / 0.5774 GB, free: 31.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004955/0.641, allocations: 28 kB / 0.5775 GB, free: 31.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001103/0.6421, allocations: 71.88 kB / 0.5775 GB, free: 31.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000303/0.6424, allocations: 96.64 kB / 0.5776 GB, free: 31.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.433e-05/0.6425, allocations: 35.98 kB / 0.5777 GB, free: 31.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002224/0.6447, allocations: 1.15 MB / 0.5788 GB, free: 30.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.6448, allocations: 0 / 0.5788 GB, free: 30.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002795/0.6476, allocations: 0.543 MB / 0.5793 GB, free: 29.71 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.004553/0.6521, allocations: 3.472 MB / 0.5827 GB, free: 26.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003046/0.6552, allocations: 1.844 MB / 0.5845 GB, free: 24.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.6552, allocations: 0 / 0.5845 GB, free: 24.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002163/0.6574, allocations: 1.487 MB / 0.5859 GB, free: 22.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003493/0.6609, allocations: 0.5385 MB / 0.5865 GB, free: 22.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03124/0.6922, allocations: 18.86 MB / 0.6049 GB, free: 2.648 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002693/0.6949, allocations: 2.367 MB / 0.6072 GB, free: 272 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001626/0.6966, allocations: 390.4 kB / 0.6076 GB, free: 15.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002081/0.6987, allocations: 1.148 MB / 0.6087 GB, free: 14.75 MB / 382.1 MB Notification: Performance of SimCode: time 2.204e-06/0.6987, allocations: 0 / 0.6087 GB, free: 14.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1066/0.8053, allocations: 49.75 MB / 0.6573 GB, free: 13.37 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/13.43, allocations: 3.859 kB / 0.6573 GB, free: 13.37 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)