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.0009617/0.0009616, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.276/1.276, allocations: 222.9 MB / 238.8 MB, free: 4.652 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.001105/0.001105, allocations: 188.5 kB / 289.1 MB, free: 2.41 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03233/0.03233, allocations: 8.786 MB / 348.1 MB, free: 4.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 74.53 kB / 410.4 MB, free: 42.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09113/0.09242, allocations: 51.56 MB / 462 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.03119/0.1236, allocations: 37.62 MB / 499.6 MB, free: 9.094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01965/0.1433, allocations: 9.927 MB / 0.4976 GB, free: 15.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007985/0.1513, allocations: 283 kB / 0.4978 GB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02159/0.1729, allocations: 9.517 MB / 0.5071 GB, free: 5.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0146/0.1876, allocations: 3.691 MB / 0.5107 GB, free: 1.621 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008236/0.1958, allocations: 2.205 MB / 0.5129 GB, free: 15.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2388/0.4346, allocations: 16.62 MB / 0.5291 GB, free: 6.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04474/0.4794, allocations: 25.48 MB / 0.554 GB, free: 2.215 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01453/0.494, allocations: 7.175 MB / 0.561 GB, free: 1.582 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01682/0.5109, allocations: 8.921 MB / 0.5697 GB, free: 0 / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006805/0.5177, allocations: 1.536 MB / 0.5712 GB, free: 0 / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00983/0.5276, allocations: 1.955 MB / 0.5731 GB, free: 0 / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007833/0.5355, allocations: 3.92 MB / 0.577 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01761/0.5531, allocations: 8.269 MB / 0.585 GB, free: 5.867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03359/0.5867, allocations: 31.3 MB / 0.6156 GB, free: 8.949 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.383e-06/0.5868, allocations: 0 / 0.6156 GB, free: 8.949 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5868, allocations: 0 / 0.6156 GB, free: 8.949 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0009504/0.5878, allocations: 0 / 0.6156 GB, free: 8.949 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.05739/0.6452, allocations: 18.75 MB / 0.6339 GB, free: 6.223 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.6452, allocations: 12.03 kB / 0.6339 GB, free: 6.211 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0446/0.6898, allocations: 8.248 MB / 0.642 GB, free: 14.04 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02063/0.7105, allocations: 9.88 MB / 0.6516 GB, free: 4.52 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001176/0.7117, allocations: 1.065 MB / 0.6527 GB, free: 3.465 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005299/0.717, allocations: 1.414 MB / 0.654 GB, free: 2.062 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05619/0.7732, allocations: 22.76 MB / 0.6763 GB, free: 11.25 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004786/0.7737, allocations: 27.55 kB / 0.6763 GB, free: 11.23 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00365/0.7774, allocations: 0.5789 MB / 0.6769 GB, free: 10.66 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007492/0.7782, allocations: 0.7755 MB / 0.6776 GB, free: 9.883 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03915/0.8173, allocations: 21.02 MB / 0.6981 GB, free: 4.855 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3239/1.141, allocations: 72.93 MB / 0.7694 GB, free: 110.3 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02757/1.169, allocations: 42.45 MB / 0.8108 GB, free: 69.02 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008284/1.177, allocations: 5.241 MB / 0.8159 GB, free: 66.32 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.022/1.199, allocations: 12.81 MB / 0.8284 GB, free: 53.63 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.531e-05/1.199, allocations: 94.7 kB / 0.8285 GB, free: 53.53 MB / 494.1 MB Notification: Performance of pre-optimization done (n=504): time 7.884e-06/1.199, allocations: 0 / 0.8285 GB, free: 53.53 MB / 494.1 MB Notification: Performance of matching and sorting (n=512): time 0.0542/1.254, allocations: 26.78 MB / 0.8547 GB, free: 26.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/1.254, allocations: 133.4 kB / 0.8548 GB, free: 26.25 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007821/1.262, allocations: 5.759 MB / 0.8604 GB, free: 20.51 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001123/1.263, allocations: 105.7 kB / 0.8605 GB, free: 20.4 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002562/1.265, allocations: 6.153 MB / 0.8665 GB, free: 14.21 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001925/1.267, allocations: 1.746 MB / 0.8683 GB, free: 12.48 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002137/1.269, allocations: 1.469 MB / 0.8697 GB, free: 11 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.543e-05/1.269, allocations: 305.1 kB / 0.87 GB, free: 10.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004664/1.274, allocations: 3.673 MB / 0.8736 GB, free: 7.027 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006125/1.28, allocations: 6.51 MB / 0.8799 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01433/1.295, allocations: 10.84 MB / 0.8905 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.434e-05/1.295, allocations: 28 kB / 0.8905 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of matching and sorting (n=968) (initialization): time 0.2664/1.561, allocations: 12.17 MB / 0.9024 GB, free: 155.1 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.82e-05/1.561, allocations: 49.42 kB / 0.9025 GB, free: 155 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001943/1.561, allocations: 92.09 kB / 0.9026 GB, free: 155 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004997/1.566, allocations: 1.604 MB / 0.9041 GB, free: 155 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007556/1.574, allocations: 1.665 MB / 0.9057 GB, free: 155 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02043/1.595, allocations: 18.24 MB / 0.9236 GB, free: 145.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005457/1.6, allocations: 435.2 kB / 0.924 GB, free: 145.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00088/1.601, allocations: 362.9 kB / 0.9243 GB, free: 145.7 MB / 0.4981 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.006874/1.608, allocations: 5.19 MB / 0.9294 GB, free: 143.2 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001131/1.609, allocations: 0.594 MB / 0.93 GB, free: 143.2 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01393/1.623, allocations: 9.454 MB / 0.9392 GB, free: 139.3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008288/1.631, allocations: 5.95 MB / 0.945 GB, free: 137 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.379e-05/1.631, allocations: 21.56 kB / 0.945 GB, free: 137 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-05/1.631, allocations: 26.77 kB / 0.9451 GB, free: 137 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0328/1.664, allocations: 21.16 MB / 0.9657 GB, free: 122 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-05/1.664, allocations: 8.781 kB / 0.9657 GB, free: 122 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003266/1.667, allocations: 0.8659 MB / 0.9666 GB, free: 121.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004076/1.672, allocations: 1.636 MB / 0.9682 GB, free: 119.4 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004395/1.672, allocations: 128 kB / 0.9683 GB, free: 119.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01939/1.691, allocations: 21.36 MB / 0.9892 GB, free: 97.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/1.691, allocations: 11.94 kB / 0.9892 GB, free: 97.28 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01822/1.71, allocations: 13.85 MB / 1.003 GB, free: 83.22 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003249/1.713, allocations: 1.358 MB / 1.004 GB, free: 81.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001197/1.714, allocations: 112.1 kB / 1.004 GB, free: 81.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002898/1.717, allocations: 287.7 kB / 1.004 GB, free: 81.45 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001057/1.718, allocations: 412.4 kB / 1.005 GB, free: 81.05 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003234/1.718, allocations: 156 kB / 1.005 GB, free: 80.89 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005709/1.724, allocations: 3.891 MB / 1.009 GB, free: 77.03 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.5e-07/1.724, allocations: 0 / 1.009 GB, free: 77.03 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008183/1.732, allocations: 2.346 MB / 1.011 GB, free: 74.69 MB / 0.4981 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.001151/1.734, allocations: 318.9 kB / 1.011 GB, free: 74.39 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01403/1.748, allocations: 9.945 MB / 1.021 GB, free: 64.35 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/1.748, allocations: 3.938 kB / 1.021 GB, free: 64.34 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00754/1.755, allocations: 5.491 MB / 1.026 GB, free: 58.77 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009567/1.765, allocations: 1.539 MB / 1.028 GB, free: 57.26 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04935/1.814, allocations: 30.91 MB / 1.058 GB, free: 26.26 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01474/1.829, allocations: 8.856 MB / 1.067 GB, free: 17.35 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.008684/1.838, allocations: 2.527 MB / 1.069 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002486/1.84, allocations: 459.3 kB / 1.07 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of SimCode: time 1.192e-06/1.84, allocations: 0 / 1.07 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of Templates: time 0.3588/2.199, allocations: 99.18 MB / 1.167 GB, free: 85.28 MB / 0.4981 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)