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.0009967/0.0009968, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.432/1.432, allocations: 223.3 MB / 239 MB, free: 5.441 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.001603/0.001603, allocations: 188.4 kB / 290.3 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03301/0.03301, allocations: 8.8 MB / 350.2 MB, free: 4.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004164/0.0004164, allocations: 12.81 kB / 413.2 MB, free: 42.95 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1279, allocations: 52.56 MB / 465.8 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01387/0.1418, allocations: 11.56 MB / 477.3 MB, free: 1.898 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.1532, allocations: 4.016 MB / 481.3 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003359/0.1567, allocations: 83.69 kB / 481.4 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003383/0.1601, allocations: 0.7691 MB / 482.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004958/0.1651, allocations: 1.053 MB / 483.2 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002207/0.1673, allocations: 0.6 MB / 483.8 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006463/0.1738, allocations: 4.031 MB / 487.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003727/0.1775, allocations: 2.429 MB / 490.3 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00262/0.1802, allocations: 1.3 MB / 491.6 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002864/0.183, allocations: 1.618 MB / 493.2 MB, free: 1.898 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005087/0.1836, allocations: 216 kB / 493.4 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001452/0.185, allocations: 411.7 kB / 493.8 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007365/0.1858, allocations: 0.7551 MB / 494.6 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001165/0.187, allocations: 0.75 MB / 495.3 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006035/0.193, allocations: 5.648 MB / 0.4892 GB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.193, allocations: 0 / 0.4892 GB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.193, allocations: 0 / 0.4892 GB, free: 10.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001885/0.1932, allocations: 0 / 0.4892 GB, free: 10.11 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.01085/0.2041, allocations: 3.806 MB / 0.493 GB, free: 6.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/0.2042, allocations: 8.031 kB / 0.493 GB, free: 6.223 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005027/0.2092, allocations: 0.8348 MB / 0.4938 GB, free: 5.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00518/0.2144, allocations: 2.309 MB / 0.496 GB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002412/0.2147, allocations: 246.7 kB / 0.4963 GB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000845/0.2155, allocations: 335.9 kB / 0.4966 GB, free: 2.445 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008578/0.2241, allocations: 4.48 MB / 0.501 GB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.77e-05/0.2242, allocations: 15.83 kB / 0.501 GB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003022/0.2245, allocations: 136 kB / 0.5011 GB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001548/0.2247, allocations: 158.7 kB / 0.5013 GB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006545/0.2313, allocations: 3.802 MB / 0.505 GB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02133/0.2526, allocations: 14.25 MB / 0.5189 GB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005963/0.2586, allocations: 6.137 MB / 0.5249 GB, free: 4.199 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001915/0.2606, allocations: 1.225 MB / 0.5261 GB, free: 2.984 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2717/0.5323, allocations: 3.318 MB / 0.5293 GB, free: 63.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.805e-05/0.5323, allocations: 48.31 kB / 0.5294 GB, free: 63.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 4.018e-06/0.5324, allocations: 0 / 0.5294 GB, free: 63.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01032/0.5427, allocations: 5.334 MB / 0.5346 GB, free: 62.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/0.5428, allocations: 64.06 kB / 0.5346 GB, free: 62.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002633/0.5454, allocations: 1.664 MB / 0.5363 GB, free: 61.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.98e-05/0.5455, allocations: 46.67 kB / 0.5363 GB, free: 61.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001087/0.5466, allocations: 1.494 MB / 0.5378 GB, free: 61.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003142/0.5469, allocations: 416.8 kB / 0.5382 GB, free: 60.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.269e-05/0.547, allocations: 37.56 kB / 0.5382 GB, free: 60.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.5471, allocations: 364.2 kB / 0.5385 GB, free: 60.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001016/0.5482, allocations: 0.6273 MB / 0.5392 GB, free: 60.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.5496, allocations: 1.132 MB / 0.5403 GB, free: 60.06 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.551, allocations: 0.8491 MB / 0.5411 GB, free: 60.02 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.551, allocations: 5.5 kB / 0.5411 GB, free: 60.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004194/0.5552, allocations: 2.199 MB / 0.5432 GB, free: 59.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.882e-05/0.5553, allocations: 22.83 kB / 0.5433 GB, free: 59.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.914e-05/0.5553, allocations: 17.59 kB / 0.5433 GB, free: 59.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004834/0.5558, allocations: 130.6 kB / 0.5434 GB, free: 59.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001734/0.5576, allocations: 401.7 kB / 0.5438 GB, free: 59.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002451/0.56, allocations: 3.084 MB / 0.5468 GB, free: 56.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/0.5615, allocations: 70.86 kB / 0.5469 GB, free: 56.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001351/0.5617, allocations: 69.55 kB / 0.5469 GB, free: 56.89 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 (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%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002025/0.5637, allocations: 1.052 MB / 0.548 GB, free: 56.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003748/0.5641, allocations: 183.4 kB / 0.5481 GB, free: 56.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00377/0.5679, allocations: 2.056 MB / 0.5501 GB, free: 55.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.1e-05/0.5679, allocations: 15.14 kB / 0.5502 GB, free: 55.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/0.5679, allocations: 6.625 kB / 0.5502 GB, free: 55.17 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.567e-05/0.5679, allocations: 8.016 kB / 0.5502 GB, free: 55.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00732/0.5753, allocations: 4.796 MB / 0.5549 GB, free: 52.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.5753, allocations: 2.734 kB / 0.5549 GB, free: 52.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006462/0.5759, allocations: 164.6 kB / 0.555 GB, free: 52.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009959/0.577, allocations: 456.3 kB / 0.5555 GB, free: 52.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.366e-05/0.577, allocations: 35.61 kB / 0.5555 GB, free: 52.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007481/0.5845, allocations: 10.09 MB / 0.5653 GB, free: 43.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.5846, allocations: 4 kB / 0.5653 GB, free: 43.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004032/0.5886, allocations: 2.882 MB / 0.5682 GB, free: 42.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006042/0.5892, allocations: 396.5 kB / 0.5685 GB, free: 41.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001876/0.5894, allocations: 35.89 kB / 0.5686 GB, free: 41.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000688/0.5901, allocations: 67.17 kB / 0.5686 GB, free: 41.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.5903, allocations: 98.91 kB / 0.5687 GB, free: 41.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-05/0.5904, allocations: 30.38 kB / 0.5688 GB, free: 41.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001519/0.5919, allocations: 1.144 MB / 0.5699 GB, free: 41.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5919, allocations: 3.094 kB / 0.5699 GB, free: 41.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002009/0.5939, allocations: 0.5432 MB / 0.5704 GB, free: 40.88 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 (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%) 1,(1,100.0%) 8,(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.0002851/0.5942, allocations: 153.2 kB / 0.5705 GB, free: 40.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002434/0.5967, allocations: 1.845 MB / 0.5724 GB, free: 38.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.5967, allocations: 0 / 0.5724 GB, free: 38.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001771/0.5985, allocations: 1.494 MB / 0.5738 GB, free: 37.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001966/0.6004, allocations: 0.5092 MB / 0.5743 GB, free: 36.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008569/0.609, allocations: 6.908 MB / 0.5811 GB, free: 29.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001546/0.6106, allocations: 2.354 MB / 0.5834 GB, free: 27.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001374/0.612, allocations: 388 kB / 0.5837 GB, free: 27.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002702/0.6123, allocations: 119.4 kB / 0.5838 GB, free: 26.96 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.6123, allocations: 2.297 kB / 0.5838 GB, free: 26.96 MB / 366.1 MB Notification: Performance of Templates: time 0.03966/0.6519, allocations: 25.68 MB / 0.6089 GB, free: 1.547 MB / 366.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: