Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.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.SynchronousMachines.SMEE_ShortCircuit2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2") translateModel(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006995/0.0006995, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 223.3 MB / 240 MB, free: 5.34 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.0009905/0.0009905, allocations: 180.5 kB / 291.3 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03551/0.03551, allocations: 8.799 MB / 351.2 MB, free: 4.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000483/0.000483, allocations: 11.22 kB / 414.5 MB, free: 42.72 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08053/0.08103, allocations: 52.56 MB / 467 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.02062/0.1017, allocations: 15.01 MB / 482 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01056/0.1123, allocations: 5.173 MB / 487.2 MB, free: 8.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002164/0.1144, allocations: 91.69 kB / 487.3 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003447/0.1179, allocations: 1.061 MB / 488.4 MB, free: 7.676 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/Templates/SMEE_ShortCircuit.mo:18:3-19:30:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.004285/0.1222, allocations: 1.379 MB / 489.7 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002315/0.1245, allocations: 0.8988 MB / 490.6 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006181/0.1307, allocations: 4.828 MB / 495.5 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004751/0.1355, allocations: 2.863 MB / 498.3 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001922/0.1374, allocations: 1.455 MB / 499.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002681/0.1401, allocations: 1.866 MB / 0.4899 GB, free: 10.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004842/0.1406, allocations: 232 kB / 0.4901 GB, free: 10.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00122/0.1419, allocations: 455.7 kB / 0.4906 GB, free: 9.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009612/0.1428, allocations: 0.8443 MB / 0.4914 GB, free: 8.762 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002317/0.1452, allocations: 1.972 MB / 0.4933 GB, free: 6.773 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006571/0.1517, allocations: 5.964 MB / 0.4991 GB, free: 0.793 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.1518, allocations: 0 / 0.4991 GB, free: 0.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1518, allocations: 0 / 0.4991 GB, free: 0.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.012e-05/0.1518, allocations: 0 / 0.4991 GB, free: 0.793 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.01328/0.1651, allocations: 4.074 MB / 0.5031 GB, free: 12.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.1652, allocations: 12.03 kB / 0.5031 GB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008568/0.1737, allocations: 0.9485 MB / 0.504 GB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006234/0.18, allocations: 2.566 MB / 0.5066 GB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000292/0.1803, allocations: 283.8 kB / 0.5068 GB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007967/0.1811, allocations: 372 kB / 0.5072 GB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01094/0.1921, allocations: 4.68 MB / 0.5117 GB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001056/0.1922, allocations: 8 kB / 0.5118 GB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005275/0.1927, allocations: 156 kB / 0.5119 GB, free: 3.531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002063/0.1929, allocations: 151.3 kB / 0.5121 GB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009551/0.2025, allocations: 3.909 MB / 0.5159 GB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.171/0.3735, allocations: 15.6 MB / 0.5311 GB, free: 59.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00496/0.3785, allocations: 6.129 MB / 0.5371 GB, free: 54.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002288/0.3808, allocations: 1.399 MB / 0.5385 GB, free: 54.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006384/0.3872, allocations: 4.288 MB / 0.5426 GB, free: 53.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.3873, allocations: 51.61 kB / 0.5427 GB, free: 53.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 2.595e-06/0.3873, allocations: 0 / 0.5427 GB, free: 53.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.0129/0.4002, allocations: 6.2 MB / 0.5487 GB, free: 52.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.817e-05/0.4002, allocations: 71.94 kB / 0.5488 GB, free: 52.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002846/0.4031, allocations: 2.095 MB / 0.5509 GB, free: 51.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.227e-05/0.4032, allocations: 51.36 kB / 0.5509 GB, free: 51.83 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008342/0.404, allocations: 1.7 MB / 0.5526 GB, free: 50.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003153/0.4043, allocations: 0.532 MB / 0.5531 GB, free: 50.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002283/0.4046, allocations: 183.5 kB / 0.5533 GB, free: 50.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 2.913e-05/0.4046, allocations: 308.2 kB / 0.5536 GB, free: 50.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.4058, allocations: 0.7816 MB / 0.5543 GB, free: 49.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001534/0.4074, allocations: 1.552 MB / 0.5558 GB, free: 48.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0124/0.4198, allocations: 4.834 MB / 0.5606 GB, free: 46.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.098e-05/0.4198, allocations: 6.031 kB / 0.5606 GB, free: 46.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004064/0.4239, allocations: 2.886 MB / 0.5634 GB, free: 44.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.4239, allocations: 14.75 kB / 0.5634 GB, free: 44.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.189e-05/0.424, allocations: 25.81 kB / 0.5634 GB, free: 44.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008787/0.4248, allocations: 371.7 kB / 0.5638 GB, free: 44.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001555/0.4264, allocations: 485.3 kB / 0.5642 GB, free: 44.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003973/0.4304, allocations: 3.845 MB / 0.568 GB, free: 41.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001377/0.4318, allocations: 85.5 kB / 0.5681 GB, free: 41.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.4319, allocations: 106.8 kB / 0.5682 GB, free: 41.32 MB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: smee.is[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (256): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(4,23,68.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001333/0.4333, allocations: 1.098 MB / 0.5692 GB, free: 40.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/0.4335, allocations: 230.1 kB / 0.5695 GB, free: 40.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003041/0.4365, allocations: 2.002 MB / 0.5714 GB, free: 39.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.4366, allocations: 15 kB / 0.5714 GB, free: 39.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/0.4366, allocations: 3.5 kB / 0.5714 GB, free: 39.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.4366, allocations: 3.984 kB / 0.5714 GB, free: 39.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006588/0.4432, allocations: 5.511 MB / 0.5768 GB, free: 34.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.4432, allocations: 4 kB / 0.5768 GB, free: 34.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.4443, allocations: 263.6 kB / 0.5771 GB, free: 34.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007465/0.4451, allocations: 297.8 kB / 0.5774 GB, free: 34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.874e-05/0.4452, allocations: 35.98 kB / 0.5774 GB, free: 33.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003688/0.4489, allocations: 3.593 MB / 0.5809 GB, free: 30.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4489, allocations: 4 kB / 0.5809 GB, free: 30.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003634/0.4525, allocations: 2.946 MB / 0.5838 GB, free: 27.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005657/0.4531, allocations: 478.2 kB / 0.5842 GB, free: 26.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002605/0.4534, allocations: 36 kB / 0.5843 GB, free: 26.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.4544, allocations: 67.83 kB / 0.5843 GB, free: 26.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.4546, allocations: 105.1 kB / 0.5844 GB, free: 26.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.108e-05/0.4547, allocations: 47.98 kB / 0.5845 GB, free: 26.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001541/0.4563, allocations: 1.414 MB / 0.5859 GB, free: 25.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.052e-06/0.4563, allocations: 0 / 0.5859 GB, free: 25.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001607/0.4579, allocations: 0.6526 MB / 0.5865 GB, free: 24.42 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 5 (smee.phiMechanical,smee.is[2],smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,22,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002335/0.4581, allocations: 164.3 kB / 0.5867 GB, free: 24.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002798/0.4609, allocations: 2.292 MB / 0.5889 GB, free: 21.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.4609, allocations: 4 kB / 0.5889 GB, free: 21.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.4624, allocations: 1.084 MB / 0.59 GB, free: 20.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002858/0.4653, allocations: 0.5429 MB / 0.5905 GB, free: 20.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007719/0.473, allocations: 7.79 MB / 0.5981 GB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001459/0.4745, allocations: 2.384 MB / 0.6004 GB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004678/0.4749, allocations: 167.4 kB / 0.6006 GB, free: 9.883 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4749, allocations: 0 / 0.6006 GB, free: 9.883 MB / 366.1 MB Notification: Performance of Templates: time 0.06796/0.5429, allocations: 68.19 MB / 0.6672 GB, free: 5.797 MB / 430.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe 2>&1)