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.0009187/0.0009188, allocations: 96.62 kB / 15.36 MB, free: 0.7344 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.341/1.341, allocations: 223.3 MB / 239.4 MB, free: 5.496 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.001049/0.001049, allocations: 184.3 kB / 290.6 MB, free: 2.168 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03317/0.03317, allocations: 8.809 MB / 350.5 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003548/0.0003548, allocations: 11.39 kB / 413.9 MB, free: 42.71 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09368/0.09406, allocations: 52.57 MB / 466.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01245/0.1065, allocations: 12.35 MB / 478.8 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008255/0.1148, allocations: 4.236 MB / 483.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002655/0.1175, allocations: 79.69 kB / 483.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003123/0.1207, allocations: 0.9018 MB / 484 MB, free: 11.39 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004143/0.1248, allocations: 1.152 MB / 485.2 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002379/0.1272, allocations: 0.7897 MB / 486 MB, free: 9.453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006235/0.1335, allocations: 4.308 MB / 490.3 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00458/0.1381, allocations: 2.892 MB / 493.2 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002476/0.1406, allocations: 1.33 MB / 494.5 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003114/0.1437, allocations: 1.692 MB / 496.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008541/0.1446, allocations: 212 kB / 496.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001995/0.1466, allocations: 427.6 kB / 496.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00135/0.148, allocations: 0.7666 MB / 497.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003536/0.1515, allocations: 1.793 MB / 499.4 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007649/0.1592, allocations: 6.447 MB / 0.494 GB, free: 5.457 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1592, allocations: 0 / 0.494 GB, free: 5.457 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1593, allocations: 0 / 0.494 GB, free: 5.457 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000218/0.1595, allocations: 0 / 0.494 GB, free: 5.457 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.01021/0.1697, allocations: 3.76 MB / 0.4977 GB, free: 1.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.1698, allocations: 11.97 kB / 0.4977 GB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001491/0.1713, allocations: 0.5111 MB / 0.4982 GB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004712/0.176, allocations: 0.8317 MB / 0.499 GB, free: 264 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004544/0.1805, allocations: 2.368 MB / 0.5013 GB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002235/0.1808, allocations: 255.1 kB / 0.5015 GB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007982/0.1816, allocations: 331.8 kB / 0.5019 GB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007776/0.1894, allocations: 4.519 MB / 0.5063 GB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-05/0.1895, allocations: 4 kB / 0.5063 GB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003099/0.1898, allocations: 132 kB / 0.5064 GB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001505/0.19, allocations: 166.7 kB / 0.5066 GB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006666/0.1966, allocations: 3.829 MB / 0.5103 GB, free: 4.562 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02483/0.2215, allocations: 14.27 MB / 0.5242 GB, free: 5.879 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1904/0.4119, allocations: 6.139 MB / 0.5302 GB, free: 62.33 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002585/0.4145, allocations: 1.215 MB / 0.5314 GB, free: 62.31 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006171/0.4207, allocations: 3.321 MB / 0.5347 GB, free: 61.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.4208, allocations: 44.42 kB / 0.5347 GB, free: 61.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.406e-06/0.4208, allocations: 0 / 0.5347 GB, free: 61.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01134/0.4321, allocations: 5.294 MB / 0.5399 GB, free: 60.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.4322, allocations: 67.28 kB / 0.5399 GB, free: 60.15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003493/0.4357, allocations: 1.686 MB / 0.5416 GB, free: 59.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001378/0.4359, allocations: 49.75 kB / 0.5416 GB, free: 59.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001329/0.4372, allocations: 1.498 MB / 0.5431 GB, free: 59.19 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004435/0.4377, allocations: 417.2 kB / 0.5435 GB, free: 58.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002663/0.438, allocations: 131.5 kB / 0.5436 GB, free: 58.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.557e-05/0.438, allocations: 302.3 kB / 0.5439 GB, free: 58.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001298/0.4393, allocations: 0.6327 MB / 0.5445 GB, free: 58.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00153/0.4409, allocations: 1.142 MB / 0.5456 GB, free: 57.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002913/0.4438, allocations: 1.894 MB / 0.5475 GB, free: 56.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-05/0.4438, allocations: 6.031 kB / 0.5475 GB, free: 56.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004197/0.448, allocations: 2.205 MB / 0.5496 GB, free: 55.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.595e-05/0.4481, allocations: 11.25 kB / 0.5497 GB, free: 55.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.715e-05/0.4481, allocations: 16.73 kB / 0.5497 GB, free: 55.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004243/0.4486, allocations: 135.3 kB / 0.5498 GB, free: 55.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001506/0.4501, allocations: 404.5 kB / 0.5502 GB, free: 55.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002077/0.4522, allocations: 3.083 MB / 0.5532 GB, free: 52.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001356/0.4535, allocations: 84.44 kB / 0.5533 GB, free: 52.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/0.4537, allocations: 69.45 kB / 0.5533 GB, free: 52.55 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.00232/0.456, allocations: 1.051 MB / 0.5544 GB, free: 51.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004832/0.4565, allocations: 177.6 kB / 0.5545 GB, free: 51.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003885/0.4604, allocations: 2.056 MB / 0.5565 GB, free: 50.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.4604, allocations: 17.62 kB / 0.5566 GB, free: 50.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.313e-05/0.4604, allocations: 7.906 kB / 0.5566 GB, free: 50.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.4605, allocations: 11.53 kB / 0.5566 GB, free: 50.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008311/0.4688, allocations: 4.807 MB / 0.5613 GB, free: 48.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.978e-06/0.4688, allocations: 3.875 kB / 0.5613 GB, free: 48.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007117/0.4695, allocations: 169.5 kB / 0.5614 GB, free: 48.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001279/0.4708, allocations: 442.9 kB / 0.5619 GB, free: 48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001212/0.471, allocations: 34.8 kB / 0.5619 GB, free: 47.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007639/0.4786, allocations: 10.1 MB / 0.5718 GB, free: 38.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.4787, allocations: 8 kB / 0.5718 GB, free: 38.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004034/0.4827, allocations: 2.889 MB / 0.5746 GB, free: 36.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008526/0.4836, allocations: 394.7 kB / 0.575 GB, free: 36.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004131/0.484, allocations: 31.94 kB / 0.575 GB, free: 36.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009988/0.485, allocations: 71.95 kB / 0.5751 GB, free: 35.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002384/0.4853, allocations: 88.86 kB / 0.5751 GB, free: 35.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.346e-05/0.4853, allocations: 35.98 kB / 0.5752 GB, free: 35.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001945/0.4873, allocations: 1.154 MB / 0.5763 GB, free: 34.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4873, allocations: 0 / 0.5763 GB, free: 34.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002562/0.4899, allocations: 0.5455 MB / 0.5768 GB, free: 34.13 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.004415/0.4943, allocations: 3.499 MB / 0.5803 GB, free: 30.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002797/0.4971, allocations: 1.855 MB / 0.5821 GB, free: 28.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.4971, allocations: 384 / 0.5821 GB, free: 28.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001956/0.4991, allocations: 1.493 MB / 0.5835 GB, free: 27.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003083/0.5022, allocations: 0.5173 MB / 0.584 GB, free: 26.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03685/0.5391, allocations: 22.46 MB / 0.606 GB, free: 2.516 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002348/0.5414, allocations: 2.369 MB / 0.6083 GB, free: 128 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001664/0.5431, allocations: 388.1 kB / 0.6087 GB, free: 15.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001731/0.5449, allocations: 1.144 MB / 0.6098 GB, free: 14.6 MB / 382.1 MB Notification: Performance of SimCode: time 9.81e-07/0.5449, allocations: 0 / 0.6098 GB, free: 14.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07823/0.6231, allocations: 47.95 MB / 0.6566 GB, free: 15.02 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/0.6233, allocations: 214.3 kB / 0.6568 GB, free: 14.77 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.656/3.279, allocations: 0 / 0.6568 GB, free: 14.77 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)