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.007832/0.007832, allocations: 101.2 kB / 15.88 MB, free: 6.328 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.736/1.736, allocations: 222.9 MB / 239.5 MB, free: 4.789 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.001769/0.001768, allocations: 188.5 kB / 289.8 MB, free: 2.523 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05049/0.05049, allocations: 8.798 MB / 348.7 MB, free: 4.922 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 80.77 kB / 411.1 MB, free: 42.42 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.1582, allocations: 51.57 MB / 462.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.06892/0.2271, allocations: 37.62 MB / 0.4885 GB, free: 9.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03528/0.2625, allocations: 9.923 MB / 0.4982 GB, free: 15.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01537/0.2779, allocations: 283 kB / 0.4985 GB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03524/0.3132, allocations: 9.523 MB / 0.5078 GB, free: 5.391 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02379/0.337, allocations: 3.684 MB / 0.5114 GB, free: 1.695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01312/0.3502, allocations: 2.207 MB / 0.5135 GB, free: 15.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.7239/1.074, allocations: 16.62 MB / 0.5298 GB, free: 6.418 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05255/1.127, allocations: 25.49 MB / 0.5546 GB, free: 1.941 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01729/1.144, allocations: 7.182 MB / 0.5617 GB, free: 1.309 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02055/1.165, allocations: 8.839 MB / 0.5703 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00905/1.174, allocations: 1.536 MB / 0.5718 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0128/1.187, allocations: 1.935 MB / 0.5737 GB, free: 15.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01304/1.2, allocations: 3.903 MB / 0.5775 GB, free: 13.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02687/1.227, allocations: 8.265 MB / 0.5856 GB, free: 5.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03846/1.265, allocations: 27.84 MB / 0.6128 GB, free: 11.85 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/1.265, allocations: 0 / 0.6128 GB, free: 11.85 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.355e-06/1.265, allocations: 0 / 0.6128 GB, free: 11.85 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.00106/1.266, allocations: 0 / 0.6128 GB, free: 11.85 MB / 414.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.07263/1.339, allocations: 18.74 MB / 0.6311 GB, free: 9.121 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/1.339, allocations: 8.031 kB / 0.6311 GB, free: 9.113 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05168/1.391, allocations: 8.259 MB / 0.6391 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02735/1.418, allocations: 9.879 MB / 0.6488 GB, free: 7.414 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001921/1.42, allocations: 1.066 MB / 0.6498 GB, free: 6.359 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008648/1.429, allocations: 1.399 MB / 0.6512 GB, free: 4.973 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07803/1.507, allocations: 22.78 MB / 0.6734 GB, free: 14.14 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008666/1.508, allocations: 11.91 kB / 0.6734 GB, free: 14.13 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006919/1.515, allocations: 0.58 MB / 0.674 GB, free: 13.56 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009871/1.516, allocations: 0.7754 MB / 0.6748 GB, free: 12.79 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05776/1.574, allocations: 21.02 MB / 0.6953 GB, free: 7.758 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5584/2.132, allocations: 72.92 MB / 0.7665 GB, free: 109 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03477/2.167, allocations: 42.45 MB / 0.808 GB, free: 67.73 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009805/2.177, allocations: 5.236 MB / 0.8131 GB, free: 65.04 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02713/2.204, allocations: 12.81 MB / 0.8256 GB, free: 52.99 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.6e-05/2.204, allocations: 94.72 kB / 0.8257 GB, free: 52.89 MB / 494.1 MB Notification: Performance of pre-optimization done (n=504): time 6.923e-06/2.204, allocations: 0 / 0.8257 GB, free: 52.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=512): time 0.06206/2.266, allocations: 26.78 MB / 0.8518 GB, free: 25.76 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.906e-05/2.266, allocations: 129.4 kB / 0.852 GB, free: 25.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01482/2.281, allocations: 5.759 MB / 0.8576 GB, free: 19.87 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001644/2.283, allocations: 105.7 kB / 0.8577 GB, free: 19.76 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004918/2.288, allocations: 6.153 MB / 0.8637 GB, free: 13.57 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002626/2.29, allocations: 1.746 MB / 0.8654 GB, free: 11.84 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00265/2.293, allocations: 1.473 MB / 0.8668 GB, free: 10.36 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.579e-05/2.293, allocations: 313.1 kB / 0.8671 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005647/2.299, allocations: 3.661 MB / 0.8707 GB, free: 6.391 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008917/2.308, allocations: 6.514 MB / 0.8771 GB, free: 14.58 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02542/2.333, allocations: 10.84 MB / 0.8877 GB, free: 2.414 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001503/2.333, allocations: 24 kB / 0.8877 GB, free: 2.391 MB / 0.4982 GB Notification: Performance of matching and sorting (n=968) (initialization): time 0.5291/2.863, allocations: 12.16 MB / 0.8996 GB, free: 152.5 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001596/2.863, allocations: 48.72 kB / 0.8996 GB, free: 152.4 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004613/2.863, allocations: 92.53 kB / 0.8997 GB, free: 152.4 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008569/2.872, allocations: 1.603 MB / 0.9013 GB, free: 152.4 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01451/2.886, allocations: 1.662 MB / 0.9029 GB, free: 152.4 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03383/2.92, allocations: 18.25 MB / 0.9207 GB, free: 143 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01053/2.931, allocations: 429.5 kB / 0.9211 GB, free: 142.8 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002595/2.933, allocations: 364.8 kB / 0.9215 GB, free: 142.8 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.01826/2.952, allocations: 5.195 MB / 0.9265 GB, free: 140.3 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003488/2.955, allocations: 0.5972 MB / 0.9271 GB, free: 140.3 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02094/2.976, allocations: 9.453 MB / 0.9363 GB, free: 136.4 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009686/2.986, allocations: 5.959 MB / 0.9422 GB, free: 134.1 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.235e-05/2.986, allocations: 21.78 kB / 0.9422 GB, free: 134.1 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001069/2.986, allocations: 24.7 kB / 0.9422 GB, free: 134.1 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04807/3.034, allocations: 21.15 MB / 0.9629 GB, free: 117.8 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.113e-05/3.034, allocations: 4 kB / 0.9629 GB, free: 117.8 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003772/3.038, allocations: 0.8699 MB / 0.9637 GB, free: 117 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005653/3.044, allocations: 1.64 MB / 0.9653 GB, free: 115.3 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001004/3.045, allocations: 124 kB / 0.9654 GB, free: 115.2 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03784/3.083, allocations: 21.37 MB / 0.9863 GB, free: 93.16 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.006e-05/3.083, allocations: 11.94 kB / 0.9863 GB, free: 93.14 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03816/3.121, allocations: 13.85 MB / 0.9999 GB, free: 79.08 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006629/3.128, allocations: 1.363 MB / 1.001 GB, free: 77.7 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00379/3.132, allocations: 108 kB / 1.001 GB, free: 77.59 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00924/3.141, allocations: 283.7 kB / 1.002 GB, free: 77.31 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002635/3.144, allocations: 413.1 kB / 1.002 GB, free: 76.91 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009254/3.145, allocations: 155.9 kB / 1.002 GB, free: 76.76 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.01324/3.158, allocations: 3.887 MB / 1.006 GB, free: 72.9 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.603e-06/3.158, allocations: 0 / 1.006 GB, free: 72.9 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.02122/3.179, allocations: 2.342 MB / 1.008 GB, free: 70.56 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.002399/3.182, allocations: 322.7 kB / 1.008 GB, free: 70.25 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0289/3.21, allocations: 9.953 MB / 1.018 GB, free: 60.21 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-05/3.211, allocations: 4 kB / 1.018 GB, free: 60.2 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.01435/3.225, allocations: 5.492 MB / 1.024 GB, free: 54.63 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01041/3.235, allocations: 1.53 MB / 1.025 GB, free: 53.12 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08007/3.316, allocations: 30.51 MB / 1.055 GB, free: 22.51 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02462/3.34, allocations: 8.571 MB / 1.063 GB, free: 13.89 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004733/3.345, allocations: 0.5149 MB / 1.064 GB, free: 13.38 MB / 0.4982 GB Notification: Performance of SimCode: time 3.236e-06/3.345, allocations: 0 / 1.064 GB, free: 13.38 MB / 0.4982 GB Notification: Performance of Templates: time 2.315/5.66, allocations: 0.6677 GB / 1.731 GB, free: 123.4 MB / 0.5294 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)