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.0009375/0.0009376, allocations: 98.72 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 223.3 MB / 240 MB, free: 5.461 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.0009854/0.0009855, allocations: 184.5 kB / 291.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03554/0.03554, allocations: 8.81 MB / 351.2 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003386/0.0003389, allocations: 11.86 kB / 414.5 MB, free: 42.7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06652/0.06687, allocations: 52.55 MB / 467 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01198/0.07888, allocations: 12.35 MB / 479.4 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006796/0.08571, allocations: 4.24 MB / 483.6 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001468/0.0872, allocations: 79.69 kB / 483.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002143/0.08936, allocations: 0.9018 MB / 484.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0028/0.09217, allocations: 1.158 MB / 485.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001586/0.09377, allocations: 0.7862 MB / 486.5 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004148/0.09793, allocations: 4.3 MB / 490.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00314/0.1011, allocations: 2.9 MB / 493.7 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001424/0.1025, allocations: 1.33 MB / 495.1 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001746/0.1043, allocations: 1.692 MB / 496.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003034/0.1046, allocations: 220 kB / 497 MB, free: 15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008433/0.1054, allocations: 415.7 kB / 497.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005989/0.1061, allocations: 0.7782 MB / 498.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001459/0.1075, allocations: 1.79 MB / 500 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004207/0.1117, allocations: 5.656 MB / 0.4938 GB, free: 6.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.1118, allocations: 0 / 0.4938 GB, free: 6.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1118, allocations: 0 / 0.4938 GB, free: 6.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.013e-05/0.1118, allocations: 0 / 0.4938 GB, free: 6.336 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.008425/0.1202, allocations: 3.752 MB / 0.4974 GB, free: 2.516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.1203, allocations: 12.03 kB / 0.4974 GB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004363/0.1247, allocations: 0.8318 MB / 0.4982 GB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003524/0.1282, allocations: 2.368 MB / 0.5006 GB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.1284, allocations: 243.1 kB / 0.5008 GB, free: 15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000497/0.1289, allocations: 339.9 kB / 0.5011 GB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007209/0.1361, allocations: 4.515 MB / 0.5055 GB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.894e-05/0.1362, allocations: 0 / 0.5055 GB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003201/0.1365, allocations: 140 kB / 0.5057 GB, free: 9.977 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001436/0.1367, allocations: 166.7 kB / 0.5058 GB, free: 9.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006294/0.143, allocations: 3.829 MB / 0.5096 GB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01902/0.162, allocations: 14.25 MB / 0.5235 GB, free: 7.305 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005997/0.168, allocations: 6.141 MB / 0.5295 GB, free: 364 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1542/0.3223, allocations: 1.214 MB / 0.5307 GB, free: 64.21 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004942/0.3272, allocations: 3.328 MB / 0.5339 GB, free: 63.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.31e-05/0.3273, allocations: 45.94 kB / 0.534 GB, free: 63.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 2.554e-06/0.3273, allocations: 7.453 kB / 0.534 GB, free: 63.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.009751/0.3371, allocations: 5.293 MB / 0.5391 GB, free: 62.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.494e-05/0.3371, allocations: 67.22 kB / 0.5392 GB, free: 62.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00256/0.3397, allocations: 1.682 MB / 0.5408 GB, free: 61.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.734e-05/0.3398, allocations: 50.3 kB / 0.5409 GB, free: 61.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000981/0.3407, allocations: 1.492 MB / 0.5423 GB, free: 61.08 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002723/0.341, allocations: 417.9 kB / 0.5427 GB, free: 60.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001774/0.3412, allocations: 129.4 kB / 0.5429 GB, free: 60.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.141e-05/0.3412, allocations: 305.7 kB / 0.5432 GB, free: 60.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.3423, allocations: 0.6354 MB / 0.5438 GB, free: 60.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001225/0.3436, allocations: 1.142 MB / 0.5449 GB, free: 59.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002303/0.3459, allocations: 1.887 MB / 0.5467 GB, free: 58.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.378e-05/0.3459, allocations: 8.75 kB / 0.5467 GB, free: 58.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003354/0.3493, allocations: 2.207 MB / 0.5489 GB, free: 57.33 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.3493, allocations: 14.02 kB / 0.5489 GB, free: 57.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-05/0.3493, allocations: 16.28 kB / 0.5489 GB, free: 57.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003569/0.3497, allocations: 139.9 kB / 0.5491 GB, free: 57.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001497/0.3512, allocations: 396.7 kB / 0.5494 GB, free: 57.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001879/0.3531, allocations: 3.086 MB / 0.5524 GB, free: 54.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001148/0.3543, allocations: 74.78 kB / 0.5525 GB, free: 54.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001191/0.3544, allocations: 79.83 kB / 0.5526 GB, free: 54.26 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.001486/0.3559, allocations: 1.035 MB / 0.5536 GB, free: 53.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003231/0.3562, allocations: 176.3 kB / 0.5538 GB, free: 53.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003135/0.3594, allocations: 2.074 MB / 0.5558 GB, free: 52.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.3594, allocations: 11.88 kB / 0.5558 GB, free: 52.56 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.3594, allocations: 3.969 kB / 0.5558 GB, free: 52.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.3594, allocations: 4.688 kB / 0.5558 GB, free: 52.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006142/0.3656, allocations: 4.812 MB / 0.5605 GB, free: 50.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.3656, allocations: 2.844 kB / 0.5605 GB, free: 50.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007191/0.3663, allocations: 174.3 kB / 0.5607 GB, free: 50 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001042/0.3674, allocations: 442.5 kB / 0.5611 GB, free: 49.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.409e-05/0.3675, allocations: 35.61 kB / 0.5611 GB, free: 49.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007307/0.3748, allocations: 10.11 MB / 0.571 GB, free: 40.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/0.3748, allocations: 3.719 kB / 0.571 GB, free: 40.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003752/0.3785, allocations: 2.885 MB / 0.5738 GB, free: 38.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005379/0.3791, allocations: 394.8 kB / 0.5742 GB, free: 37.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002251/0.3793, allocations: 32 kB / 0.5742 GB, free: 37.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008467/0.3802, allocations: 71.89 kB / 0.5743 GB, free: 37.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.3804, allocations: 97.31 kB / 0.5744 GB, free: 37.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.579e-05/0.3804, allocations: 35.98 kB / 0.5744 GB, free: 37.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001302/0.3817, allocations: 1.15 MB / 0.5756 GB, free: 36.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3818, allocations: 4 kB / 0.5756 GB, free: 36.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001681/0.3834, allocations: 0.543 MB / 0.5761 GB, free: 35.93 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.0002334/0.3837, allocations: 155.3 kB / 0.5762 GB, free: 35.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002386/0.3861, allocations: 1.855 MB / 0.5781 GB, free: 33.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3861, allocations: 3.938 kB / 0.5781 GB, free: 33.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001816/0.3879, allocations: 1.494 MB / 0.5795 GB, free: 32.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002425/0.3904, allocations: 0.5094 MB / 0.58 GB, free: 31.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007857/0.3982, allocations: 7.212 MB / 0.5871 GB, free: 24.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00152/0.3998, allocations: 2.308 MB / 0.5893 GB, free: 22.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000369/0.4001, allocations: 131.4 kB / 0.5894 GB, free: 22.11 MB / 366.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4001, allocations: 0 / 0.5894 GB, free: 22.11 MB / 366.1 MB Notification: Performance of Templates: time 0.09435/0.4945, allocations: 104.5 MB / 0.6915 GB, free: 13.62 MB / 462.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)