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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 108 kB / 15.6 MB, free: 132 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.391/1.391, allocations: 222.9 MB / 239.2 MB, free: 4.594 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.001514/0.001514, allocations: 192.5 kB / 289.6 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03547/0.03547, allocations: 8.808 MB / 348.5 MB, free: 4.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 80.73 kB / 411.2 MB, free: 42.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08685/0.08872, allocations: 51.56 MB / 462.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01824/0.107, allocations: 15.93 MB / 478.7 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01082/0.1179, allocations: 5.297 MB / 484 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003648/0.1216, allocations: 91.69 kB / 484.1 MB, free: 8.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00417/0.1258, allocations: 1.219 MB / 485.3 MB, free: 7.594 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.005543/0.1314, allocations: 1.522 MB / 486.8 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003113/0.1345, allocations: 0.9895 MB / 487.8 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00633/0.1408, allocations: 4.568 MB / 492.4 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005593/0.1465, allocations: 3.485 MB / 495.9 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003133/0.1496, allocations: 2.044 MB / 497.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003711/0.1533, allocations: 2.323 MB / 0.4885 GB, free: 8.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001799/0.1551, allocations: 0.5586 MB / 0.489 GB, free: 7.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003075/0.1582, allocations: 0.7771 MB / 0.4898 GB, free: 7.219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0024/0.1607, allocations: 1.235 MB / 0.491 GB, free: 5.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005038/0.1657, allocations: 2.381 MB / 0.4933 GB, free: 3.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01037/0.1761, allocations: 7.256 MB / 0.5004 GB, free: 12.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.1761, allocations: 4 kB / 0.5004 GB, free: 12.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1762, allocations: 4 kB / 0.5004 GB, free: 12.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.00023/0.1764, allocations: 0 / 0.5004 GB, free: 12.3 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.01463/0.191, allocations: 4.834 MB / 0.5051 GB, free: 7.398 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.1911, allocations: 8.031 kB / 0.5052 GB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001412/0.1925, allocations: 0.5529 MB / 0.5057 GB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005733/0.1983, allocations: 0.9407 MB / 0.5066 GB, free: 5.883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006092/0.2044, allocations: 2.667 MB / 0.5092 GB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00028/0.2047, allocations: 271.8 kB / 0.5095 GB, free: 2.895 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001059/0.2058, allocations: 367.9 kB / 0.5098 GB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01092/0.2167, allocations: 4.692 MB / 0.5144 GB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001104/0.2168, allocations: 3.906 kB / 0.5144 GB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006168/0.2175, allocations: 159.9 kB / 0.5146 GB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001423/0.2176, allocations: 151.3 kB / 0.5147 GB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007643/0.2253, allocations: 3.901 MB / 0.5185 GB, free: 9.578 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1964/0.4217, allocations: 15.47 MB / 0.5336 GB, free: 56.53 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005561/0.4273, allocations: 6.133 MB / 0.5396 GB, free: 52.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002632/0.43, allocations: 1.405 MB / 0.541 GB, free: 52.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0081/0.4381, allocations: 4.245 MB / 0.5451 GB, free: 50.9 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.964e-05/0.4382, allocations: 49.16 kB / 0.5452 GB, free: 50.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 4.498e-06/0.4382, allocations: 0 / 0.5452 GB, free: 50.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.01448/0.4527, allocations: 6.132 MB / 0.5512 GB, free: 49.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.4528, allocations: 71.19 kB / 0.5512 GB, free: 49.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004956/0.4577, allocations: 2.07 MB / 0.5533 GB, free: 48.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003441/0.4581, allocations: 51.7 kB / 0.5533 GB, free: 48.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001429/0.4596, allocations: 1.696 MB / 0.555 GB, free: 47.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005974/0.4602, allocations: 0.5324 MB / 0.5555 GB, free: 46.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007759/0.461, allocations: 406 kB / 0.5559 GB, free: 46.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.185e-05/0.461, allocations: 301.1 kB / 0.5562 GB, free: 46.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.4624, allocations: 0.7769 MB / 0.5569 GB, free: 46.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001569/0.464, allocations: 1.549 MB / 0.5584 GB, free: 44.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01254/0.4765, allocations: 4.809 MB / 0.5631 GB, free: 41.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-05/0.4766, allocations: 9.062 kB / 0.5631 GB, free: 41.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004684/0.4813, allocations: 2.874 MB / 0.5659 GB, free: 39.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.304e-05/0.4814, allocations: 16.28 kB / 0.566 GB, free: 39.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.597e-05/0.4814, allocations: 23.56 kB / 0.566 GB, free: 39.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009328/0.4824, allocations: 357.4 kB / 0.5663 GB, free: 39.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001639/0.484, allocations: 489.9 kB / 0.5668 GB, free: 39.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004304/0.4883, allocations: 4.091 MB / 0.5708 GB, free: 36.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001895/0.4903, allocations: 91.39 kB / 0.5709 GB, free: 36.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002166/0.4905, allocations: 104.5 kB / 0.571 GB, free: 36.41 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.001846/0.4923, allocations: 1.098 MB / 0.572 GB, free: 35.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005421/0.4929, allocations: 228.6 kB / 0.5723 GB, free: 35.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003319/0.4962, allocations: 1.984 MB / 0.5742 GB, free: 34.3 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.4963, allocations: 13.08 kB / 0.5742 GB, free: 34.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.769e-06/0.4963, allocations: 4.812 kB / 0.5742 GB, free: 34.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.4963, allocations: 7.969 kB / 0.5742 GB, free: 34.28 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008749/0.505, allocations: 5.444 MB / 0.5795 GB, free: 28.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/0.5051, allocations: 4.562 kB / 0.5795 GB, free: 28.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/0.5062, allocations: 264 kB / 0.5798 GB, free: 28.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007371/0.507, allocations: 293.1 kB / 0.5801 GB, free: 28.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001302/0.5071, allocations: 47.73 kB / 0.5801 GB, free: 28.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00383/0.511, allocations: 3.828 MB / 0.5839 GB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.511, allocations: 9.156 kB / 0.5839 GB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00407/0.5151, allocations: 2.925 MB / 0.5867 GB, free: 21.22 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/0.5162, allocations: 466.3 kB / 0.5872 GB, free: 20.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005575/0.5167, allocations: 35.98 kB / 0.5872 GB, free: 20.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/0.518, allocations: 55.97 kB / 0.5873 GB, free: 20.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000221/0.5182, allocations: 113.1 kB / 0.5874 GB, free: 20.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.703e-05/0.5184, allocations: 40 kB / 0.5874 GB, free: 20.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002299/0.5207, allocations: 1.399 MB / 0.5888 GB, free: 19.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5207, allocations: 0 / 0.5888 GB, free: 19.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002522/0.5232, allocations: 0.6396 MB / 0.5894 GB, free: 18.45 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.004479/0.5277, allocations: 3.539 MB / 0.5929 GB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005328/0.533, allocations: 2.733 MB / 0.5955 GB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.924e-06/0.5331, allocations: 0 / 0.5955 GB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001642/0.5348, allocations: 1.086 MB / 0.5966 GB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003174/0.538, allocations: 0.5799 MB / 0.5971 GB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03691/0.5749, allocations: 25.13 MB / 0.6217 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002917/0.5778, allocations: 2.435 MB / 0.6241 GB, free: 12.58 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002032/0.5799, allocations: 0.4919 MB / 0.6246 GB, free: 12.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001943/0.5819, allocations: 1.319 MB / 0.6258 GB, free: 10.77 MB / 398.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5819, allocations: 0 / 0.6258 GB, free: 10.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1016/0.6834, allocations: 56.9 MB / 0.6814 GB, free: 2.254 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/11.01, allocations: 11.31 kB / 0.6814 GB, free: 2.246 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe 2>&1)