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.001058/0.001058, 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.267/1.267, allocations: 222.9 MB / 239 MB, free: 4.66 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.001118/0.001118, allocations: 196.5 kB / 289.3 MB, free: 2.387 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04359/0.04359, allocations: 8.804 MB / 348.2 MB, free: 4.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002338/0.002338, allocations: 78.05 kB / 410.7 MB, free: 42.33 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09046/0.09282, allocations: 51.57 MB / 462.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01593/0.1088, allocations: 15.73 MB / 478 MB, free: 14.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008709/0.1175, allocations: 5.216 MB / 483.2 MB, free: 9.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001781/0.1193, allocations: 91.69 kB / 483.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002993/0.1224, allocations: 1.073 MB / 484.4 MB, free: 8.461 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.004175/0.1266, allocations: 1.368 MB / 485.7 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002244/0.1289, allocations: 0.9076 MB / 486.6 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006717/0.1356, allocations: 4.7 MB / 491.3 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004236/0.1398, allocations: 3.473 MB / 494.8 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002912/0.1428, allocations: 1.962 MB / 496.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003086/0.1459, allocations: 2.296 MB / 499.1 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007603/0.1467, allocations: 0.5547 MB / 499.6 MB, free: 9.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00161/0.1483, allocations: 0.781 MB / 0.4887 GB, free: 8.312 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001049/0.1493, allocations: 1.227 MB / 0.4899 GB, free: 7.082 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002546/0.1519, allocations: 2.369 MB / 0.4922 GB, free: 4.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00674/0.1586, allocations: 7.228 MB / 0.4993 GB, free: 13.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1587, allocations: 0 / 0.4993 GB, free: 13.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1587, allocations: 0 / 0.4993 GB, free: 13.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001179/0.1588, allocations: 0 / 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.01095/0.1698, allocations: 4.826 MB / 0.504 GB, free: 8.555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.1698, allocations: 8.031 kB / 0.504 GB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008032/0.1706, allocations: 0.549 MB / 0.5045 GB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004874/0.1755, allocations: 0.9485 MB / 0.5054 GB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004562/0.1801, allocations: 2.55 MB / 0.5079 GB, free: 4.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001855/0.1803, allocations: 283.7 kB / 0.5082 GB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005062/0.1808, allocations: 371.8 kB / 0.5085 GB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007811/0.1886, allocations: 4.68 MB / 0.5131 GB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.262e-05/0.1887, allocations: 11.94 kB / 0.5131 GB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003614/0.1891, allocations: 156 kB / 0.5133 GB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002016/0.1893, allocations: 151.3 kB / 0.5134 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006686/0.196, allocations: 3.901 MB / 0.5172 GB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.187/0.383, allocations: 15.52 MB / 0.5324 GB, free: 57.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00478/0.3878, allocations: 6.125 MB / 0.5384 GB, free: 53.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002293/0.3901, allocations: 1.418 MB / 0.5398 GB, free: 53.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006221/0.3963, allocations: 4.273 MB / 0.5439 GB, free: 52.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.3964, allocations: 43.66 kB / 0.544 GB, free: 52.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 2.775e-06/0.3964, allocations: 5.422 kB / 0.544 GB, free: 52.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.01248/0.4089, allocations: 6.192 MB / 0.55 GB, free: 50.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.4089, allocations: 67.56 kB / 0.5501 GB, free: 50.58 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003084/0.412, allocations: 2.095 MB / 0.5521 GB, free: 49.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001246/0.4122, allocations: 51.58 kB / 0.5522 GB, free: 49.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008594/0.413, allocations: 1.699 MB / 0.5538 GB, free: 48.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003139/0.4134, allocations: 0.54 MB / 0.5544 GB, free: 47.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005072/0.4139, allocations: 406.9 kB / 0.5548 GB, free: 47.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.801e-05/0.4139, allocations: 305 kB / 0.5551 GB, free: 47.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009975/0.4149, allocations: 0.7798 MB / 0.5558 GB, free: 47.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00123/0.4162, allocations: 1.552 MB / 0.5573 GB, free: 45.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01194/0.4281, allocations: 4.837 MB / 0.5621 GB, free: 42.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-05/0.4282, allocations: 3.75 kB / 0.5621 GB, free: 42.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004079/0.4322, allocations: 2.894 MB / 0.5649 GB, free: 41.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.4323, allocations: 15.31 kB / 0.5649 GB, free: 41.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.443e-05/0.4323, allocations: 26.5 kB / 0.5649 GB, free: 41.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008723/0.4332, allocations: 370.6 kB / 0.5653 GB, free: 40.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001503/0.4347, allocations: 491.4 kB / 0.5657 GB, free: 40.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004001/0.4387, allocations: 4.133 MB / 0.5698 GB, free: 37.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00175/0.4405, allocations: 91.8 kB / 0.5699 GB, free: 37.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/0.4406, allocations: 102 kB / 0.57 GB, free: 37.55 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.001523/0.4422, allocations: 1.103 MB / 0.571 GB, free: 36.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000321/0.4425, allocations: 223.4 kB / 0.5713 GB, free: 36.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002897/0.4454, allocations: 2.001 MB / 0.5732 GB, free: 35.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.4454, allocations: 16.69 kB / 0.5732 GB, free: 35.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.4454, allocations: 4 kB / 0.5732 GB, free: 35.49 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.44e-05/0.4455, allocations: 11.97 kB / 0.5732 GB, free: 35.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006991/0.4524, allocations: 5.496 MB / 0.5786 GB, free: 29.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.4525, allocations: 4 kB / 0.5786 GB, free: 29.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.4536, allocations: 259.7 kB / 0.5789 GB, free: 29.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007368/0.4543, allocations: 301.5 kB / 0.5791 GB, free: 29.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.75e-05/0.4544, allocations: 35.98 kB / 0.5792 GB, free: 29.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003634/0.458, allocations: 3.896 MB / 0.583 GB, free: 25.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4581, allocations: 4 kB / 0.583 GB, free: 25.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003711/0.4618, allocations: 2.952 MB / 0.5859 GB, free: 22.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008813/0.4627, allocations: 474.8 kB / 0.5863 GB, free: 21.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004844/0.4632, allocations: 35.28 kB / 0.5864 GB, free: 21.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001247/0.4644, allocations: 63.95 kB / 0.5864 GB, free: 21.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002108/0.4646, allocations: 105.1 kB / 0.5865 GB, free: 21.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.604e-05/0.4648, allocations: 47.98 kB / 0.5866 GB, free: 21.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001814/0.4666, allocations: 1.407 MB / 0.5879 GB, free: 20.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4666, allocations: 0 / 0.5879 GB, free: 20.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002224/0.4688, allocations: 0.6523 MB / 0.5886 GB, free: 19.49 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.004075/0.4729, allocations: 3.564 MB / 0.5921 GB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005054/0.478, allocations: 2.746 MB / 0.5947 GB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.478, allocations: 4.375 kB / 0.5947 GB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001487/0.4795, allocations: 1.078 MB / 0.5958 GB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00323/0.4827, allocations: 0.5862 MB / 0.5964 GB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04772/0.5305, allocations: 26.9 MB / 0.6226 GB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002796/0.5333, allocations: 2.438 MB / 0.625 GB, free: 11.83 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001917/0.5352, allocations: 0.4957 MB / 0.6255 GB, free: 11.33 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001843/0.5371, allocations: 1.323 MB / 0.6268 GB, free: 10.01 MB / 398.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5371, allocations: 0 / 0.6268 GB, free: 10.01 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4979/1.035, allocations: 57.12 MB / 0.6826 GB, free: 1.328 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002192/1.035, allocations: 231.1 kB / 0.6828 GB, free: 1.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.856/3.892, allocations: 0 / 0.6828 GB, free: 1.07 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe 2>&1)