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-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: translateModel(HanserModelica.InductionMachines.IMC_Inverter1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1") translateModel(HanserModelica.InductionMachines.IMC_Inverter1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 111 kB / 15.99 MB, free: 6.344 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.407/1.407, allocations: 222.9 MB / 239.6 MB, free: 4.695 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.001504/0.001504, allocations: 200.4 kB / 289.9 MB, free: 2.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03489/0.03489, allocations: 8.805 MB / 348.9 MB, free: 4.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001543, allocations: 76.25 kB / 411.2 MB, free: 42.28 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1164, allocations: 51.56 MB / 462.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01435/0.1308, allocations: 12.98 MB / 475.8 MB, free: 1.664 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008941/0.1398, allocations: 4.267 MB / 480.1 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002795/0.1426, allocations: 83.62 kB / 480.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003327/0.146, allocations: 0.9097 MB / 481 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004956/0.151, allocations: 1.154 MB / 482.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002702/0.1537, allocations: 0.7839 MB / 483 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006973/0.1607, allocations: 4.171 MB / 487.2 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006068/0.1668, allocations: 3.522 MB / 490.7 MB, free: 2.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003438/0.1703, allocations: 1.807 MB / 492.5 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003891/0.1742, allocations: 2.109 MB / 494.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001514/0.1757, allocations: 0.5195 MB / 495.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002519/0.1782, allocations: 0.7262 MB / 495.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001721/0.18, allocations: 1.145 MB / 497 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004352/0.1843, allocations: 2.171 MB / 499.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0065/0.1909, allocations: 5.858 MB / 0.4932 GB, free: 4.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.1909, allocations: 0 / 0.4932 GB, free: 4.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1909, allocations: 3.938 kB / 0.4932 GB, free: 4.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001498/0.1911, allocations: 0 / 0.4932 GB, free: 4.289 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.01129/0.2024, allocations: 4.43 MB / 0.4975 GB, free: 15.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.237e-05/0.2024, allocations: 8.031 kB / 0.4975 GB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004352/0.2068, allocations: 0.8279 MB / 0.4983 GB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004444/0.2112, allocations: 2.368 MB / 0.5006 GB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/0.2114, allocations: 255 kB / 0.5009 GB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005842/0.212, allocations: 336 kB / 0.5012 GB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008051/0.2201, allocations: 4.5 MB / 0.5056 GB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.938e-05/0.2202, allocations: 0 / 0.5056 GB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000312/0.2205, allocations: 144 kB / 0.5057 GB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001544/0.2207, allocations: 158.7 kB / 0.5059 GB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006337/0.227, allocations: 3.813 MB / 0.5096 GB, free: 3.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02159/0.2486, allocations: 14.19 MB / 0.5235 GB, free: 4.676 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2634/0.512, allocations: 6.14 MB / 0.5295 GB, free: 62.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002357/0.5144, allocations: 1.202 MB / 0.5306 GB, free: 62.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00575/0.5202, allocations: 3.313 MB / 0.5339 GB, free: 61.88 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.041e-05/0.5203, allocations: 46.94 kB / 0.5339 GB, free: 61.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.457e-06/0.5203, allocations: 3.125 kB / 0.5339 GB, free: 61.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01105/0.5313, allocations: 5.222 MB / 0.539 GB, free: 60.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.5314, allocations: 65.09 kB / 0.5391 GB, free: 60.35 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003012/0.5344, allocations: 1.685 MB / 0.5407 GB, free: 60.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001/0.5346, allocations: 46.92 kB / 0.5408 GB, free: 60.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001169/0.5357, allocations: 1.494 MB / 0.5422 GB, free: 59.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003147/0.5361, allocations: 423.1 kB / 0.5426 GB, free: 58.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000436/0.5365, allocations: 285.1 kB / 0.5429 GB, free: 58.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.631e-05/0.5366, allocations: 305.1 kB / 0.5432 GB, free: 58.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/0.5377, allocations: 0.6261 MB / 0.5438 GB, free: 58.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001365/0.5391, allocations: 1.131 MB / 0.5449 GB, free: 57.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00253/0.5416, allocations: 1.868 MB / 0.5467 GB, free: 56.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.484e-05/0.5416, allocations: 5.875 kB / 0.5467 GB, free: 56.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004091/0.5457, allocations: 2.193 MB / 0.5489 GB, free: 55.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.571e-05/0.5458, allocations: 12.09 kB / 0.5489 GB, free: 55.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.194e-05/0.5458, allocations: 15.25 kB / 0.5489 GB, free: 55.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004184/0.5462, allocations: 135.7 kB / 0.549 GB, free: 55.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001543/0.5478, allocations: 389.8 kB / 0.5494 GB, free: 55.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002462/0.5503, allocations: 3.365 MB / 0.5527 GB, free: 51.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001604/0.5519, allocations: 73.34 kB / 0.5528 GB, free: 51.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/0.552, allocations: 77.5 kB / 0.5528 GB, free: 51.91 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.002094/0.5541, allocations: 1.044 MB / 0.5539 GB, free: 51.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003579/0.5545, allocations: 180.4 kB / 0.554 GB, free: 51.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003171/0.5577, allocations: 2.048 MB / 0.556 GB, free: 50.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.5577, allocations: 12.56 kB / 0.556 GB, free: 50.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.5577, allocations: 4.906 kB / 0.556 GB, free: 50.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.5577, allocations: 8.594 kB / 0.5561 GB, free: 50.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006627/0.5644, allocations: 4.783 MB / 0.5607 GB, free: 47.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.5644, allocations: 1.25 kB / 0.5607 GB, free: 47.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000759/0.5652, allocations: 164.2 kB / 0.5609 GB, free: 47.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001059/0.5662, allocations: 445.9 kB / 0.5613 GB, free: 47.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.016e-05/0.5663, allocations: 35.33 kB / 0.5613 GB, free: 47.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007829/0.5742, allocations: 11.06 MB / 0.5721 GB, free: 37.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.5742, allocations: 3.938 kB / 0.5721 GB, free: 37.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004032/0.5782, allocations: 2.882 MB / 0.575 GB, free: 34.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008365/0.5791, allocations: 391.5 kB / 0.5753 GB, free: 34.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002229/0.5793, allocations: 32 kB / 0.5754 GB, free: 34.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007794/0.5801, allocations: 55.95 kB / 0.5754 GB, free: 34.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002225/0.5803, allocations: 100.8 kB / 0.5755 GB, free: 34.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-05/0.5804, allocations: 35.98 kB / 0.5756 GB, free: 34.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00141/0.5818, allocations: 1.15 MB / 0.5767 GB, free: 32.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.51e-07/0.5818, allocations: 0 / 0.5767 GB, free: 32.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002011/0.5839, allocations: 0.547 MB / 0.5772 GB, free: 32.32 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.0003069/0.5842, allocations: 158.2 kB / 0.5774 GB, free: 32.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00359/0.5878, allocations: 2.118 MB / 0.5794 GB, free: 30.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.5878, allocations: 1 kB / 0.5794 GB, free: 30.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001815/0.5896, allocations: 1.49 MB / 0.5809 GB, free: 28.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002113/0.5917, allocations: 0.5305 MB / 0.5814 GB, free: 27.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008942/0.6007, allocations: 7.068 MB / 0.5883 GB, free: 20.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001506/0.6022, allocations: 2.304 MB / 0.5906 GB, free: 18.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000481/0.6027, allocations: 131.4 kB / 0.5907 GB, free: 18.43 MB / 366.1 MB Notification: Performance of SimCode: time 1.192e-06/0.6027, allocations: 0 / 0.5907 GB, free: 18.43 MB / 366.1 MB Notification: Performance of Templates: time 0.1098/0.7126, allocations: 105 MB / 0.6932 GB, free: 9.445 MB / 462.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.makefile (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 & ./HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)