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.0008889/0.000889, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.373/1.373, allocations: 223.3 MB / 239.4 MB, free: 5.492 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.001164/0.001164, allocations: 176.6 kB / 290.6 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03473/0.03473, allocations: 8.799 MB / 350.5 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003643/0.0003643, allocations: 9.938 kB / 413.8 MB, free: 42.82 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1198, allocations: 52.56 MB / 466.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.03728/0.1571, allocations: 36.16 MB / 0.4907 GB, free: 8.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02492/0.1821, allocations: 9.842 MB / 0.5004 GB, free: 14.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009812/0.1919, allocations: 271.1 kB / 0.5006 GB, free: 14.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009664/0.2016, allocations: 2.453 MB / 0.503 GB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01636/0.218, allocations: 3.658 MB / 0.5066 GB, free: 8.551 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008261/0.2263, allocations: 2.105 MB / 0.5086 GB, free: 6.457 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0247/0.251, allocations: 16.61 MB / 0.5249 GB, free: 5.785 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.5184/0.7694, allocations: 29.3 MB / 0.5535 GB, free: 4.422 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01268/0.7822, allocations: 5.938 MB / 0.5593 GB, free: 3.754 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01367/0.7959, allocations: 7.206 MB / 0.5663 GB, free: 2.262 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005192/0.8011, allocations: 0.9366 MB / 0.5672 GB, free: 2.262 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009011/0.8101, allocations: 1.331 MB / 0.5685 GB, free: 2.238 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006278/0.8165, allocations: 3.043 MB / 0.5715 GB, free: 1.711 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01674/0.8332, allocations: 7.276 MB / 0.5786 GB, free: 15.56 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04115/0.8744, allocations: 30.11 MB / 0.608 GB, free: 6.367 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.8745, allocations: 0 / 0.608 GB, free: 6.367 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.8745, allocations: 0 / 0.608 GB, free: 6.367 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.001021/0.8755, allocations: 0 / 0.608 GB, free: 6.367 MB / 398.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.05082/0.9263, allocations: 15.61 MB / 0.6232 GB, free: 6.742 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.146e-05/0.9264, allocations: 8.031 kB / 0.6233 GB, free: 6.734 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04649/0.9729, allocations: 8.285 MB / 0.6313 GB, free: 14.52 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02497/0.9979, allocations: 9.913 MB / 0.641 GB, free: 4.973 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00143/0.9994, allocations: 1.06 MB / 0.6421 GB, free: 3.922 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00696/1.006, allocations: 1.407 MB / 0.6434 GB, free: 2.531 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0665/1.073, allocations: 22.78 MB / 0.6657 GB, free: 11.7 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000606/1.074, allocations: 23.27 kB / 0.6657 GB, free: 11.68 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004857/1.078, allocations: 0.5794 MB / 0.6663 GB, free: 11.11 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008223/1.079, allocations: 0.7755 MB / 0.667 GB, free: 10.33 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04653/1.126, allocations: 21.05 MB / 0.6876 GB, free: 5.281 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3816/1.507, allocations: 73.14 MB / 0.759 GB, free: 115.6 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03332/1.541, allocations: 42.44 MB / 0.8004 GB, free: 74.36 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009183/1.55, allocations: 5.268 MB / 0.8056 GB, free: 71.66 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02847/1.579, allocations: 12.83 MB / 0.8181 GB, free: 63.11 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.212e-05/1.579, allocations: 93.44 kB / 0.8182 GB, free: 63.02 MB / 494.1 MB Notification: Performance of pre-optimization done (n=504): time 7.985e-06/1.579, allocations: 0 / 0.8182 GB, free: 63.02 MB / 494.1 MB Notification: Performance of matching and sorting (n=512): time 0.06254/1.641, allocations: 26.9 MB / 0.8445 GB, free: 38.42 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.323e-05/1.641, allocations: 129.4 kB / 0.8446 GB, free: 38.27 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0125/1.654, allocations: 5.759 MB / 0.8502 GB, free: 32.53 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00126/1.655, allocations: 109.7 kB / 0.8503 GB, free: 32.42 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003981/1.659, allocations: 6.157 MB / 0.8563 GB, free: 26.23 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002863/1.662, allocations: 1.745 MB / 0.8581 GB, free: 24.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002543/1.665, allocations: 0.5925 MB / 0.8586 GB, free: 23.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.197e-05/1.665, allocations: 301.1 kB / 0.8589 GB, free: 23.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006958/1.672, allocations: 3.684 MB / 0.8625 GB, free: 19.91 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008195/1.68, allocations: 6.529 MB / 0.8689 GB, free: 12.09 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01468/1.695, allocations: 10.86 MB / 0.8795 GB, free: 15.9 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001225/1.695, allocations: 31.94 kB / 0.8795 GB, free: 15.87 MB / 0.4982 GB Notification: Performance of matching and sorting (n=968) (initialization): time 0.03035/1.725, allocations: 12.2 MB / 0.8914 GB, free: 3.605 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001761/1.725, allocations: 44 kB / 0.8915 GB, free: 3.562 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002823/1.726, allocations: 96.56 kB / 0.8916 GB, free: 3.469 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005854/1.732, allocations: 1.601 MB / 0.8931 GB, free: 1.852 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008209/1.74, allocations: 1.665 MB / 0.8948 GB, free: 188 kB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2886/2.028, allocations: 18.25 MB / 0.9126 GB, free: 147.2 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007693/2.036, allocations: 436.2 kB / 0.913 GB, free: 147.2 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001747/2.038, allocations: 368 kB / 0.9134 GB, free: 147.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 (868): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,53.5%), (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.0109/2.049, allocations: 5.185 MB / 0.9184 GB, free: 144.8 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001653/2.051, allocations: 0.5963 MB / 0.919 GB, free: 144.8 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01672/2.067, allocations: 9.476 MB / 0.9283 GB, free: 140.9 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009069/2.076, allocations: 5.966 MB / 0.9341 GB, free: 138.6 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.46e-05/2.077, allocations: 19.81 kB / 0.9341 GB, free: 138.6 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.718e-05/2.077, allocations: 26.3 kB / 0.9341 GB, free: 138.6 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03613/2.113, allocations: 21.18 MB / 0.9548 GB, free: 129.2 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.308e-05/2.113, allocations: 3.781 kB / 0.9548 GB, free: 129.2 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003411/2.116, allocations: 0.8708 MB / 0.9557 GB, free: 129 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004377/2.121, allocations: 1.645 MB / 0.9573 GB, free: 128.1 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006023/2.121, allocations: 122.5 kB / 0.9574 GB, free: 128.1 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02134/2.143, allocations: 21.38 MB / 0.9783 GB, free: 106.5 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.812e-06/2.143, allocations: 8 kB / 0.9783 GB, free: 106.5 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02098/2.164, allocations: 13.89 MB / 0.9918 GB, free: 92.57 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003513/2.167, allocations: 1.373 MB / 0.9932 GB, free: 91.29 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001126/2.168, allocations: 112 kB / 0.9933 GB, free: 91.18 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003103/2.171, allocations: 295.8 kB / 0.9936 GB, free: 90.89 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009203/2.172, allocations: 412.3 kB / 0.994 GB, free: 90.49 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003051/2.173, allocations: 152 kB / 0.9941 GB, free: 90.34 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.005804/2.178, allocations: 3.891 MB / 0.9979 GB, free: 86.48 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.5e-07/2.178, allocations: 0 / 0.9979 GB, free: 86.48 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.009329/2.188, allocations: 2.345 MB / 1 GB, free: 84.14 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 (441): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0009946/2.189, allocations: 315.1 kB / 1 GB, free: 83.84 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01553/2.204, allocations: 9.975 MB / 1.01 GB, free: 73.77 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.299e-05/2.204, allocations: 8.938 kB / 1.01 GB, free: 73.76 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.009205/2.214, allocations: 5.514 MB / 1.016 GB, free: 68.17 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01537/2.229, allocations: 1.542 MB / 1.017 GB, free: 66.66 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05623/2.285, allocations: 31.08 MB / 1.047 GB, free: 35.47 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01838/2.304, allocations: 8.848 MB / 1.056 GB, free: 26.57 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.01087/2.315, allocations: 2.523 MB / 1.059 GB, free: 24.04 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002693/2.317, allocations: 459.3 kB / 1.059 GB, free: 23.59 MB / 0.4982 GB Notification: Performance of SimCode: time 1.363e-06/2.317, allocations: 0 / 1.059 GB, free: 23.59 MB / 0.4982 GB Notification: Performance of Templates: time 0.4461/2.764, allocations: 97.69 MB / 1.154 GB, free: 96.8 MB / 0.4982 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_DOL.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: