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.001328/0.001328, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.322/1.322, allocations: 222.9 MB / 239 MB, free: 4.742 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.001327/0.001327, allocations: 188.4 kB / 289.3 MB, free: 2.488 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0342/0.0342, allocations: 8.799 MB / 348.2 MB, free: 4.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 74.67 kB / 410.7 MB, free: 42.32 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07838/0.07983, allocations: 51.58 MB / 462.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01386/0.09373, allocations: 12.99 MB / 475.3 MB, free: 1.617 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007446/0.1012, allocations: 4.268 MB / 479.5 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001951/0.1032, allocations: 83.62 kB / 479.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002694/0.1059, allocations: 0.9058 MB / 480.5 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003706/0.1097, allocations: 1.156 MB / 481.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002046/0.1117, allocations: 0.7861 MB / 482.5 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0059/0.1176, allocations: 4.172 MB / 486.6 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003795/0.1215, allocations: 3.514 MB / 490.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002361/0.1238, allocations: 1.818 MB / 492 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002887/0.1267, allocations: 2.106 MB / 494.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007581/0.1275, allocations: 0.5234 MB / 494.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001477/0.129, allocations: 0.734 MB / 495.3 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000936/0.1299, allocations: 1.13 MB / 496.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002451/0.1324, allocations: 2.171 MB / 498.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006903/0.1393, allocations: 6.82 MB / 0.4936 GB, free: 3.281 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.1394, allocations: 0 / 0.4936 GB, free: 3.281 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1394, allocations: 0 / 0.4936 GB, free: 3.281 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001623/0.1395, allocations: 0 / 0.4936 GB, free: 3.281 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.0123/0.1518, allocations: 4.438 MB / 0.4979 GB, free: 14.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1519, allocations: 8.031 kB / 0.4979 GB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008655/0.1528, allocations: 0.5189 MB / 0.4984 GB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00445/0.1572, allocations: 0.8241 MB / 0.4992 GB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005003/0.1623, allocations: 2.368 MB / 0.5016 GB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002042/0.1625, allocations: 255.1 kB / 0.5018 GB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007926/0.1633, allocations: 331.8 kB / 0.5021 GB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007973/0.1713, allocations: 4.5 MB / 0.5065 GB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.578e-05/0.1714, allocations: 11.91 kB / 0.5065 GB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003212/0.1717, allocations: 140 kB / 0.5067 GB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001618/0.1719, allocations: 158.7 kB / 0.5068 GB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006554/0.1784, allocations: 3.813 MB / 0.5105 GB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02084/0.1993, allocations: 14.2 MB / 0.5244 GB, free: 3.117 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1727/0.372, allocations: 6.131 MB / 0.5304 GB, free: 60.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002079/0.3741, allocations: 1.202 MB / 0.5316 GB, free: 60.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005119/0.3793, allocations: 3.307 MB / 0.5348 GB, free: 60.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.3793, allocations: 49.84 kB / 0.5348 GB, free: 60.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.466e-06/0.3793, allocations: 0 / 0.5348 GB, free: 60.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01037/0.3897, allocations: 5.231 MB / 0.5399 GB, free: 58.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.3898, allocations: 65.44 kB / 0.54 GB, free: 58.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002818/0.3926, allocations: 1.686 MB / 0.5417 GB, free: 58.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001339/0.3928, allocations: 47.14 kB / 0.5417 GB, free: 58.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001008/0.3938, allocations: 1.496 MB / 0.5432 GB, free: 57.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003378/0.3941, allocations: 419 kB / 0.5436 GB, free: 57.31 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004508/0.3946, allocations: 291.6 kB / 0.5438 GB, free: 57.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.256e-05/0.3946, allocations: 305.8 kB / 0.5441 GB, free: 56.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001058/0.3957, allocations: 0.6241 MB / 0.5447 GB, free: 56.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/0.3969, allocations: 1.132 MB / 0.5458 GB, free: 55.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002314/0.3993, allocations: 1.869 MB / 0.5477 GB, free: 54.65 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.317e-05/0.3993, allocations: 5.688 kB / 0.5477 GB, free: 54.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003824/0.4031, allocations: 2.189 MB / 0.5498 GB, free: 53.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.317e-05/0.4032, allocations: 12.31 kB / 0.5498 GB, free: 53.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.347e-05/0.4032, allocations: 16.59 kB / 0.5498 GB, free: 53.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004451/0.4037, allocations: 134.2 kB / 0.55 GB, free: 53.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/0.4053, allocations: 396.6 kB / 0.5503 GB, free: 53.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002313/0.4076, allocations: 3.36 MB / 0.5536 GB, free: 50.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/0.409, allocations: 73.64 kB / 0.5537 GB, free: 50.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001362/0.4092, allocations: 71.78 kB / 0.5538 GB, free: 50.32 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.001861/0.411, allocations: 1.046 MB / 0.5548 GB, free: 49.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003408/0.4114, allocations: 181.8 kB / 0.555 GB, free: 49.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003032/0.4144, allocations: 2.042 MB / 0.557 GB, free: 48.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.4144, allocations: 12.45 kB / 0.557 GB, free: 48.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.4145, allocations: 15.25 kB / 0.557 GB, free: 48.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.4145, allocations: 7.406 kB / 0.557 GB, free: 48.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006322/0.4208, allocations: 4.779 MB / 0.5617 GB, free: 45.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.4208, allocations: 3.125 kB / 0.5617 GB, free: 45.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007171/0.4216, allocations: 165.5 kB / 0.5618 GB, free: 45.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001047/0.4226, allocations: 442.4 kB / 0.5622 GB, free: 45.65 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.262e-05/0.4227, allocations: 35.27 kB / 0.5623 GB, free: 45.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007359/0.4301, allocations: 11.07 MB / 0.5731 GB, free: 35.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.4301, allocations: 3.969 kB / 0.5731 GB, free: 35.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003886/0.434, allocations: 2.867 MB / 0.5759 GB, free: 32.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007242/0.4348, allocations: 398.8 kB / 0.5763 GB, free: 32.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002199/0.435, allocations: 31.98 kB / 0.5763 GB, free: 32.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007957/0.4358, allocations: 60.52 kB / 0.5764 GB, free: 32.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002513/0.4361, allocations: 104.7 kB / 0.5765 GB, free: 32.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.668e-05/0.4361, allocations: 32 kB / 0.5765 GB, free: 32.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001344/0.4375, allocations: 1.15 MB / 0.5776 GB, free: 31.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4375, allocations: 0 / 0.5776 GB, free: 31.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001968/0.4395, allocations: 0.547 MB / 0.5781 GB, free: 30.64 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.00392/0.4434, allocations: 3.464 MB / 0.5815 GB, free: 27.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003541/0.447, allocations: 2.123 MB / 0.5836 GB, free: 24.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.447, allocations: 128 / 0.5836 GB, free: 24.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00192/0.4489, allocations: 1.493 MB / 0.5851 GB, free: 23.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002422/0.4514, allocations: 0.5301 MB / 0.5856 GB, free: 22.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03379/0.4852, allocations: 22.27 MB / 0.6073 GB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002108/0.4873, allocations: 2.36 MB / 0.6096 GB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001403/0.4887, allocations: 388.1 kB / 0.61 GB, free: 12.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001408/0.4902, allocations: 1.148 MB / 0.6111 GB, free: 11.12 MB / 382.1 MB Notification: Performance of SimCode: time 5.1e-07/0.4902, allocations: 0 / 0.6111 GB, free: 11.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08887/0.579, allocations: 49.6 MB / 0.6596 GB, free: 9.918 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001809/0.5792, allocations: 220.1 kB / 0.6598 GB, free: 9.66 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.768/3.347, allocations: 4 kB / 0.6598 GB, free: 9.656 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)