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.0009559/0.0009559, 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.264/1.264, allocations: 222.9 MB / 238.9 MB, free: 4.766 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.001291/0.001291, allocations: 200.4 kB / 289.2 MB, free: 2.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03377/0.03377, allocations: 8.803 MB / 348.1 MB, free: 4.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 80.36 kB / 410.5 MB, free: 42.41 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07013/0.07152, allocations: 51.56 MB / 462.1 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01475/0.0863, allocations: 15.74 MB / 477.8 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008625/0.09497, allocations: 5.239 MB / 483 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002256/0.09725, allocations: 91.69 kB / 483.1 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0032/0.1005, allocations: 1.077 MB / 484.2 MB, free: 8.543 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.004203/0.1047, allocations: 1.379 MB / 485.6 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002186/0.1069, allocations: 0.9068 MB / 486.5 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005191/0.1121, allocations: 4.822 MB / 491.3 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003453/0.1156, allocations: 2.894 MB / 494.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00193/0.1175, allocations: 1.665 MB / 495.9 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002613/0.1202, allocations: 2.151 MB / 498 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005757/0.1208, allocations: 336 kB / 498.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001235/0.122, allocations: 0.5388 MB / 498.9 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007415/0.1228, allocations: 1 MB / 499.9 MB, free: 8.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001871/0.1246, allocations: 2.123 MB / 0.4903 GB, free: 6.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00505/0.1297, allocations: 7.076 MB / 0.4972 GB, free: 15.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1297, allocations: 0 / 0.4972 GB, free: 15.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1297, allocations: 4 kB / 0.4972 GB, free: 15.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.263e-05/0.1298, allocations: 4 kB / 0.4972 GB, free: 15.51 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.00963/0.1394, allocations: 4.81 MB / 0.5019 GB, free: 10.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.1395, allocations: 8.031 kB / 0.5019 GB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007642/0.1403, allocations: 0.5529 MB / 0.5024 GB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004859/0.1451, allocations: 0.9407 MB / 0.5033 GB, free: 9.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004747/0.1499, allocations: 2.562 MB / 0.5058 GB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000178/0.1501, allocations: 279.7 kB / 0.5061 GB, free: 6.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004875/0.1506, allocations: 371.8 kB / 0.5065 GB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007115/0.1577, allocations: 4.667 MB / 0.511 GB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.511e-05/0.1578, allocations: 7.984 kB / 0.511 GB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003083/0.1581, allocations: 152 kB / 0.5112 GB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001178/0.1582, allocations: 151.3 kB / 0.5113 GB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005817/0.164, allocations: 3.909 MB / 0.5151 GB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1672/0.3312, allocations: 15.37 MB / 0.5301 GB, free: 57.97 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004617/0.3359, allocations: 5.944 MB / 0.5359 GB, free: 53.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001973/0.3379, allocations: 1.259 MB / 0.5372 GB, free: 53.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005936/0.3438, allocations: 4.167 MB / 0.5412 GB, free: 52.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.3439, allocations: 44.66 kB / 0.5413 GB, free: 52.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 2.955e-06/0.3439, allocations: 0 / 0.5413 GB, free: 52.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.00972/0.3536, allocations: 5.3 MB / 0.5465 GB, free: 51.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.726e-05/0.3537, allocations: 66.91 kB / 0.5465 GB, free: 51.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002639/0.3563, allocations: 2.176 MB / 0.5487 GB, free: 50.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.484e-05/0.3564, allocations: 50.14 kB / 0.5487 GB, free: 50.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007524/0.3572, allocations: 1.728 MB / 0.5504 GB, free: 50.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002563/0.3574, allocations: 0.4955 MB / 0.5509 GB, free: 49.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004981/0.3579, allocations: 407.5 kB / 0.5513 GB, free: 49.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.212e-05/0.358, allocations: 308.9 kB / 0.5516 GB, free: 49.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/0.3591, allocations: 0.7718 MB / 0.5523 GB, free: 48.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/0.3605, allocations: 1.545 MB / 0.5538 GB, free: 47.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01154/0.372, allocations: 4.761 MB / 0.5585 GB, free: 45.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/0.3721, allocations: 7.688 kB / 0.5585 GB, free: 45.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.003746/0.3758, allocations: 2.795 MB / 0.5612 GB, free: 43.56 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.364e-05/0.3759, allocations: 15.12 kB / 0.5612 GB, free: 43.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.701e-05/0.3759, allocations: 31 kB / 0.5612 GB, free: 43.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006908/0.3766, allocations: 286.8 kB / 0.5615 GB, free: 43.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001478/0.3781, allocations: 499.9 kB / 0.562 GB, free: 43.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003014/0.3811, allocations: 3.172 MB / 0.5651 GB, free: 40.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001687/0.3828, allocations: 92.44 kB / 0.5652 GB, free: 40.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.3829, allocations: 103 kB / 0.5653 GB, free: 40.68 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.00146/0.3844, allocations: 1.101 MB / 0.5664 GB, free: 39.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002774/0.3847, allocations: 222.2 kB / 0.5666 GB, free: 39.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002598/0.3873, allocations: 1.782 MB / 0.5683 GB, free: 38.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/0.3873, allocations: 15.45 kB / 0.5683 GB, free: 38.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.3873, allocations: 3.5 kB / 0.5683 GB, free: 38.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.3873, allocations: 7.969 kB / 0.5683 GB, free: 38.78 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006339/0.3937, allocations: 5.022 MB / 0.5732 GB, free: 35.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.3937, allocations: 5.188 kB / 0.5732 GB, free: 35.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.3948, allocations: 259.7 kB / 0.5735 GB, free: 34.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006102/0.3954, allocations: 221.4 kB / 0.5737 GB, free: 34.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-05/0.3955, allocations: 36 kB / 0.5737 GB, free: 34.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002709/0.3982, allocations: 3.041 MB / 0.5767 GB, free: 31.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.3982, allocations: 3.938 kB / 0.5767 GB, free: 31.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003447/0.4017, allocations: 2.67 MB / 0.5793 GB, free: 28.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000877/0.4026, allocations: 459.5 kB / 0.5798 GB, free: 28.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002997/0.4029, allocations: 40.42 kB / 0.5798 GB, free: 28.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009899/0.4039, allocations: 59.91 kB / 0.5799 GB, free: 28.24 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/0.4041, allocations: 101.1 kB / 0.5799 GB, free: 28.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.141e-05/0.4042, allocations: 43.98 kB / 0.58 GB, free: 28.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001634/0.4058, allocations: 1.46 MB / 0.5814 GB, free: 26.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4058, allocations: 0 / 0.5814 GB, free: 26.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001824/0.4076, allocations: 0.6328 MB / 0.582 GB, free: 25.98 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.003457/0.4111, allocations: 3.28 MB / 0.5852 GB, free: 22.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00277/0.4139, allocations: 2.156 MB / 0.5873 GB, free: 20.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.4139, allocations: 0 / 0.5873 GB, free: 20.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.4151, allocations: 0.9521 MB / 0.5883 GB, free: 19.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002366/0.4174, allocations: 0.5593 MB / 0.5888 GB, free: 18.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0381/0.4555, allocations: 26.54 MB / 0.6147 GB, free: 6.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001986/0.4576, allocations: 2.419 MB / 0.6171 GB, free: 3.727 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001776/0.4593, allocations: 0.4957 MB / 0.6176 GB, free: 3.227 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001553/0.4609, allocations: 1.327 MB / 0.6189 GB, free: 1.898 MB / 382.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4609, allocations: 0 / 0.6189 GB, free: 1.898 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08314/0.5441, allocations: 54.72 MB / 0.6723 GB, free: 11.57 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002324/0.5443, allocations: 220.8 kB / 0.6725 GB, free: 11.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.63/3.174, allocations: 0 / 0.6725 GB, free: 11.32 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)