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.0009605/0.0009605, allocations: 99.86 kB / 15.05 MB, free: 1.105 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: 223.2 MB / 238.9 MB, free: 5.469 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.001172/0.001172, allocations: 188.8 kB / 290.2 MB, free: 2.16 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03232/0.03232, allocations: 8.791 MB / 350.1 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003723/0.0003723, allocations: 10.44 kB / 413.2 MB, free: 43.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1072, allocations: 52.56 MB / 465.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01144/0.1186, allocations: 10.57 MB / 476.3 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008177/0.1269, allocations: 4.103 MB / 480.4 MB, free: 14.69 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002042/0.129, allocations: 71.69 kB / 480.5 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002519/0.1315, allocations: 0.8125 MB / 481.3 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00375/0.1353, allocations: 1.137 MB / 482.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001751/0.137, allocations: 0.5995 MB / 483 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0051/0.1421, allocations: 2.78 MB / 485.8 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003167/0.1453, allocations: 2.445 MB / 488.2 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002519/0.1478, allocations: 1.273 MB / 489.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001934/0.1498, allocations: 1.467 MB / 491 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003404/0.1501, allocations: 212 kB / 491.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001042/0.1512, allocations: 375.8 kB / 491.6 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006836/0.1519, allocations: 0.7281 MB / 492.3 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000906/0.1528, allocations: 0.7538 MB / 493 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005618/0.1584, allocations: 5.61 MB / 498.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1585, allocations: 4 kB / 498.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1585, allocations: 0 / 498.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001603/0.1586, allocations: 0 / 498.7 MB, free: 12.34 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.00963/0.1683, allocations: 3.779 MB / 0.4907 GB, free: 8.488 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.1683, allocations: 8.031 kB / 0.4907 GB, free: 8.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001202/0.1695, allocations: 0.5187 MB / 0.4912 GB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004268/0.1738, allocations: 0.8309 MB / 0.492 GB, free: 7.113 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004672/0.1785, allocations: 2.329 MB / 0.4943 GB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001786/0.1787, allocations: 250.7 kB / 0.4945 GB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005933/0.1793, allocations: 335.9 kB / 0.4948 GB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00851/0.1878, allocations: 4.457 MB / 0.4992 GB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.694e-05/0.1879, allocations: 11.92 kB / 0.4992 GB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002955/0.1882, allocations: 132 kB / 0.4993 GB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001719/0.1884, allocations: 154.7 kB / 0.4995 GB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006856/0.1953, allocations: 3.817 MB / 0.5032 GB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02824/0.2235, allocations: 14.21 MB / 0.5171 GB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006509/0.2301, allocations: 6.137 MB / 0.523 GB, free: 5.965 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005442/0.2356, allocations: 2.94 MB / 0.5259 GB, free: 2.945 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.726e-05/0.2357, allocations: 47.56 kB / 0.526 GB, free: 2.891 MB / 366.1 MB Notification: Performance of pre-optimization done (n=121): time 2.885e-06/0.2357, allocations: 0 / 0.526 GB, free: 2.891 MB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.2551/0.4908, allocations: 5.384 MB / 0.5312 GB, free: 63.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.4909, allocations: 66.09 kB / 0.5313 GB, free: 63.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002578/0.4935, allocations: 1.623 MB / 0.5329 GB, free: 63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001213/0.4936, allocations: 49.7 kB / 0.5329 GB, free: 62.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001027/0.4946, allocations: 1.475 MB / 0.5344 GB, free: 62.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003511/0.495, allocations: 443.7 kB / 0.5348 GB, free: 61.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.009e-05/0.4951, allocations: 31.06 kB / 0.5348 GB, free: 61.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.4952, allocations: 372.1 kB / 0.5352 GB, free: 61.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/0.4964, allocations: 0.645 MB / 0.5358 GB, free: 61.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001516/0.4979, allocations: 1.145 MB / 0.5369 GB, free: 61.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001456/0.4994, allocations: 0.8632 MB / 0.5378 GB, free: 61.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/0.4994, allocations: 4.156 kB / 0.5378 GB, free: 61.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=207) (initialization): time 0.004004/0.5034, allocations: 2.236 MB / 0.5399 GB, free: 60.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.712e-05/0.5035, allocations: 11 kB / 0.54 GB, free: 60.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.011e-05/0.5035, allocations: 16.25 kB / 0.54 GB, free: 60.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004245/0.504, allocations: 142.6 kB / 0.5401 GB, free: 60.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001561/0.5055, allocations: 403.2 kB / 0.5405 GB, free: 60.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002342/0.5079, allocations: 3.117 MB / 0.5435 GB, free: 58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00152/0.5094, allocations: 76.55 kB / 0.5436 GB, free: 57.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/0.5096, allocations: 70.97 kB / 0.5437 GB, free: 57.99 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (200): * Single equations (assignments): 197 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002648/0.5122, allocations: 1.039 MB / 0.5447 GB, free: 57.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005042/0.5127, allocations: 178.8 kB / 0.5449 GB, free: 57.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004177/0.5169, allocations: 2.121 MB / 0.5469 GB, free: 56.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.74e-05/0.517, allocations: 17.06 kB / 0.5469 GB, free: 56.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/0.517, allocations: 6.094 kB / 0.547 GB, free: 56.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.517, allocations: 5.953 kB / 0.547 GB, free: 56.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008976/0.526, allocations: 4.86 MB / 0.5517 GB, free: 54.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/0.526, allocations: 5.344 kB / 0.5517 GB, free: 54.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009386/0.527, allocations: 187.5 kB / 0.5519 GB, free: 54.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001055/0.528, allocations: 435 kB / 0.5523 GB, free: 54.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.132e-05/0.5281, allocations: 38.75 kB / 0.5523 GB, free: 54.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008099/0.5363, allocations: 10.23 MB / 0.5623 GB, free: 45.74 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.5363, allocations: 3.938 kB / 0.5623 GB, free: 45.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004773/0.5411, allocations: 3.064 MB / 0.5653 GB, free: 43.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/0.5422, allocations: 401.1 kB / 0.5657 GB, free: 43.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002191/0.5425, allocations: 31.92 kB / 0.5657 GB, free: 43.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008719/0.5433, allocations: 67.14 kB / 0.5658 GB, free: 43.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003269/0.5437, allocations: 103.2 kB / 0.5659 GB, free: 43.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.627e-05/0.5438, allocations: 35.3 kB / 0.5659 GB, free: 43.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001999/0.5458, allocations: 1.107 MB / 0.567 GB, free: 42.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5458, allocations: 0 / 0.567 GB, free: 42.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002509/0.5483, allocations: 0.5509 MB / 0.5676 GB, free: 42.75 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 (87): * Single equations (assignments): 82 * 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%) 8,(1,100.0%) 1,(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.004418/0.5527, allocations: 4.059 MB / 0.5715 GB, free: 39.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002822/0.5556, allocations: 1.897 MB / 0.5734 GB, free: 37.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.5556, allocations: 0 / 0.5734 GB, free: 37.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001956/0.5576, allocations: 1.529 MB / 0.5749 GB, free: 36.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002296/0.5599, allocations: 0.5073 MB / 0.5754 GB, free: 35.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0313/0.5912, allocations: 26.01 MB / 0.6008 GB, free: 8.523 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001709/0.593, allocations: 2.424 MB / 0.6031 GB, free: 6.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001512/0.5945, allocations: 392.1 kB / 0.6035 GB, free: 5.684 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001171/0.5957, allocations: 1.136 MB / 0.6046 GB, free: 4.547 MB / 366.1 MB Notification: Performance of SimCode: time 1.011e-06/0.5957, allocations: 0 / 0.6046 GB, free: 4.547 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0856/0.6813, allocations: 46.73 MB / 0.6502 GB, free: 6.207 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002135/0.6815, allocations: 198.8 kB / 0.6504 GB, free: 5.965 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.908/3.589, allocations: 0 / 0.6504 GB, free: 5.965 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: