Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_YD.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) Ignoring simflag -noemit -jacobian= since it seems broken on HelloWorld Running command: translateModel(HanserModelica.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_YD") translateModel(HanserModelica.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009662/0.0009662, 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.0409/0.0409, allocations: 8.718 MB / 16.79 MB, free: 3.367 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.321/1.321, allocations: 221.5 MB / 240.9 MB, free: 13.2 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.001336/0.001336, allocations: 95.69 kB / 293.9 MB, free: 7.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.677e-05/1.678e-05, allocations: 4 kB / 354.6 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1276, allocations: 52.56 MB / 407.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4401/0.5678, allocations: 150.8 MB / 0.5449 GB, free: 15.78 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.5681, allocations: 77.48 kB / 0.5449 GB, free: 15.71 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.811/2.379, allocations: 495.7 MB / 1.029 GB, free: 36.87 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.024e-06/2.379, allocations: 7.031 kB / 1.029 GB, free: 36.86 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.00142/2.38, allocations: 350.6 kB / 1.029 GB, free: 36.81 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4252 * Number of variables: 4252 Notification: Performance of Generate backend data structure: time 0.09343/2.474, allocations: 14.78 MB / 1.044 GB, free: 31.45 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.913e-05/2.474, allocations: 11.19 kB / 1.044 GB, free: 31.44 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04981/2.524, allocations: 7.362 MB / 1.051 GB, free: 29.93 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04006/2.564, allocations: 12.54 MB / 1.063 GB, free: 19.52 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001119/2.565, allocations: 0.4949 MB / 1.064 GB, free: 19.04 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007615/2.573, allocations: 0.8664 MB / 1.065 GB, free: 18.17 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05427/2.627, allocations: 20.46 MB / 1.085 GB, free: 14.59 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4851/3.112, allocations: 22.4 MB / 1.106 GB, free: 42.18 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009823/3.113, allocations: 24.42 kB / 1.106 GB, free: 42.18 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007178/3.12, allocations: 12.78 kB / 1.106 GB, free: 42.18 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001222/3.122, allocations: 1.092 MB / 1.108 GB, free: 42.15 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1573/3.279, allocations: 79.23 MB / 1.185 GB, free: 21.98 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03787/3.317, allocations: 38.44 MB / 1.222 GB, free: 21.62 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01154/3.328, allocations: 7.238 MB / 1.229 GB, free: 18.82 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0415/3.37, allocations: 17.77 MB / 1.247 GB, free: 10.88 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01129/3.381, allocations: 5.264 MB / 1.252 GB, free: 8.766 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=717): time 1.932e-05/3.381, allocations: 0 / 1.252 GB, free: 8.766 MB / 0.5105 GB Notification: Performance of matching and sorting (n=725): time 0.06794/3.449, allocations: 29.37 MB / 1.281 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002288/3.45, allocations: 474.5 kB / 1.281 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008342/3.458, allocations: 4.863 MB / 1.286 GB, free: 9.488 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.00154/3.46, allocations: 29.52 kB / 1.286 GB, free: 9.457 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.007118/3.467, allocations: 6.5 MB / 1.292 GB, free: 4.656 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.003788/3.471, allocations: 2.314 MB / 1.295 GB, free: 2.852 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008027/3.471, allocations: 3.688 kB / 1.295 GB, free: 2.852 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000573/3.472, allocations: 0.6621 MB / 1.295 GB, free: 2.387 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009092/3.481, allocations: 4.945 MB / 1.3 GB, free: 0 / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3854/3.866, allocations: 7.534 MB / 1.307 GB, free: 95 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01554/3.882, allocations: 7.646 MB / 1.315 GB, free: 94.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002443/3.882, allocations: 28.14 kB / 1.315 GB, free: 94.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1154) (initialization): time 0.0356/3.918, allocations: 16.17 MB / 1.331 GB, free: 94.43 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001231/3.918, allocations: 45.17 kB / 1.331 GB, free: 94.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002103/3.918, allocations: 93.11 kB / 1.331 GB, free: 94.43 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006956/3.925, allocations: 2.795 MB / 1.333 GB, free: 94.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008103/3.933, allocations: 1.873 MB / 1.335 GB, free: 94.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03529/3.969, allocations: 29.66 MB / 1.364 GB, free: 86.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008019/3.977, allocations: 481.7 kB / 1.365 GB, free: 86.74 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001998/3.979, allocations: 404.3 kB / 1.365 GB, free: 86.74 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 390 * Number of states: 0 () * Number of discrete variables: 48 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],$PRE.switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[1].tSwitch,$PRE.switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[2].tSwitch,$PRE.switchYDQS.logicalDelay[3].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (966): * Single equations (assignments): 959 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 6 {(1,100.0%) 1,(24,32.8%) 108,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002029/3.981, allocations: 390.4 kB / 1.365 GB, free: 86.62 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001615/3.983, allocations: 0.6655 MB / 1.366 GB, free: 86.62 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02824/4.011, allocations: 14.27 MB / 1.38 GB, free: 84.95 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.933e-05/4.011, allocations: 73.34 kB / 1.38 GB, free: 84.95 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.976e-05/4.011, allocations: 32.88 kB / 1.38 GB, free: 84.95 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001414/4.011, allocations: 37.36 kB / 1.38 GB, free: 84.95 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05341/4.065, allocations: 27.02 MB / 1.407 GB, free: 74.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.562e-05/4.065, allocations: 6.5 kB / 1.407 GB, free: 74.34 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005578/4.07, allocations: 1.133 MB / 1.408 GB, free: 74.31 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007469/4.078, allocations: 2.84 MB / 1.41 GB, free: 73.48 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001782/4.079, allocations: 57.84 kB / 1.411 GB, free: 73.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03342/4.113, allocations: 32.1 MB / 1.442 GB, free: 49.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.518e-06/4.113, allocations: 10.25 kB / 1.442 GB, free: 49.73 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03203/4.145, allocations: 21.55 MB / 1.463 GB, free: 30.83 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005035/4.15, allocations: 1.822 MB / 1.465 GB, free: 29.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00214/4.152, allocations: 17.83 kB / 1.465 GB, free: 29.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005171/4.157, allocations: 388.6 kB / 1.465 GB, free: 28.96 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001698/4.159, allocations: 0.6489 MB / 1.466 GB, free: 28.56 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005184/4.16, allocations: 204.5 kB / 1.466 GB, free: 28.38 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005865/4.166, allocations: 3.589 MB / 1.469 GB, free: 25.26 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.1e-07/4.166, allocations: 0 / 1.469 GB, free: 25.26 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01388/4.179, allocations: 2.588 MB / 1.472 GB, free: 22.68 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,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,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 42 (booleanStepYDQS[3].y,booleanStepYDQS[2].y,booleanStepYDQS[1].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,switchYDQS.idealCloser.control[1],switchYDQS.idealCloser.control[2],switchYDQS.idealCloser.control[3],switchYDQS.idealOpener.control[1],switchYDQS.idealOpener.control[2],switchYDQS.idealOpener.control[3],switchYDQS.logicalDelay[1].tSwitch,switchYDQS.logicalDelay[2].tSwitch,switchYDQS.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (576): * Single equations (assignments): 562 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(24,31.8%) 108,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 25,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002066/4.182, allocations: 0.499 MB / 1.472 GB, free: 22.29 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01967/4.201, allocations: 12.96 MB / 1.485 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/4.201, allocations: 0 / 1.485 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.3879/4.589, allocations: 8.722 MB / 1.494 GB, free: 86.73 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01163/4.601, allocations: 1.388 MB / 1.495 GB, free: 86.71 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06457/4.666, allocations: 24.49 MB / 1.519 GB, free: 82.41 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02435/4.69, allocations: 10.14 MB / 1.529 GB, free: 81.24 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01322/4.703, allocations: 2.943 MB / 1.532 GB, free: 80.98 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003427/4.707, allocations: 0.4999 MB / 1.532 GB, free: 80.98 MB / 0.5261 GB Notification: Performance of SimCode: time 1.032e-06/4.707, allocations: 0.875 kB / 1.532 GB, free: 80.98 MB / 0.5261 GB Notification: Performance of Templates: time 0.2003/4.907, allocations: 115.3 MB / 1.645 GB, free: 30.71 MB / 0.5261 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_YD.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_YD.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_YD.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_YD.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_YD.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_YD -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_YD.pipe 2>&1)