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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0007611/0.0007609, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.374/1.374, allocations: 223.3 MB / 239 MB, free: 5.449 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.001312/0.001312, allocations: 176.6 kB / 290.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03332/0.03332, allocations: 8.78 MB / 350.2 MB, free: 4.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004125/0.0004126, allocations: 15.12 kB / 413.3 MB, free: 42.95 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1076, allocations: 52.55 MB / 465.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01517/0.1228, allocations: 11.54 MB / 477.4 MB, free: 1.816 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009357/0.1322, allocations: 4.032 MB / 481.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002952/0.1352, allocations: 75.69 kB / 481.5 MB, free: 13.7 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003227/0.1385, allocations: 0.773 MB / 482.2 MB, free: 12.92 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004565/0.1431, allocations: 1.043 MB / 483.3 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002376/0.1455, allocations: 0.6011 MB / 483.9 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006281/0.1518, allocations: 4.029 MB / 487.9 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00452/0.1563, allocations: 2.441 MB / 490.4 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002484/0.1588, allocations: 1.3 MB / 491.7 MB, free: 3.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003049/0.1619, allocations: 1.622 MB / 493.3 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000951/0.1629, allocations: 212 kB / 493.5 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00217/0.165, allocations: 399.8 kB / 493.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00136/0.1664, allocations: 0.7668 MB / 494.6 MB, free: 448 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00165/0.1681, allocations: 0.7578 MB / 495.4 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006437/0.1745, allocations: 5.641 MB / 0.4893 GB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.1746, allocations: 0 / 0.4893 GB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1746, allocations: 0 / 0.4893 GB, free: 10.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002153/0.1748, allocations: 0 / 0.4893 GB, free: 10.02 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.01028/0.1851, allocations: 3.795 MB / 0.493 GB, free: 6.152 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.1851, allocations: 8.031 kB / 0.493 GB, free: 6.145 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001723/0.1869, allocations: 0.5149 MB / 0.4935 GB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004715/0.1916, allocations: 0.8347 MB / 0.4943 GB, free: 4.777 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004756/0.1964, allocations: 2.313 MB / 0.4966 GB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002321/0.1967, allocations: 250.7 kB / 0.4968 GB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008088/0.1975, allocations: 339.8 kB / 0.4972 GB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008686/0.2062, allocations: 4.488 MB / 0.5015 GB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.991e-05/0.2063, allocations: 8 kB / 0.5015 GB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003149/0.2066, allocations: 136 kB / 0.5017 GB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001495/0.2068, allocations: 158.7 kB / 0.5018 GB, free: 13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006929/0.2137, allocations: 3.813 MB / 0.5056 GB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02059/0.2343, allocations: 14.24 MB / 0.5195 GB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005706/0.2401, allocations: 6.134 MB / 0.5255 GB, free: 3.578 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001963/0.2421, allocations: 1.228 MB / 0.5267 GB, free: 2.359 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2437/0.4858, allocations: 3.315 MB / 0.5299 GB, free: 62.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.789e-05/0.4859, allocations: 49.09 kB / 0.5299 GB, free: 62.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.436e-06/0.4859, allocations: 0.5312 kB / 0.5299 GB, free: 62.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01028/0.4962, allocations: 5.323 MB / 0.5351 GB, free: 61.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.4963, allocations: 64.78 kB / 0.5352 GB, free: 61.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002635/0.4989, allocations: 1.67 MB / 0.5368 GB, free: 61.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.077e-05/0.499, allocations: 47.36 kB / 0.5369 GB, free: 61.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009909/0.5, allocations: 1.501 MB / 0.5383 GB, free: 60.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003044/0.5003, allocations: 416.7 kB / 0.5387 GB, free: 60.17 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.602e-05/0.5004, allocations: 33.5 kB / 0.5388 GB, free: 60.17 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.5005, allocations: 367.5 kB / 0.5391 GB, free: 59.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001078/0.5016, allocations: 0.6291 MB / 0.5397 GB, free: 59.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001291/0.5029, allocations: 1.13 MB / 0.5408 GB, free: 59.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001358/0.5043, allocations: 0.8481 MB / 0.5417 GB, free: 59.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.5043, allocations: 5.406 kB / 0.5417 GB, free: 59.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003984/0.5083, allocations: 2.202 MB / 0.5438 GB, free: 58.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.5083, allocations: 16.88 kB / 0.5438 GB, free: 58.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.987e-05/0.5084, allocations: 16.86 kB / 0.5439 GB, free: 58.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003919/0.5088, allocations: 132.9 kB / 0.544 GB, free: 58.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001499/0.5103, allocations: 397.4 kB / 0.5444 GB, free: 58.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002097/0.5124, allocations: 3.089 MB / 0.5474 GB, free: 56.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/0.514, allocations: 80.31 kB / 0.5474 GB, free: 56.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001466/0.5141, allocations: 73.77 kB / 0.5475 GB, free: 56.18 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 (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002103/0.5162, allocations: 1.04 MB / 0.5485 GB, free: 55.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004054/0.5166, allocations: 177.2 kB / 0.5487 GB, free: 55.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003474/0.5201, allocations: 2.066 MB / 0.5507 GB, free: 54.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/0.5202, allocations: 15.78 kB / 0.5507 GB, free: 54.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.5202, allocations: 6.375 kB / 0.5507 GB, free: 54.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.393e-05/0.5202, allocations: 7.172 kB / 0.5508 GB, free: 54.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006998/0.5272, allocations: 4.793 MB / 0.5554 GB, free: 52.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/0.5272, allocations: 8.156 kB / 0.5554 GB, free: 52.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006644/0.5279, allocations: 160.5 kB / 0.5556 GB, free: 52.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009864/0.5289, allocations: 445.2 kB / 0.556 GB, free: 52.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.377e-05/0.529, allocations: 31.62 kB / 0.556 GB, free: 52.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007787/0.5368, allocations: 10.1 MB / 0.5659 GB, free: 43.17 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.5368, allocations: 0 / 0.5659 GB, free: 43.17 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00413/0.541, allocations: 2.871 MB / 0.5687 GB, free: 41.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007909/0.5418, allocations: 396.5 kB / 0.5691 GB, free: 41.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002029/0.542, allocations: 33.05 kB / 0.5691 GB, free: 41.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007077/0.5427, allocations: 69.56 kB / 0.5692 GB, free: 41.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002678/0.543, allocations: 100.1 kB / 0.5693 GB, free: 40.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.704e-05/0.5431, allocations: 35.55 kB / 0.5693 GB, free: 40.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001539/0.5446, allocations: 1.139 MB / 0.5704 GB, free: 40.31 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5446, allocations: 0 / 0.5704 GB, free: 40.31 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002138/0.5468, allocations: 0.5455 MB / 0.571 GB, free: 40.19 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003942/0.5507, allocations: 3.477 MB / 0.5744 GB, free: 36.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002652/0.5534, allocations: 1.846 MB / 0.5762 GB, free: 34.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.5534, allocations: 192 / 0.5762 GB, free: 34.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001858/0.5553, allocations: 1.493 MB / 0.5776 GB, free: 33.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002444/0.5577, allocations: 0.5225 MB / 0.5781 GB, free: 32.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02706/0.5848, allocations: 15.77 MB / 0.5935 GB, free: 16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00167/0.5865, allocations: 2.366 MB / 0.5958 GB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001478/0.588, allocations: 388 kB / 0.5962 GB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001203/0.5892, allocations: 1.148 MB / 0.5973 GB, free: 12.07 MB / 366.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5892, allocations: 4 kB / 0.5973 GB, free: 12.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07674/0.666, allocations: 46.99 MB / 0.6432 GB, free: 13.48 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001811/0.6662, allocations: 207.9 kB / 0.6434 GB, free: 13.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.729/3.395, allocations: 0 / 0.6434 GB, free: 13.23 MB / 414.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/linux/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) Environment - environmentSimulation: