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: translateModel(HanserModelica.InductionMachines.IMC_Inverter2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2") translateModel(HanserModelica.InductionMachines.IMC_Inverter2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008005/0.008005, allocations: 100.2 kB / 15.73 MB, free: 6.469 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.413/1.413, allocations: 222.9 MB / 239.4 MB, free: 4.574 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.00132/0.00132, allocations: 192.4 kB / 289.7 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03429/0.03429, allocations: 8.801 MB / 348.6 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 75.88 kB / 463.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1235, allocations: 51.56 MB / 0.5034 GB, free: 9.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01461/0.1381, allocations: 13.14 MB / 0.5162 GB, free: 12.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00993/0.1481, allocations: 4.337 MB / 0.5205 GB, free: 7.945 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003259/0.1514, allocations: 87.62 kB / 0.5206 GB, free: 7.859 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002811/0.1543, allocations: 1.025 MB / 0.5216 GB, free: 6.828 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004509/0.1588, allocations: 1.289 MB / 0.5228 GB, free: 5.531 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002252/0.1611, allocations: 0.8454 MB / 0.5236 GB, free: 4.688 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005754/0.1668, allocations: 4.045 MB / 0.5276 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3293/0.4961, allocations: 3.516 MB / 0.531 GB, free: 5.535 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003751/0.4999, allocations: 1.937 MB / 0.5329 GB, free: 5.402 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004147/0.5041, allocations: 2.131 MB / 0.535 GB, free: 5.027 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001634/0.5057, allocations: 0.5246 MB / 0.5355 GB, free: 5.027 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002634/0.5084, allocations: 0.7243 MB / 0.5362 GB, free: 5.027 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001166/0.5096, allocations: 1.147 MB / 0.5373 GB, free: 4.895 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003445/0.513, allocations: 2.179 MB / 0.5395 GB, free: 4.367 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01118/0.5242, allocations: 6.887 MB / 0.5462 GB, free: 3.699 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.625e-06/0.5243, allocations: 1.625 kB / 0.5462 GB, free: 3.699 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.5243, allocations: 4.656 kB / 0.5462 GB, free: 3.695 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002617/0.5245, allocations: 0 / 0.5462 GB, free: 3.695 MB / 366.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.01592/0.5405, allocations: 4.438 MB / 0.5505 GB, free: 2.105 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.5405, allocations: 9.656 kB / 0.5505 GB, free: 2.105 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004521/0.5451, allocations: 0.8235 MB / 0.5513 GB, free: 1.914 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006319/0.5514, allocations: 2.478 MB / 0.5538 GB, free: 1.098 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002596/0.5517, allocations: 251.2 kB / 0.554 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0011/0.5528, allocations: 331.5 kB / 0.5543 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0106/0.5634, allocations: 4.516 MB / 0.5587 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.951e-05/0.5635, allocations: 3.906 kB / 0.5587 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003667/0.5639, allocations: 137.6 kB / 0.5589 GB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001626/0.5641, allocations: 151.4 kB / 0.559 GB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007507/0.5716, allocations: 3.81 MB / 0.5627 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02302/0.5947, allocations: 14.02 MB / 0.5764 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006227/0.6009, allocations: 6.148 MB / 0.5824 GB, free: 9.883 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001889/0.6029, allocations: 1.181 MB / 0.5836 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00593/0.6088, allocations: 3.309 MB / 0.5868 GB, free: 5.355 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.303e-05/0.6089, allocations: 47.56 kB / 0.5869 GB, free: 5.301 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 2.996e-06/0.6089, allocations: 0 / 0.5869 GB, free: 5.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.01202/0.6209, allocations: 5.22 MB / 0.592 GB, free: 15.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/0.621, allocations: 68.41 kB / 0.592 GB, free: 15.83 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003365/0.6244, allocations: 1.682 MB / 0.5937 GB, free: 14.14 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002368/0.6247, allocations: 45.7 kB / 0.5937 GB, free: 14.09 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001688/0.6264, allocations: 1.491 MB / 0.5952 GB, free: 12.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005362/0.6269, allocations: 424.2 kB / 0.5956 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005528/0.6275, allocations: 291.2 kB / 0.5959 GB, free: 11.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.6276, allocations: 301.1 kB / 0.5961 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.6288, allocations: 0.6286 MB / 0.5968 GB, free: 10.96 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/0.6303, allocations: 1.13 MB / 0.5979 GB, free: 9.617 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002543/0.6328, allocations: 1.875 MB / 0.5997 GB, free: 7.586 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.6329, allocations: 4 kB / 0.5997 GB, free: 7.582 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003721/0.6366, allocations: 2.192 MB / 0.6018 GB, free: 5.449 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.257e-05/0.6366, allocations: 12 kB / 0.6018 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.662e-05/0.6367, allocations: 16 kB / 0.6019 GB, free: 5.422 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003939/0.6371, allocations: 133.1 kB / 0.602 GB, free: 5.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/0.6385, allocations: 392.2 kB / 0.6024 GB, free: 4.926 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003296/0.6418, allocations: 3.364 MB / 0.6056 GB, free: 1.305 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002205/0.6441, allocations: 79.92 kB / 0.6057 GB, free: 1.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/0.6442, allocations: 72 kB / 0.6058 GB, free: 1.156 MB / 414.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.002628/0.6469, allocations: 1.04 MB / 0.6068 GB, free: 132 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006127/0.6475, allocations: 174 kB / 0.607 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004084/0.6516, allocations: 2.049 MB / 0.609 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.975e-05/0.6516, allocations: 8 kB / 0.609 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.458e-05/0.6516, allocations: 12 kB / 0.609 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/0.6517, allocations: 7.922 kB / 0.609 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00918/0.6608, allocations: 4.778 MB / 0.6137 GB, free: 8.984 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/0.6609, allocations: 4 kB / 0.6137 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007221/0.6616, allocations: 160 kB / 0.6138 GB, free: 8.832 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001167/0.6628, allocations: 446.6 kB / 0.6142 GB, free: 8.387 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.296e-05/0.6629, allocations: 35.98 kB / 0.6143 GB, free: 8.352 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01047/0.6734, allocations: 11.06 MB / 0.6251 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/0.6734, allocations: 4.031 kB / 0.6251 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004969/0.6784, allocations: 2.869 MB / 0.6279 GB, free: 9.727 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001141/0.6796, allocations: 398.8 kB / 0.6283 GB, free: 9.312 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002048/0.6798, allocations: 35.98 kB / 0.6283 GB, free: 9.277 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008066/0.6806, allocations: 59.95 kB / 0.6284 GB, free: 9.219 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002893/0.6809, allocations: 91.5 kB / 0.6284 GB, free: 9.133 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.047e-05/0.681, allocations: 35.98 kB / 0.6285 GB, free: 9.098 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001888/0.6829, allocations: 1.154 MB / 0.6296 GB, free: 7.949 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6829, allocations: 0 / 0.6296 GB, free: 7.949 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002625/0.6855, allocations: 0.5391 MB / 0.6301 GB, free: 7.41 MB / 446.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.0004865/0.686, allocations: 155.7 kB / 0.6303 GB, free: 7.254 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003534/0.6896, allocations: 1.852 MB / 0.6321 GB, free: 5.418 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.6896, allocations: 448 / 0.6321 GB, free: 5.418 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002337/0.6919, allocations: 1.497 MB / 0.6336 GB, free: 3.871 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002402/0.6944, allocations: 0.5306 MB / 0.6341 GB, free: 3.344 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/0.7049, allocations: 5.648 MB / 0.6396 GB, free: 13.68 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002272/0.7072, allocations: 2.37 MB / 0.6419 GB, free: 11.29 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001525/0.7087, allocations: 388.1 kB / 0.6423 GB, free: 10.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003174/0.709, allocations: 119.4 kB / 0.6424 GB, free: 10.79 MB / 462.1 MB Notification: Performance of SimCode: time 1.183e-06/0.7091, allocations: 3.938 kB / 0.6424 GB, free: 10.78 MB / 462.1 MB Notification: Performance of Templates: time 0.06004/0.7691, allocations: 28.45 MB / 0.6702 GB, free: 14.68 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.makefile (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 & ./HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe 2>&1)