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.001111/0.001111, allocations: 175 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03786/0.03786, allocations: 8.698 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 221.4 MB / 246 MB, free: 3.551 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.0008712/0.0008712, allocations: 94.92 kB / 299.1 MB, free: 2.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.656e-05/2.667e-05, allocations: 0 / 362 MB, free: 4.039 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.302/0.3021, allocations: 52.55 MB / 414.5 MB, free: 22.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.484/0.7861, allocations: 151.5 MB / 0.5527 GB, free: 31.85 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/0.7864, allocations: 74.44 kB / 0.5528 GB, free: 31.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.926/2.713, allocations: 0.4894 GB / 1.042 GB, free: 16.72 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.375e-06/2.713, allocations: 0 / 1.042 GB, free: 16.72 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001138/2.714, allocations: 350 kB / 1.043 GB, free: 16.69 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: 4252 * Number of variables: 4252 Notification: Performance of Generate backend data structure: time 0.05404/2.768, allocations: 14.8 MB / 1.057 GB, free: 12.07 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/2.768, allocations: 7.938 kB / 1.057 GB, free: 12.07 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0387/2.807, allocations: 7.373 MB / 1.064 GB, free: 11.2 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03123/2.838, allocations: 12.54 MB / 1.076 GB, free: 9.758 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001591/2.84, allocations: 1.119 MB / 1.078 GB, free: 9.727 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007109/2.847, allocations: 1.467 MB / 1.079 GB, free: 9.715 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06609/2.913, allocations: 24.84 MB / 1.103 GB, free: 7.91 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008536/2.914, allocations: 30.61 kB / 1.103 GB, free: 7.902 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005902/2.92, allocations: 0.6267 MB / 1.104 GB, free: 7.902 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001234/2.921, allocations: 1.09 MB / 1.105 GB, free: 7.867 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04881/2.97, allocations: 22.4 MB / 1.127 GB, free: 7.723 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1596/3.129, allocations: 80.62 MB / 1.206 GB, free: 14.65 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3939/3.523, allocations: 39.56 MB / 1.244 GB, free: 41.26 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01084/3.534, allocations: 7.258 MB / 1.251 GB, free: 41.15 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02908/3.563, allocations: 17.34 MB / 1.268 GB, free: 40.38 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007488/3.571, allocations: 5.183 MB / 1.273 GB, free: 40.07 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=717): time 9.117e-06/3.571, allocations: 0 / 1.273 GB, free: 40.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=725): time 0.04584/3.617, allocations: 25.26 MB / 1.298 GB, free: 35.64 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/3.617, allocations: 468.6 kB / 1.298 GB, free: 35.16 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00827/3.625, allocations: 5.589 MB / 1.304 GB, free: 34.73 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001208/3.626, allocations: 152.1 kB / 1.304 GB, free: 34.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005415/3.632, allocations: 6.503 MB / 1.31 GB, free: 31.43 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002941/3.635, allocations: 2.407 MB / 1.313 GB, free: 29.92 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00075/3.636, allocations: 182.8 kB / 1.313 GB, free: 29.92 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004284/3.636, allocations: 0.6663 MB / 1.314 GB, free: 29.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005971/3.642, allocations: 4.636 MB / 1.318 GB, free: 29.57 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007535/3.65, allocations: 7.5 MB / 1.325 GB, free: 26.29 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008529/3.658, allocations: 6.135 MB / 1.331 GB, free: 26.16 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001089/3.658, allocations: 25.8 kB / 1.331 GB, free: 26.16 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1154) (initialization): time 0.02594/3.684, allocations: 15.2 MB / 1.346 GB, free: 25.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.886e-05/3.684, allocations: 43.88 kB / 1.346 GB, free: 25.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001372/3.685, allocations: 89.19 kB / 1.346 GB, free: 25.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006739/3.691, allocations: 2.898 MB / 1.349 GB, free: 24.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007091/3.698, allocations: 1.807 MB / 1.351 GB, free: 24.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03406/3.732, allocations: 30.59 MB / 1.381 GB, free: 6.461 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008896/3.741, allocations: 0.5763 MB / 1.381 GB, free: 6.312 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002085/3.744, allocations: 403.2 kB / 1.382 GB, free: 6.242 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,31.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.002103/3.746, allocations: 0.6764 MB / 1.382 GB, free: 5.82 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001729/3.747, allocations: 0.7049 MB / 1.383 GB, free: 5.449 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02822/3.776, allocations: 13.69 MB / 1.397 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.92e-05/3.776, allocations: 72 kB / 1.397 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.599e-05/3.776, allocations: 36 kB / 1.397 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001201/3.776, allocations: 37.12 kB / 1.397 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4426/4.219, allocations: 27.89 MB / 1.424 GB, free: 68.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.549e-05/4.219, allocations: 6.406 kB / 1.424 GB, free: 68.12 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00534/4.224, allocations: 1.069 MB / 1.425 GB, free: 68.12 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00713/4.231, allocations: 2.925 MB / 1.428 GB, free: 68.04 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001301/4.232, allocations: 168.1 kB / 1.428 GB, free: 68.04 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03596/4.268, allocations: 33.05 MB / 1.46 GB, free: 57.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/4.269, allocations: 7.656 kB / 1.46 GB, free: 57.45 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03099/4.3, allocations: 20.06 MB / 1.48 GB, free: 55.05 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005147/4.305, allocations: 1.803 MB / 1.482 GB, free: 54.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001936/4.307, allocations: 142.4 kB / 1.482 GB, free: 54.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004954/4.312, allocations: 442.6 kB / 1.482 GB, free: 54.95 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001738/4.313, allocations: 0.6595 MB / 1.483 GB, free: 54.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004906/4.314, allocations: 205 kB / 1.483 GB, free: 54.93 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.007709/4.322, allocations: 4.212 MB / 1.487 GB, free: 54.69 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.31e-07/4.322, allocations: 0 / 1.487 GB, free: 54.69 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01254/4.334, allocations: 2.927 MB / 1.49 GB, free: 54.69 MB / 0.5417 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.9%) 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.001859/4.336, allocations: 0.752 MB / 1.491 GB, free: 54.53 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01874/4.355, allocations: 13.02 MB / 1.503 GB, free: 53.39 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/4.355, allocations: 3.5 kB / 1.503 GB, free: 53.39 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01251/4.367, allocations: 8.173 MB / 1.511 GB, free: 52.25 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009718/4.377, allocations: 1.75 MB / 1.513 GB, free: 52.23 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04913/4.426, allocations: 24.51 MB / 1.537 GB, free: 47.61 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01993/4.446, allocations: 10.14 MB / 1.547 GB, free: 44.62 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01554/4.462, allocations: 2.969 MB / 1.55 GB, free: 44.36 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003428/4.465, allocations: 0.5154 MB / 1.55 GB, free: 44.04 MB / 0.5417 GB Notification: Performance of SimCode: time 1.553e-06/4.465, allocations: 0 / 1.55 GB, free: 44.04 MB / 0.5417 GB Notification: Performance of Templates: time 0.5782/5.044, allocations: 130.5 MB / 1.678 GB, free: 60.38 MB / 0.5417 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)