Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.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_ShortCircuit1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1",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.001099/0.001099, allocations: 108 kB / 15.61 MB, free: 152 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.389/1.389, allocations: 222.9 MB / 239.3 MB, free: 4.625 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.001502/0.001502, allocations: 188.5 kB / 289.6 MB, free: 2.348 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03514/0.03514, allocations: 8.8 MB / 348.5 MB, free: 4.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002165/0.002166, allocations: 81.25 kB / 411.2 MB, free: 42.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1025, allocations: 51.57 MB / 462.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01937/0.122, allocations: 15.92 MB / 478.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01126/0.1332, allocations: 5.313 MB / 484 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003716/0.137, allocations: 91.69 kB / 484.1 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004482/0.1415, allocations: 1.215 MB / 485.3 MB, free: 7.652 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.005594/0.1472, allocations: 1.527 MB / 486.8 MB, free: 6.117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002908/0.1501, allocations: 0.9796 MB / 487.8 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006594/0.1567, allocations: 4.574 MB / 492.4 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005342/0.1621, allocations: 3.493 MB / 495.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003155/0.1652, allocations: 2.044 MB / 497.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003683/0.1689, allocations: 2.323 MB / 0.4885 GB, free: 8.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00138/0.1703, allocations: 0.5586 MB / 0.489 GB, free: 8.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002303/0.1726, allocations: 0.7849 MB / 0.4898 GB, free: 7.262 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001659/0.1743, allocations: 1.227 MB / 0.491 GB, free: 6.031 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003938/0.1783, allocations: 2.381 MB / 0.4933 GB, free: 3.641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009623/0.1879, allocations: 7.26 MB / 0.5004 GB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.1879, allocations: 4 kB / 0.5004 GB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.188, allocations: 0 / 0.5004 GB, free: 12.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002423/0.1882, allocations: 4 kB / 0.5004 GB, free: 12.35 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.01584/0.2041, allocations: 4.822 MB / 0.5051 GB, free: 7.457 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.26e-05/0.2041, allocations: 12.03 kB / 0.5052 GB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00197/0.2061, allocations: 0.549 MB / 0.5057 GB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005887/0.212, allocations: 0.9445 MB / 0.5066 GB, free: 5.938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005903/0.218, allocations: 2.667 MB / 0.5092 GB, free: 3.215 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002306/0.2182, allocations: 275.8 kB / 0.5095 GB, free: 2.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009356/0.2192, allocations: 367.9 kB / 0.5098 GB, free: 2.586 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007929/0.2271, allocations: 4.671 MB / 0.5144 GB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.097e-05/0.2272, allocations: 7.844 kB / 0.5144 GB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003427/0.2276, allocations: 155.9 kB / 0.5146 GB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001259/0.2277, allocations: 151.3 kB / 0.5147 GB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007151/0.2349, allocations: 3.902 MB / 0.5185 GB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2133/0.4482, allocations: 15.32 MB / 0.5335 GB, free: 56.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00529/0.4535, allocations: 5.948 MB / 0.5393 GB, free: 52.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002243/0.4558, allocations: 1.26 MB / 0.5405 GB, free: 52.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006541/0.4624, allocations: 4.133 MB / 0.5445 GB, free: 51.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.4624, allocations: 48.88 kB / 0.5446 GB, free: 51.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 3.085e-06/0.4624, allocations: 3.391 kB / 0.5446 GB, free: 51.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.0116/0.4741, allocations: 5.249 MB / 0.5497 GB, free: 50.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.4741, allocations: 68.16 kB / 0.5498 GB, free: 49.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003518/0.4777, allocations: 2.157 MB / 0.5519 GB, free: 49.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001535/0.4778, allocations: 51.17 kB / 0.5519 GB, free: 49.38 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009872/0.4788, allocations: 1.73 MB / 0.5536 GB, free: 48.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003613/0.4792, allocations: 0.4981 MB / 0.5541 GB, free: 47.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006869/0.4799, allocations: 411.7 kB / 0.5545 GB, free: 47.47 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.317e-05/0.4799, allocations: 301.6 kB / 0.5548 GB, free: 47.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/0.4811, allocations: 0.7678 MB / 0.5555 GB, free: 46.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.4826, allocations: 1.537 MB / 0.557 GB, free: 45.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01219/0.4947, allocations: 4.755 MB / 0.5617 GB, free: 42.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.85e-05/0.4948, allocations: 7.438 kB / 0.5617 GB, free: 42.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.004419/0.4992, allocations: 2.789 MB / 0.5644 GB, free: 41.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.386e-05/0.4993, allocations: 15.34 kB / 0.5644 GB, free: 41.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.928e-05/0.4993, allocations: 26.53 kB / 0.5645 GB, free: 41.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007354/0.5001, allocations: 285.1 kB / 0.5647 GB, free: 40.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001527/0.5016, allocations: 0.4898 MB / 0.5652 GB, free: 40.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003318/0.5049, allocations: 3.374 MB / 0.5685 GB, free: 38.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002167/0.5071, allocations: 107.1 kB / 0.5686 GB, free: 37.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001813/0.5073, allocations: 102.5 kB / 0.5687 GB, free: 37.95 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[2] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 114 * 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 (261): * Single equations (assignments): 259 * 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 {(2,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001993/0.5093, allocations: 1.092 MB / 0.5698 GB, free: 37.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004956/0.5098, allocations: 226.5 kB / 0.57 GB, free: 37.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002718/0.5126, allocations: 1.754 MB / 0.5717 GB, free: 36.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.5126, allocations: 14.84 kB / 0.5717 GB, free: 36.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.5126, allocations: 4.406 kB / 0.5717 GB, free: 36.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.5126, allocations: 11.97 kB / 0.5717 GB, free: 36.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0072/0.5198, allocations: 4.985 MB / 0.5766 GB, free: 31.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.5199, allocations: 4.281 kB / 0.5766 GB, free: 31.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.521, allocations: 260.2 kB / 0.5769 GB, free: 31.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006263/0.5216, allocations: 216.7 kB / 0.5771 GB, free: 31.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.212e-05/0.5217, allocations: 39.86 kB / 0.5771 GB, free: 31.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003326/0.525, allocations: 3.262 MB / 0.5803 GB, free: 28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.583e-06/0.5251, allocations: 4 kB / 0.5803 GB, free: 27.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003811/0.5289, allocations: 2.658 MB / 0.5829 GB, free: 25.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/0.5299, allocations: 458.3 kB / 0.5833 GB, free: 24.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003201/0.5302, allocations: 28 kB / 0.5833 GB, free: 24.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009844/0.5312, allocations: 55.95 kB / 0.5834 GB, free: 24.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/0.5314, allocations: 105 kB / 0.5835 GB, free: 24.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.106e-05/0.5315, allocations: 40 kB / 0.5835 GB, free: 24.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00181/0.5333, allocations: 1.447 MB / 0.585 GB, free: 23.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5334, allocations: 0 / 0.585 GB, free: 23.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00224/0.5356, allocations: 0.6289 MB / 0.5856 GB, free: 22.51 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smee.phiMechanical,smee.stator.zeroInductor.i0,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 (125): * Single equations (assignments): 124 * 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 {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003519/0.5391, allocations: 3.258 MB / 0.5887 GB, free: 19.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004851/0.544, allocations: 2.511 MB / 0.5912 GB, free: 16.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.544, allocations: 4.375 kB / 0.5912 GB, free: 16.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001269/0.5453, allocations: 0.953 MB / 0.5921 GB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00308/0.5484, allocations: 0.5769 MB / 0.5927 GB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03532/0.5837, allocations: 24.76 MB / 0.6169 GB, free: 4.105 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002558/0.5863, allocations: 2.427 MB / 0.6192 GB, free: 1.648 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002169/0.5885, allocations: 0.4918 MB / 0.6197 GB, free: 1.152 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001816/0.5904, allocations: 1.337 MB / 0.621 GB, free: 15.84 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.5904, allocations: 0 / 0.621 GB, free: 15.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1129/0.7033, allocations: 55.77 MB / 0.6755 GB, free: 8.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.28/10.99, allocations: 3.938 kB / 0.6755 GB, free: 8.477 MB / 446.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1_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_ShortCircuit1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1)