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.001053/0.001053, 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.197/1.197, allocations: 222.9 MB / 238.8 MB, free: 4.746 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.001061/0.001061, allocations: 188.5 kB / 289.1 MB, free: 2.484 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03137/0.03137, allocations: 8.787 MB / 348.1 MB, free: 4.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 74.03 kB / 410.4 MB, free: 42.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07469/0.07594, allocations: 51.56 MB / 462 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01504/0.09102, allocations: 15.73 MB / 477.7 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00792/0.09898, allocations: 5.251 MB / 482.9 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001844/0.1008, allocations: 87.69 kB / 483 MB, free: 9.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002555/0.1034, allocations: 1.069 MB / 484.1 MB, free: 8.66 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.003187/0.1066, allocations: 1.376 MB / 485.5 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001736/0.1084, allocations: 0.918 MB / 486.4 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004372/0.1128, allocations: 4.826 MB / 491.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002942/0.1157, allocations: 2.894 MB / 494.1 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001896/0.1176, allocations: 1.665 MB / 495.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002012/0.1197, allocations: 2.144 MB / 497.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004574/0.1201, allocations: 340 kB / 498.2 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001088/0.1212, allocations: 0.5466 MB / 498.8 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007601/0.122, allocations: 0.9926 MB / 499.8 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002072/0.1241, allocations: 2.123 MB / 0.4901 GB, free: 6.727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005521/0.1296, allocations: 7.08 MB / 0.4971 GB, free: 15.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1296, allocations: 0 / 0.4971 GB, free: 15.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1296, allocations: 0 / 0.4971 GB, free: 15.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.496e-05/0.1297, allocations: 0 / 0.4971 GB, free: 15.62 MB / 350.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.01086/0.1406, allocations: 4.806 MB / 0.5018 GB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1407, allocations: 12.03 kB / 0.5018 GB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004809/0.1455, allocations: 0.9445 MB / 0.5027 GB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004598/0.1501, allocations: 2.562 MB / 0.5052 GB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001801/0.1503, allocations: 275.8 kB / 0.5055 GB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004955/0.1508, allocations: 376 kB / 0.5058 GB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007148/0.1579, allocations: 4.688 MB / 0.5104 GB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.233e-05/0.158, allocations: 3.938 kB / 0.5104 GB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003012/0.1583, allocations: 148 kB / 0.5105 GB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001256/0.1585, allocations: 155.3 kB / 0.5107 GB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005788/0.1643, allocations: 3.905 MB / 0.5145 GB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1725/0.3367, allocations: 15.51 MB / 0.5296 GB, free: 59.31 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004413/0.3412, allocations: 6.144 MB / 0.5356 GB, free: 54.85 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002195/0.3434, allocations: 1.4 MB / 0.537 GB, free: 54.83 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006111/0.3495, allocations: 4.268 MB / 0.5412 GB, free: 53.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.3496, allocations: 52.75 kB / 0.5412 GB, free: 53.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 2.585e-06/0.3496, allocations: 0 / 0.5412 GB, free: 53.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.0122/0.3618, allocations: 6.178 MB / 0.5473 GB, free: 52.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.777e-05/0.3619, allocations: 68.27 kB / 0.5473 GB, free: 52.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002745/0.3646, allocations: 2.097 MB / 0.5494 GB, free: 52.04 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.552e-05/0.3647, allocations: 51.95 kB / 0.5494 GB, free: 51.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007588/0.3655, allocations: 1.703 MB / 0.5511 GB, free: 50.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000317/0.3658, allocations: 0.5346 MB / 0.5516 GB, free: 50.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00059/0.3664, allocations: 413.6 kB / 0.552 GB, free: 50.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.314e-05/0.3664, allocations: 305.1 kB / 0.5523 GB, free: 49.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/0.3675, allocations: 0.782 MB / 0.5531 GB, free: 49.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001201/0.3687, allocations: 1.554 MB / 0.5546 GB, free: 48.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01091/0.3796, allocations: 4.815 MB / 0.5593 GB, free: 45.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.045e-05/0.3797, allocations: 7.906 kB / 0.5593 GB, free: 45.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.003726/0.3834, allocations: 2.889 MB / 0.5621 GB, free: 43.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.3834, allocations: 15.72 kB / 0.5621 GB, free: 43.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.024e-05/0.3835, allocations: 26.98 kB / 0.5621 GB, free: 43.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008291/0.3843, allocations: 369.6 kB / 0.5625 GB, free: 43.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001388/0.3857, allocations: 489.5 kB / 0.563 GB, free: 43.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003675/0.3894, allocations: 3.829 MB / 0.5667 GB, free: 40.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/0.3908, allocations: 96.84 kB / 0.5668 GB, free: 40.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.3909, allocations: 96.03 kB / 0.5669 GB, free: 40.61 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 system: 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.001427/0.3924, allocations: 1.109 MB / 0.568 GB, free: 39.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002469/0.3926, allocations: 220.5 kB / 0.5682 GB, free: 39.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002683/0.3953, allocations: 1.999 MB / 0.5701 GB, free: 38.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.3953, allocations: 16.89 kB / 0.5702 GB, free: 38.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3953, allocations: 8.562 kB / 0.5702 GB, free: 38.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.3954, allocations: 7.969 kB / 0.5702 GB, free: 38.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006076/0.4014, allocations: 5.499 MB / 0.5755 GB, free: 32.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.4015, allocations: 0 / 0.5755 GB, free: 32.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009614/0.4024, allocations: 272 kB / 0.5758 GB, free: 32.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006772/0.4031, allocations: 300 kB / 0.5761 GB, free: 32.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.636e-05/0.4032, allocations: 39.98 kB / 0.5761 GB, free: 32.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003221/0.4064, allocations: 3.584 MB / 0.5796 GB, free: 28.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4064, allocations: 7.938 kB / 0.5796 GB, free: 28.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003274/0.4097, allocations: 2.945 MB / 0.5825 GB, free: 25.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006187/0.4103, allocations: 474.3 kB / 0.583 GB, free: 24.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000253/0.4106, allocations: 33.75 kB / 0.583 GB, free: 24.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000906/0.4115, allocations: 59.97 kB / 0.583 GB, free: 24.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/0.4117, allocations: 106.2 kB / 0.5831 GB, free: 24.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.578e-05/0.4118, allocations: 47.98 kB / 0.5832 GB, free: 24.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001431/0.4132, allocations: 1.407 MB / 0.5846 GB, free: 23.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4132, allocations: 0 / 0.5846 GB, free: 23.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00168/0.4149, allocations: 0.6515 MB / 0.5852 GB, free: 22.58 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.0002278/0.4152, allocations: 170.5 kB / 0.5854 GB, free: 22.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002731/0.4179, allocations: 2.287 MB / 0.5876 GB, free: 20.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.4179, allocations: 4 kB / 0.5876 GB, free: 20.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.4192, allocations: 1.099 MB / 0.5887 GB, free: 18.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00206/0.4213, allocations: 0.5452 MB / 0.5892 GB, free: 18.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00771/0.429, allocations: 7.695 MB / 0.5967 GB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001353/0.4304, allocations: 2.44 MB / 0.5991 GB, free: 8.266 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001485/0.4319, allocations: 495.6 kB / 0.5996 GB, free: 7.777 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003613/0.4322, allocations: 153.6 kB / 0.5997 GB, free: 7.629 MB / 366.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4322, allocations: 0 / 0.5997 GB, free: 7.629 MB / 366.1 MB Notification: Performance of Templates: time 0.04397/0.4762, allocations: 30.6 MB / 0.6296 GB, free: 9.312 MB / 398.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)