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.004889/0.004889, allocations: 103.6 kB / 15.73 MB, free: 6.445 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.356/1.356, allocations: 222.9 MB / 239.4 MB, free: 4.488 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.001391/0.001391, allocations: 188.5 kB / 289.7 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03574/0.03574, allocations: 8.79 MB / 348.7 MB, free: 4.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 71.89 kB / 463.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09759/0.09914, allocations: 51.58 MB / 0.503 GB, free: 9.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01605/0.1152, allocations: 15.92 MB / 0.5185 GB, free: 9.852 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009299/0.1245, allocations: 5.305 MB / 0.5237 GB, free: 4.531 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002551/0.1271, allocations: 91.69 kB / 0.5238 GB, free: 4.441 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003709/0.1308, allocations: 1.215 MB / 0.525 GB, free: 3.215 MB / 366.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.005025/0.1359, allocations: 1.534 MB / 0.5265 GB, free: 1.672 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002704/0.1386, allocations: 0.9833 MB / 0.5275 GB, free: 0.6914 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2068/0.3455, allocations: 4.584 MB / 0.5319 GB, free: 5.641 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004019/0.3495, allocations: 3.492 MB / 0.5353 GB, free: 5.047 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002865/0.3524, allocations: 2.055 MB / 0.5374 GB, free: 4.797 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00344/0.3559, allocations: 2.326 MB / 0.5396 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001268/0.3572, allocations: 0.5599 MB / 0.5402 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002046/0.3592, allocations: 0.7673 MB / 0.5409 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001024/0.3603, allocations: 1.243 MB / 0.5421 GB, free: 4.234 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003808/0.3641, allocations: 2.378 MB / 0.5445 GB, free: 3.648 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00843/0.3725, allocations: 7.322 MB / 0.5516 GB, free: 2.852 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.367e-06/0.3726, allocations: 0 / 0.5516 GB, free: 2.852 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3726, allocations: 0 / 0.5516 GB, free: 2.852 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001901/0.3728, allocations: 0 / 0.5516 GB, free: 2.852 MB / 366.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.01314/0.3859, allocations: 4.817 MB / 0.5563 GB, free: 0 / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.386, allocations: 9.812 kB / 0.5563 GB, free: 0 / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001201/0.3872, allocations: 0.5538 MB / 0.5569 GB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00551/0.3927, allocations: 0.939 MB / 0.5578 GB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006165/0.3989, allocations: 2.746 MB / 0.5605 GB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001886/0.3991, allocations: 281.2 kB / 0.5607 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008126/0.4, allocations: 364.5 kB / 0.5611 GB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008727/0.4087, allocations: 4.692 MB / 0.5657 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.236e-05/0.4088, allocations: 6.375 kB / 0.5657 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003714/0.4092, allocations: 150.9 kB / 0.5658 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000117/0.4093, allocations: 151.1 kB / 0.5659 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006486/0.4158, allocations: 3.902 MB / 0.5698 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02507/0.4409, allocations: 15.3 MB / 0.5847 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005538/0.4465, allocations: 6.133 MB / 0.5907 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002391/0.4489, allocations: 1.444 MB / 0.5921 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006803/0.4557, allocations: 4.223 MB / 0.5962 GB, free: 11.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/0.4558, allocations: 47.56 kB / 0.5963 GB, free: 11.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=125): time 3.015e-06/0.4558, allocations: 0 / 0.5963 GB, free: 11.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.01302/0.4688, allocations: 6.112 MB / 0.6022 GB, free: 5.102 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.832e-05/0.4689, allocations: 80.7 kB / 0.6023 GB, free: 5.008 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003089/0.472, allocations: 2.065 MB / 0.6043 GB, free: 2.906 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001249/0.4721, allocations: 57.7 kB / 0.6044 GB, free: 2.844 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00105/0.4732, allocations: 1.687 MB / 0.606 GB, free: 1.145 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004086/0.4736, allocations: 0.5342 MB / 0.6066 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005732/0.4742, allocations: 411.7 kB / 0.607 GB, free: 208 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.4743, allocations: 304.3 kB / 0.6072 GB, free: 15.91 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.4755, allocations: 0.7774 MB / 0.608 GB, free: 15.12 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001635/0.4771, allocations: 1.549 MB / 0.6095 GB, free: 13.23 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01321/0.4903, allocations: 4.789 MB / 0.6142 GB, free: 8.191 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.47e-05/0.4904, allocations: 8 kB / 0.6142 GB, free: 8.184 MB / 430.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004906/0.4953, allocations: 2.879 MB / 0.617 GB, free: 5.449 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/0.4954, allocations: 16 kB / 0.617 GB, free: 5.434 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.88e-05/0.4954, allocations: 24 kB / 0.617 GB, free: 5.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009285/0.4963, allocations: 357.4 kB / 0.6174 GB, free: 5.059 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001683/0.498, allocations: 487.1 kB / 0.6179 GB, free: 4.617 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004836/0.5029, allocations: 4.081 MB / 0.6218 GB, free: 432 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001989/0.5049, allocations: 103.7 kB / 0.6219 GB, free: 328 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001896/0.5051, allocations: 100 kB / 0.622 GB, free: 228 kB / 430.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.002055/0.5072, allocations: 1.091 MB / 0.6231 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004457/0.5076, allocations: 225.4 kB / 0.6233 GB, free: 14.94 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003374/0.511, allocations: 1.98 MB / 0.6252 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.37e-05/0.511, allocations: 16 kB / 0.6253 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/0.511, allocations: 7.938 kB / 0.6253 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.624e-05/0.5111, allocations: 7.969 kB / 0.6253 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00875/0.5198, allocations: 5.43 MB / 0.6306 GB, free: 7.438 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.5199, allocations: 4 kB / 0.6306 GB, free: 7.434 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.521, allocations: 269.8 kB / 0.6308 GB, free: 7.184 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007906/0.5218, allocations: 280.7 kB / 0.6311 GB, free: 6.906 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.835e-05/0.5219, allocations: 39.98 kB / 0.6311 GB, free: 6.867 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00461/0.5265, allocations: 3.85 MB / 0.6349 GB, free: 2.898 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.5265, allocations: 0 / 0.6349 GB, free: 2.898 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004673/0.5312, allocations: 2.922 MB / 0.6378 GB, free: 15.94 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/0.5324, allocations: 466.2 kB / 0.6382 GB, free: 15.46 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005946/0.533, allocations: 32 kB / 0.6382 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/0.5342, allocations: 67.89 kB / 0.6383 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002372/0.5344, allocations: 112.7 kB / 0.6384 GB, free: 15.26 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.225e-05/0.5345, allocations: 39.98 kB / 0.6384 GB, free: 15.22 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002197/0.5367, allocations: 1.399 MB / 0.6398 GB, free: 13.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5367, allocations: 0 / 0.6398 GB, free: 13.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002167/0.5389, allocations: 0.6367 MB / 0.6404 GB, free: 13.16 MB / 462.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.00466/0.5436, allocations: 3.541 MB / 0.6439 GB, free: 9.594 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003759/0.5474, allocations: 2.29 MB / 0.6461 GB, free: 7.363 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.5474, allocations: 0 / 0.6461 GB, free: 7.363 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001824/0.5492, allocations: 1.094 MB / 0.6472 GB, free: 6.289 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002963/0.5522, allocations: 0.5703 MB / 0.6478 GB, free: 5.723 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03296/0.5852, allocations: 22.03 MB / 0.6693 GB, free: 14.82 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002148/0.5874, allocations: 2.439 MB / 0.6716 GB, free: 12.36 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00155/0.5889, allocations: 0.4919 MB / 0.6721 GB, free: 11.86 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00163/0.5906, allocations: 1.323 MB / 0.6734 GB, free: 10.54 MB / 494.1 MB Notification: Performance of SimCode: time 9.51e-07/0.5906, allocations: 0 / 0.6734 GB, free: 10.54 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09752/0.6881, allocations: 56.79 MB / 0.7289 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.92/14.61, allocations: 7.984 kB / 0.7289 GB, free: 2.176 MB / 0.5294 GB (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)