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.001154/0.001154, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.242/1.242, allocations: 222.9 MB / 239 MB, free: 4.734 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.001125/0.001125, allocations: 196.4 kB / 289.3 MB, free: 2.461 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03415/0.03415, allocations: 8.792 MB / 348.2 MB, free: 4.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 76.38 kB / 410.7 MB, free: 42.36 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07399/0.07556, allocations: 51.57 MB / 462.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01686/0.09245, allocations: 15.74 MB / 478 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009021/0.1015, allocations: 5.216 MB / 483.2 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002212/0.1037, allocations: 95.62 kB / 483.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003154/0.1069, allocations: 1.061 MB / 484.4 MB, free: 8.473 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.004123/0.1111, allocations: 1.372 MB / 485.7 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001969/0.1131, allocations: 0.9009 MB / 486.6 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004975/0.118, allocations: 4.692 MB / 491.3 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003778/0.1218, allocations: 3.485 MB / 494.8 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002437/0.1243, allocations: 1.954 MB / 496.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0026/0.1269, allocations: 2.308 MB / 499.1 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006864/0.1276, allocations: 0.5585 MB / 499.6 MB, free: 9.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001364/0.129, allocations: 0.7732 MB / 0.4887 GB, free: 8.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001042/0.13, allocations: 1.227 MB / 0.4899 GB, free: 7.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002762/0.1328, allocations: 2.369 MB / 0.4922 GB, free: 4.711 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00642/0.1392, allocations: 7.236 MB / 0.4993 GB, free: 13.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1393, allocations: 0 / 0.4993 GB, free: 13.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1393, allocations: 0 / 0.4993 GB, free: 13.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.719e-05/0.1394, allocations: 4 kB / 0.4993 GB, free: 13.45 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.01007/0.1494, allocations: 4.814 MB / 0.504 GB, free: 8.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.1495, allocations: 12.03 kB / 0.504 GB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007904/0.1503, allocations: 0.549 MB / 0.5045 GB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004882/0.1552, allocations: 0.9445 MB / 0.5054 GB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004234/0.1594, allocations: 2.562 MB / 0.5079 GB, free: 4.426 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001796/0.1596, allocations: 271.8 kB / 0.5082 GB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004888/0.1601, allocations: 367.8 kB / 0.5086 GB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007114/0.1672, allocations: 4.675 MB / 0.5131 GB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.065e-05/0.1673, allocations: 3.938 kB / 0.5131 GB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003218/0.1676, allocations: 160 kB / 0.5133 GB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001296/0.1678, allocations: 151.3 kB / 0.5134 GB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005916/0.1737, allocations: 3.905 MB / 0.5172 GB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.182/0.3557, allocations: 15.37 MB / 0.5322 GB, free: 57.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00445/0.3602, allocations: 5.951 MB / 0.538 GB, free: 53.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001851/0.3621, allocations: 1.257 MB / 0.5393 GB, free: 53.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005788/0.3679, allocations: 4.166 MB / 0.5433 GB, free: 52.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.3679, allocations: 45.7 kB / 0.5434 GB, free: 51.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 2.585e-06/0.3679, allocations: 0 / 0.5434 GB, free: 51.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.009743/0.3777, allocations: 5.307 MB / 0.5486 GB, free: 50.9 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/0.3777, allocations: 70.05 kB / 0.5486 GB, free: 50.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00268/0.3804, allocations: 2.173 MB / 0.5508 GB, free: 50.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.989e-05/0.3805, allocations: 53.17 kB / 0.5508 GB, free: 50.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007859/0.3813, allocations: 1.728 MB / 0.5525 GB, free: 49.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002819/0.3816, allocations: 0.4949 MB / 0.553 GB, free: 48.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006024/0.3822, allocations: 416.8 kB / 0.5534 GB, free: 48.44 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.324e-05/0.3822, allocations: 303.7 kB / 0.5537 GB, free: 48.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/0.3833, allocations: 0.769 MB / 0.5544 GB, free: 47.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/0.3846, allocations: 1.54 MB / 0.5559 GB, free: 46.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01207/0.3966, allocations: 4.787 MB / 0.5606 GB, free: 43.6 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.17e-05/0.3967, allocations: 8.406 kB / 0.5606 GB, free: 43.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.003819/0.4005, allocations: 2.795 MB / 0.5633 GB, free: 42.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.4005, allocations: 19.94 kB / 0.5634 GB, free: 42.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.079e-05/0.4006, allocations: 24.12 kB / 0.5634 GB, free: 42.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007262/0.4013, allocations: 295.3 kB / 0.5637 GB, free: 41.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001565/0.4029, allocations: 496.8 kB / 0.5641 GB, free: 41.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003153/0.406, allocations: 3.432 MB / 0.5675 GB, free: 39.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.4076, allocations: 91.25 kB / 0.5676 GB, free: 39.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/0.4077, allocations: 111.1 kB / 0.5677 GB, free: 39.02 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.001505/0.4092, allocations: 1.094 MB / 0.5687 GB, free: 38.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002679/0.4095, allocations: 222.8 kB / 0.569 GB, free: 38.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002681/0.4122, allocations: 1.776 MB / 0.5707 GB, free: 37.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.4122, allocations: 11.22 kB / 0.5707 GB, free: 37.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.4122, allocations: 3.719 kB / 0.5707 GB, free: 37.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.4122, allocations: 7.969 kB / 0.5707 GB, free: 37.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005998/0.4182, allocations: 5.03 MB / 0.5756 GB, free: 32.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.4182, allocations: 4 kB / 0.5756 GB, free: 32.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.4193, allocations: 255.6 kB / 0.5759 GB, free: 32.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005682/0.4199, allocations: 227.3 kB / 0.5761 GB, free: 32.44 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.767e-05/0.42, allocations: 36.67 kB / 0.5761 GB, free: 32.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002852/0.4229, allocations: 3.31 MB / 0.5794 GB, free: 28.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4229, allocations: 4 kB / 0.5794 GB, free: 28.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003109/0.426, allocations: 2.673 MB / 0.582 GB, free: 26.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005958/0.4266, allocations: 458.3 kB / 0.5824 GB, free: 25.78 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002753/0.4269, allocations: 31.98 kB / 0.5824 GB, free: 25.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.4279, allocations: 64.91 kB / 0.5825 GB, free: 25.69 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.4281, allocations: 105 kB / 0.5826 GB, free: 25.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.429e-05/0.4282, allocations: 36.8 kB / 0.5826 GB, free: 25.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001534/0.4297, allocations: 1.466 MB / 0.5841 GB, free: 24.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4297, allocations: 0 / 0.5841 GB, free: 24.06 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001729/0.4314, allocations: 0.6337 MB / 0.5847 GB, free: 23.43 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.003407/0.4349, allocations: 3.281 MB / 0.5879 GB, free: 20.1 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004263/0.4391, allocations: 2.523 MB / 0.5904 GB, free: 17.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4392, allocations: 4 kB / 0.5904 GB, free: 17.56 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.4403, allocations: 0.9491 MB / 0.5913 GB, free: 16.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002103/0.4424, allocations: 0.5805 MB / 0.5919 GB, free: 16.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04013/0.4826, allocations: 26.53 MB / 0.6178 GB, free: 3.234 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002428/0.485, allocations: 2.419 MB / 0.6201 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001841/0.4869, allocations: 0.4995 MB / 0.6206 GB, free: 288 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001755/0.4887, allocations: 1.331 MB / 0.6219 GB, free: 14.96 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4887, allocations: 0 / 0.6219 GB, free: 14.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4903/0.979, allocations: 55.93 MB / 0.6765 GB, free: 7.477 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/0.9792, allocations: 220.9 kB / 0.6767 GB, free: 7.227 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.906/3.886, allocations: 4 kB / 0.6767 GB, free: 7.223 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1)