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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 176.1 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0455/0.0455, allocations: 8.718 MB / 16.79 MB, free: 3.371 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 221.5 MB / 240.9 MB, free: 13.22 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 99.23 kB / 293.9 MB, free: 7.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.658e-05/1.653e-05, allocations: 4 kB / 352.6 MB, free: 1.266 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1071, allocations: 52.55 MB / 405.2 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3964/0.5035, allocations: 151.1 MB / 0.5432 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.5038, allocations: 79.97 kB / 0.5433 GB, free: 0.7656 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.706/2.209, allocations: 452.1 MB / 0.9848 GB, free: 42.98 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.264e-06/2.209, allocations: 4 kB / 0.9848 GB, free: 42.98 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001643/2.211, allocations: 324.3 kB / 0.9851 GB, free: 42.95 MB / 490.7 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.05467/2.266, allocations: 13.17 MB / 0.998 GB, free: 38.94 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/2.266, allocations: 13.72 kB / 0.998 GB, free: 38.94 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03398/2.3, allocations: 5.816 MB / 1.004 GB, free: 38.16 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03181/2.332, allocations: 11.72 MB / 1.015 GB, free: 36.8 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001109/2.333, allocations: 452.3 kB / 1.016 GB, free: 36.8 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007023/2.34, allocations: 0.7984 MB / 1.016 GB, free: 36.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04458/2.384, allocations: 17.54 MB / 1.033 GB, free: 36.73 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07085/2.455, allocations: 19.97 MB / 1.053 GB, free: 30.82 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008843/2.456, allocations: 24.97 kB / 1.053 GB, free: 30.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004589/2.461, allocations: 7.531 kB / 1.053 GB, free: 30.8 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001038/2.462, allocations: 0.9726 MB / 1.054 GB, free: 30.59 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4553/2.917, allocations: 71.53 MB / 1.124 GB, free: 45.74 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03136/2.949, allocations: 41.89 MB / 1.165 GB, free: 26.84 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008119/2.957, allocations: 5.078 MB / 1.17 GB, free: 26.78 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02377/2.981, allocations: 13.09 MB / 1.182 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.097e-05/2.981, allocations: 93.92 kB / 1.183 GB, free: 25.94 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=502): time 7.214e-06/2.981, allocations: 1.125 kB / 1.183 GB, free: 25.94 MB / 0.5105 GB Notification: Performance of matching and sorting (n=510): time 0.04854/3.029, allocations: 21.95 MB / 1.204 GB, free: 21.91 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.843e-05/3.03, allocations: 133.1 kB / 1.204 GB, free: 21.81 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007704/3.037, allocations: 4.363 MB / 1.208 GB, free: 21.46 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001157/3.038, allocations: 25.7 kB / 1.208 GB, free: 21.43 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003527/3.042, allocations: 6.135 MB / 1.214 GB, free: 18.14 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002273/3.044, allocations: 1.674 MB / 1.216 GB, free: 17.05 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006067/3.045, allocations: 0 / 1.216 GB, free: 17.05 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004575/3.045, allocations: 0.6046 MB / 1.217 GB, free: 16.73 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005156/3.051, allocations: 3.576 MB / 1.22 GB, free: 16.71 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007817/3.058, allocations: 6.316 MB / 1.226 GB, free: 13.37 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01033/3.069, allocations: 6.034 MB / 1.232 GB, free: 13.31 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001138/3.069, allocations: 27.16 kB / 1.232 GB, free: 13.31 MB / 0.5105 GB Notification: Performance of matching and sorting (n=960) (initialization): time 0.02269/3.092, allocations: 12.41 MB / 1.244 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.247e-05/3.092, allocations: 44.41 kB / 1.244 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001583/3.092, allocations: 92.58 kB / 1.244 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003865/3.096, allocations: 1.49 MB / 1.246 GB, free: 12.61 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006593/3.102, allocations: 1.695 MB / 1.248 GB, free: 12.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02007/3.122, allocations: 17.25 MB / 1.264 GB, free: 17.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007941/3.13, allocations: 329.9 kB / 1.265 GB, free: 17.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002231/3.133, allocations: 365.2 kB / 1.265 GB, free: 17.46 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 417 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (860): * Single equations (assignments): 850 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(12,53.5%) 64} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002449/3.135, allocations: 365 kB / 1.265 GB, free: 17.26 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002084/3.137, allocations: 0.5597 MB / 1.266 GB, free: 16.96 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01941/3.157, allocations: 10.09 MB / 1.276 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01241/3.169, allocations: 6.738 MB / 1.282 GB, free: 10.87 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.225e-05/3.169, allocations: 23.95 kB / 1.282 GB, free: 10.87 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000119/3.169, allocations: 30.92 kB / 1.282 GB, free: 10.87 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04373/3.213, allocations: 20.18 MB / 1.302 GB, free: 1.203 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.046e-05/3.213, allocations: 4.656 kB / 1.302 GB, free: 1.199 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004271/3.217, allocations: 0.9057 MB / 1.303 GB, free: 0.5117 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005748/3.223, allocations: 1.593 MB / 1.305 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009555/3.224, allocations: 54.11 kB / 1.305 GB, free: 15.53 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4088/3.633, allocations: 20.5 MB / 1.325 GB, free: 90.67 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.295e-05/3.633, allocations: 9.719 kB / 1.325 GB, free: 90.67 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02457/3.658, allocations: 15.52 MB / 1.34 GB, free: 88.62 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003922/3.662, allocations: 1.365 MB / 1.341 GB, free: 88.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00165/3.663, allocations: 19.31 kB / 1.341 GB, free: 88.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004222/3.668, allocations: 267.6 kB / 1.341 GB, free: 88.52 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001071/3.669, allocations: 410.3 kB / 1.342 GB, free: 88.52 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003908/3.669, allocations: 151.6 kB / 1.342 GB, free: 88.52 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.006548/3.676, allocations: 3.204 MB / 1.345 GB, free: 88.33 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.51e-07/3.676, allocations: 4.359 kB / 1.345 GB, free: 88.33 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01395/3.69, allocations: 2.125 MB / 1.347 GB, free: 88.33 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma,imc.inertiaRotor.w,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (439): * Single equations (assignments): 428 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(12,50.7%) 64,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002084/3.692, allocations: 0.4951 MB / 1.348 GB, free: 88.24 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01857/3.71, allocations: 9.584 MB / 1.357 GB, free: 87.43 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-05/3.71, allocations: 1.938 kB / 1.357 GB, free: 87.43 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01052/3.721, allocations: 5.372 MB / 1.362 GB, free: 86.61 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008964/3.73, allocations: 1.184 MB / 1.363 GB, free: 86.59 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05066/3.781, allocations: 21.06 MB / 1.384 GB, free: 82.55 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01928/3.8, allocations: 9.094 MB / 1.393 GB, free: 81.4 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01177/3.812, allocations: 2.493 MB / 1.395 GB, free: 81.18 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002642/3.814, allocations: 437.4 kB / 1.396 GB, free: 81.17 MB / 0.5417 GB Notification: Performance of SimCode: time 1.303e-06/3.814, allocations: 0 / 1.396 GB, free: 81.17 MB / 0.5417 GB Notification: Performance of Templates: time 0.1619/3.976, allocations: 86.28 MB / 1.48 GB, free: 51.93 MB / 0.5417 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)