Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_DOL.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_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_DOL") translateModel(HanserModelica.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 108 kB / 15.6 MB, free: 132 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.461/1.461, allocations: 222.9 MB / 239.2 MB, free: 4.633 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.001753/0.001753, allocations: 188.5 kB / 289.5 MB, free: 2.348 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0338/0.0338, allocations: 8.793 MB / 348.5 MB, free: 4.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002872/0.002872, allocations: 79.83 kB / 411.1 MB, free: 42.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1134, allocations: 51.56 MB / 462.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.03846/0.1519, allocations: 38.31 MB / 0.4892 GB, free: 7.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0215/0.1734, allocations: 10.04 MB / 0.499 GB, free: 13.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008934/0.1824, allocations: 291.1 kB / 0.4993 GB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02368/0.2061, allocations: 10.13 MB / 0.5092 GB, free: 3.387 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01453/0.2207, allocations: 4.045 MB / 0.5131 GB, free: 15.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008197/0.2289, allocations: 2.372 MB / 0.5154 GB, free: 12.96 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2924/0.5213, allocations: 16.26 MB / 0.5313 GB, free: 6.961 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07246/0.5938, allocations: 31.39 MB / 0.562 GB, free: 2.219 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01842/0.6123, allocations: 8.452 MB / 0.5702 GB, free: 0 / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0222/0.6346, allocations: 9.382 MB / 0.5794 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01053/0.6452, allocations: 2.418 MB / 0.5818 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01541/0.6607, allocations: 2.822 MB / 0.5845 GB, free: 4.797 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01071/0.6714, allocations: 4.807 MB / 0.5892 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02518/0.6966, allocations: 9.207 MB / 0.5982 GB, free: 8.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05556/0.7523, allocations: 31.92 MB / 0.6294 GB, free: 10.42 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.7523, allocations: 0 / 0.6294 GB, free: 10.42 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.7523, allocations: 0 / 0.6294 GB, free: 10.42 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001054/0.7534, allocations: 0 / 0.6294 GB, free: 10.42 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.06576/0.8192, allocations: 18.74 MB / 0.6477 GB, free: 7.688 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.8192, allocations: 8.031 kB / 0.6477 GB, free: 7.68 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04681/0.866, allocations: 8.256 MB / 0.6557 GB, free: 15.5 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02778/0.8939, allocations: 9.923 MB / 0.6654 GB, free: 5.941 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001334/0.8953, allocations: 1.069 MB / 0.6665 GB, free: 4.883 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007146/0.9024, allocations: 1.399 MB / 0.6678 GB, free: 3.496 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06887/0.9713, allocations: 22.75 MB / 0.6901 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007379/0.9722, allocations: 23.8 kB / 0.6901 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005814/0.978, allocations: 0.5772 MB / 0.6906 GB, free: 12.11 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008302/0.9788, allocations: 0.7716 MB / 0.6914 GB, free: 11.34 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5412/1.52, allocations: 21 MB / 0.7119 GB, free: 147.5 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1371/1.657, allocations: 72.92 MB / 0.7831 GB, free: 100.1 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03224/1.69, allocations: 42.41 MB / 0.8245 GB, free: 54.27 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009602/1.699, allocations: 5.208 MB / 0.8296 GB, free: 49.06 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02675/1.726, allocations: 12.73 MB / 0.842 GB, free: 36.38 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.406e-05/1.726, allocations: 90.77 kB / 0.8421 GB, free: 36.28 MB / 494.1 MB Notification: Performance of pre-optimization done (n=498): time 7.324e-06/1.726, allocations: 0 / 0.8421 GB, free: 36.28 MB / 494.1 MB Notification: Performance of matching and sorting (n=506): time 0.06654/1.793, allocations: 26.35 MB / 0.8679 GB, free: 9.594 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.532e-05/1.793, allocations: 133.3 kB / 0.868 GB, free: 9.441 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01278/1.806, allocations: 5.767 MB / 0.8736 GB, free: 3.695 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001246/1.807, allocations: 105.7 kB / 0.8737 GB, free: 3.586 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004794/1.812, allocations: 6.157 MB / 0.8797 GB, free: 13.39 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.003169/1.815, allocations: 1.731 MB / 0.8814 GB, free: 11.68 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006364/1.821, allocations: 1.461 MB / 0.8828 GB, free: 10.21 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001259/1.821, allocations: 309.1 kB / 0.8831 GB, free: 9.902 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007407/1.829, allocations: 3.63 MB / 0.8867 GB, free: 6.27 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.325/2.154, allocations: 6.47 MB / 0.893 GB, free: 149.8 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01486/2.169, allocations: 10.76 MB / 0.9035 GB, free: 146 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001465/2.169, allocations: 30.38 kB / 0.9035 GB, free: 146 MB / 0.4982 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02837/2.197, allocations: 12.08 MB / 0.9153 GB, free: 143 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001047/2.197, allocations: 51.75 kB / 0.9154 GB, free: 143 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000219/2.198, allocations: 89.62 kB / 0.9155 GB, free: 143 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004344/2.202, allocations: 1.62 MB / 0.9171 GB, free: 142.6 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006985/2.209, allocations: 1.666 MB / 0.9187 GB, free: 142.4 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02116/2.23, allocations: 19.67 MB / 0.9379 GB, free: 129.4 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008286/2.239, allocations: 428.6 kB / 0.9383 GB, free: 129.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002306/2.241, allocations: 368.9 kB / 0.9387 GB, free: 129.2 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 423 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (865): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * 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): 5 systems {(1,1,100.0%), (12,64,52.1%), (1,5,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01272/2.254, allocations: 5.188 MB / 0.9437 GB, free: 126.8 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002732/2.256, allocations: 0.594 MB / 0.9443 GB, free: 126.8 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02079/2.277, allocations: 9.371 MB / 0.9535 GB, free: 122.9 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009343/2.287, allocations: 5.883 MB / 0.9592 GB, free: 119.9 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.543e-05/2.287, allocations: 20 kB / 0.9592 GB, free: 119.9 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-05/2.287, allocations: 30.14 kB / 0.9592 GB, free: 119.9 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0399/2.327, allocations: 21.03 MB / 0.9798 GB, free: 102.2 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.926e-05/2.327, allocations: 8 kB / 0.9798 GB, free: 102.2 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003355/2.33, allocations: 0.866 MB / 0.9806 GB, free: 101.3 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004476/2.335, allocations: 1.656 MB / 0.9823 GB, free: 99.62 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006092/2.335, allocations: 120 kB / 0.9824 GB, free: 99.51 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02333/2.359, allocations: 23.26 MB / 1.005 GB, free: 75.55 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/2.359, allocations: 8.094 kB / 1.005 GB, free: 75.54 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0246/2.383, allocations: 13.71 MB / 1.018 GB, free: 61.73 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004017/2.387, allocations: 1.365 MB / 1.02 GB, free: 60.35 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002223/2.39, allocations: 108 kB / 1.02 GB, free: 60.24 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004522/2.394, allocations: 279.7 kB / 1.02 GB, free: 59.97 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001461/2.396, allocations: 414.2 kB / 1.021 GB, free: 59.56 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007057/2.396, allocations: 156 kB / 1.021 GB, free: 59.41 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.007698/2.404, allocations: 3.887 MB / 1.025 GB, free: 55.55 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.142e-06/2.404, allocations: 0 / 1.025 GB, free: 55.55 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01363/2.418, allocations: 2.349 MB / 1.027 GB, free: 53.21 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (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,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (1,13,100.0%), (1,5,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (12,64,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001595/2.419, allocations: 316.8 kB / 1.027 GB, free: 52.91 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.03359/2.453, allocations: 15.87 MB / 1.043 GB, free: 37 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.825e-05/2.453, allocations: 8.125 kB / 1.043 GB, free: 36.99 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.01002/2.463, allocations: 5.459 MB / 1.048 GB, free: 31.45 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01345/2.477, allocations: 1.629 MB / 1.05 GB, free: 29.86 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0561/2.533, allocations: 24.9 MB / 1.074 GB, free: 4.879 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2688/2.802, allocations: 8.842 MB / 1.082 GB, free: 136.4 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.0102/2.812, allocations: 2.533 MB / 1.085 GB, free: 136.3 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002055/2.814, allocations: 458.2 kB / 1.085 GB, free: 136.3 MB / 0.4982 GB Notification: Performance of SimCode: time 2.265e-06/2.814, allocations: 2.812 kB / 1.085 GB, free: 136.3 MB / 0.4982 GB Notification: Performance of Templates: time 0.1879/3.002, allocations: 102.2 MB / 1.185 GB, free: 67.81 MB / 0.4982 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_DOL.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_DOL.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe 2>&1)