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.001083/0.001083, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.325/1.325, allocations: 222.9 MB / 238.9 MB, free: 4.766 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.001499/0.001498, allocations: 196.4 kB / 289.1 MB, free: 2.504 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03448/0.03448, allocations: 8.784 MB / 348.1 MB, free: 4.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 77.86 kB / 410.5 MB, free: 42.38 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08641/0.08783, allocations: 51.56 MB / 462.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01341/0.1013, allocations: 13.01 MB / 475.1 MB, free: 1.707 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007524/0.1088, allocations: 4.291 MB / 479.4 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002132/0.111, allocations: 83.69 kB / 479.4 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002915/0.1139, allocations: 0.8901 MB / 480.3 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003856/0.1178, allocations: 1.169 MB / 481.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0023/0.1202, allocations: 0.8021 MB / 482.3 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005501/0.1257, allocations: 4.304 MB / 486.6 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004173/0.1299, allocations: 2.927 MB / 489.5 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003014/0.1329, allocations: 1.537 MB / 491.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003774/0.1367, allocations: 1.961 MB / 493 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001203/0.1379, allocations: 316 kB / 493.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001953/0.1399, allocations: 0.5076 MB / 493.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001267/0.1412, allocations: 0.9305 MB / 494.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003186/0.1444, allocations: 1.932 MB / 496.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005812/0.1502, allocations: 6.675 MB / 0.4916 GB, free: 5.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.1502, allocations: 3.984 kB / 0.4916 GB, free: 5.234 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1502, allocations: 0 / 0.4916 GB, free: 5.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001736/0.1504, allocations: 0 / 0.4916 GB, free: 5.234 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.01069/0.1611, allocations: 4.422 MB / 0.4959 GB, free: 0.7422 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.1612, allocations: 12.03 kB / 0.4959 GB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000812/0.162, allocations: 0.5228 MB / 0.4964 GB, free: 200 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004201/0.1662, allocations: 0.8241 MB / 0.4972 GB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004271/0.1705, allocations: 2.364 MB / 0.4996 GB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00016/0.1707, allocations: 247.1 kB / 0.4998 GB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005808/0.1713, allocations: 339.8 kB / 0.5001 GB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007415/0.1787, allocations: 4.508 MB / 0.5045 GB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.6e-05/0.1788, allocations: 7.906 kB / 0.5045 GB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002963/0.1791, allocations: 136 kB / 0.5046 GB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001483/0.1792, allocations: 158.7 kB / 0.5048 GB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006763/0.186, allocations: 3.813 MB / 0.5085 GB, free: 3.703 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02153/0.2076, allocations: 14.2 MB / 0.5224 GB, free: 5.082 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1766/0.3841, allocations: 6.133 MB / 0.5284 GB, free: 62.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002179/0.3863, allocations: 1.197 MB / 0.5296 GB, free: 62.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005234/0.3916, allocations: 3.311 MB / 0.5328 GB, free: 61.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.3916, allocations: 45.89 kB / 0.5328 GB, free: 61.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 2.705e-06/0.3917, allocations: 3.875 kB / 0.5328 GB, free: 61.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01005/0.4017, allocations: 5.232 MB / 0.5379 GB, free: 60.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.4018, allocations: 65.84 kB / 0.538 GB, free: 60.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002728/0.4045, allocations: 1.688 MB / 0.5397 GB, free: 60.22 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.034e-05/0.4046, allocations: 44.27 kB / 0.5397 GB, free: 60.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009498/0.4056, allocations: 1.496 MB / 0.5412 GB, free: 59.46 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002681/0.4058, allocations: 416.8 kB / 0.5416 GB, free: 59.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004289/0.4063, allocations: 293.7 kB / 0.5418 GB, free: 59.17 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.544e-05/0.4063, allocations: 303.4 kB / 0.5421 GB, free: 58.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009894/0.4073, allocations: 0.6259 MB / 0.5427 GB, free: 58.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.4087, allocations: 1.131 MB / 0.5438 GB, free: 57.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002631/0.4113, allocations: 1.867 MB / 0.5457 GB, free: 56.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.534e-05/0.4114, allocations: 4.75 kB / 0.5457 GB, free: 56.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003695/0.4151, allocations: 2.187 MB / 0.5478 GB, free: 55.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.489e-05/0.4151, allocations: 11.78 kB / 0.5478 GB, free: 55.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.148e-05/0.4152, allocations: 22.5 kB / 0.5478 GB, free: 55.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004107/0.4156, allocations: 136.4 kB / 0.548 GB, free: 55.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/0.417, allocations: 396 kB / 0.5483 GB, free: 55.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002103/0.4192, allocations: 3.086 MB / 0.5514 GB, free: 52.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/0.4205, allocations: 74.53 kB / 0.5514 GB, free: 52.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/0.4207, allocations: 71.81 kB / 0.5515 GB, free: 52.5 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.001792/0.4225, allocations: 1.039 MB / 0.5525 GB, free: 51.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002657/0.4228, allocations: 181.6 kB / 0.5527 GB, free: 51.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002929/0.4257, allocations: 2.053 MB / 0.5547 GB, free: 50.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.4257, allocations: 11.84 kB / 0.5547 GB, free: 50.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.4257, allocations: 3.906 kB / 0.5547 GB, free: 50.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.4258, allocations: 11.44 kB / 0.5547 GB, free: 50.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006206/0.432, allocations: 4.779 MB / 0.5594 GB, free: 48.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.432, allocations: 3 kB / 0.5594 GB, free: 48.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006919/0.4327, allocations: 159.1 kB / 0.5595 GB, free: 48.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001082/0.4338, allocations: 450.8 kB / 0.56 GB, free: 47.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-05/0.4339, allocations: 30.92 kB / 0.56 GB, free: 47.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007173/0.4411, allocations: 10.1 MB / 0.5699 GB, free: 38.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.4411, allocations: 3.781 kB / 0.5699 GB, free: 38.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003879/0.445, allocations: 2.861 MB / 0.5727 GB, free: 36.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008791/0.4459, allocations: 398.8 kB / 0.573 GB, free: 35.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002277/0.4461, allocations: 35.92 kB / 0.5731 GB, free: 35.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007474/0.4469, allocations: 61.81 kB / 0.5731 GB, free: 35.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002613/0.4471, allocations: 100.8 kB / 0.5732 GB, free: 35.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.175e-05/0.4472, allocations: 32 kB / 0.5733 GB, free: 35.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001368/0.4486, allocations: 1.154 MB / 0.5744 GB, free: 34.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4486, allocations: 0 / 0.5744 GB, free: 34.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001931/0.4505, allocations: 0.5392 MB / 0.5749 GB, free: 33.92 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.003789/0.4543, allocations: 3.472 MB / 0.5783 GB, free: 30.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002475/0.4568, allocations: 1.83 MB / 0.5801 GB, free: 28.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.4568, allocations: 0 / 0.5801 GB, free: 28.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001781/0.4586, allocations: 1.495 MB / 0.5816 GB, free: 26.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002302/0.4609, allocations: 0.498 MB / 0.582 GB, free: 26.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03303/0.494, allocations: 22.27 MB / 0.6038 GB, free: 2.602 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001451/0.4955, allocations: 2.358 MB / 0.6061 GB, free: 228 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001336/0.4968, allocations: 392.2 kB / 0.6065 GB, free: 15.83 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001337/0.4982, allocations: 1.144 MB / 0.6076 GB, free: 14.69 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4982, allocations: 0 / 0.6076 GB, free: 14.69 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07611/0.5743, allocations: 48.56 MB / 0.655 GB, free: 14.49 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002364/0.5746, allocations: 215.9 kB / 0.6552 GB, free: 14.23 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.608/3.182, allocations: 7.875 kB / 0.6552 GB, free: 14.23 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2_fmu --startTime=0 --stopTime=3.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe 2>&1)