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.005154/0.005154, allocations: 100.5 kB / 15.73 MB, free: 6.031 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.352/1.352, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001341/0.001341, allocations: 195.4 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0354/0.0354, allocations: 8.802 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001613/0.001613, allocations: 75.88 kB / 463.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/0.09643, allocations: 51.57 MB / 0.503 GB, free: 9.926 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01786/0.1143, allocations: 15.93 MB / 0.5185 GB, free: 9.914 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009933/0.1243, allocations: 5.301 MB / 0.5237 GB, free: 4.598 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002565/0.1269, allocations: 91.69 kB / 0.5238 GB, free: 4.508 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003659/0.1306, allocations: 1.215 MB / 0.525 GB, free: 3.281 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.005163/0.1358, allocations: 1.522 MB / 0.5265 GB, free: 1.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003098/0.1389, allocations: 0.9858 MB / 0.5274 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2131/0.3521, allocations: 4.59 MB / 0.5319 GB, free: 5.742 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005777/0.3579, allocations: 3.484 MB / 0.5353 GB, free: 5.148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003407/0.3613, allocations: 2.053 MB / 0.5373 GB, free: 4.902 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004091/0.3654, allocations: 2.33 MB / 0.5396 GB, free: 4.484 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001674/0.3671, allocations: 0.5605 MB / 0.5402 GB, free: 4.484 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00291/0.3701, allocations: 0.7737 MB / 0.5409 GB, free: 4.484 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001858/0.3719, allocations: 1.236 MB / 0.5421 GB, free: 4.332 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004946/0.3769, allocations: 2.378 MB / 0.5444 GB, free: 3.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01002/0.3869, allocations: 7.32 MB / 0.5516 GB, free: 2.957 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.387, allocations: 0.9062 kB / 0.5516 GB, free: 2.957 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.387, allocations: 0 / 0.5516 GB, free: 2.957 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002316/0.3872, allocations: 0 / 0.5516 GB, free: 2.957 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.01684/0.4041, allocations: 4.819 MB / 0.5563 GB, free: 108 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.4041, allocations: 9.531 kB / 0.5563 GB, free: 108 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002265/0.4064, allocations: 0.5566 MB / 0.5569 GB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006325/0.4128, allocations: 0.9387 MB / 0.5578 GB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007583/0.4204, allocations: 2.746 MB / 0.5605 GB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002946/0.4207, allocations: 279.8 kB / 0.5607 GB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001562/0.4223, allocations: 363.4 kB / 0.5611 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0126/0.4349, allocations: 4.678 MB / 0.5656 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001536/0.4351, allocations: 6.094 kB / 0.5656 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001129/0.4362, allocations: 151.5 kB / 0.5658 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002316/0.4365, allocations: 155.2 kB / 0.5659 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01097/0.4475, allocations: 3.894 MB / 0.5697 GB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02921/0.4767, allocations: 15.16 MB / 0.5845 GB, free: 8.352 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006906/0.4837, allocations: 5.94 MB / 0.5903 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002334/0.4861, allocations: 1.269 MB / 0.5916 GB, free: 396 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008291/0.4944, allocations: 4.12 MB / 0.5956 GB, free: 12.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.736e-05/0.4945, allocations: 43.56 kB / 0.5956 GB, free: 12.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=118): time 3.326e-06/0.4945, allocations: 0 / 0.5956 GB, free: 12.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01245/0.5069, allocations: 5.249 MB / 0.6008 GB, free: 6.766 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.507, allocations: 71.98 kB / 0.6008 GB, free: 6.684 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003666/0.5107, allocations: 2.145 MB / 0.6029 GB, free: 4.504 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000124/0.5108, allocations: 49.7 kB / 0.603 GB, free: 4.449 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001154/0.512, allocations: 1.739 MB / 0.6047 GB, free: 2.699 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004428/0.5124, allocations: 0.4908 MB / 0.6052 GB, free: 2.211 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006663/0.5131, allocations: 415.7 kB / 0.6056 GB, free: 1.797 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.49e-05/0.5132, allocations: 305.1 kB / 0.6058 GB, free: 1.496 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.5145, allocations: 0.7618 MB / 0.6066 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001687/0.5161, allocations: 1.546 MB / 0.6081 GB, free: 14.84 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0138/0.53, allocations: 4.725 MB / 0.6127 GB, free: 9.855 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.689e-05/0.53, allocations: 8 kB / 0.6127 GB, free: 9.848 MB / 430.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.005221/0.5353, allocations: 2.788 MB / 0.6154 GB, free: 7.203 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.224e-05/0.5353, allocations: 16 kB / 0.6155 GB, free: 7.188 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.363e-05/0.5354, allocations: 24 kB / 0.6155 GB, free: 7.164 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007821/0.5362, allocations: 278.1 kB / 0.6157 GB, free: 6.887 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001804/0.538, allocations: 0.4928 MB / 0.6162 GB, free: 6.43 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003903/0.5419, allocations: 3.377 MB / 0.6195 GB, free: 2.945 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002072/0.544, allocations: 99.77 kB / 0.6196 GB, free: 2.848 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002406/0.5442, allocations: 104 kB / 0.6197 GB, free: 2.746 MB / 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[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.002142/0.5464, allocations: 1.095 MB / 0.6208 GB, free: 1.676 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006253/0.547, allocations: 225.2 kB / 0.621 GB, free: 1.453 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003508/0.5505, allocations: 1.769 MB / 0.6227 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/0.5506, allocations: 16 kB / 0.6227 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.5506, allocations: 4 kB / 0.6227 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.437e-05/0.5506, allocations: 11.97 kB / 0.6228 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0103/0.5609, allocations: 4.974 MB / 0.6276 GB, free: 10.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.477e-05/0.561, allocations: 4 kB / 0.6276 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/0.5622, allocations: 261.9 kB / 0.6279 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006312/0.5628, allocations: 219.2 kB / 0.6281 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/0.563, allocations: 31.98 kB / 0.6281 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003988/0.5669, allocations: 3.253 MB / 0.6313 GB, free: 6.762 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.567, allocations: 0 / 0.6313 GB, free: 6.762 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005191/0.5722, allocations: 2.661 MB / 0.6339 GB, free: 4.062 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001536/0.5737, allocations: 454.3 kB / 0.6343 GB, free: 3.598 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007818/0.5745, allocations: 35.98 kB / 0.6344 GB, free: 3.562 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/0.576, allocations: 59.91 kB / 0.6344 GB, free: 3.504 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002266/0.5762, allocations: 100.8 kB / 0.6345 GB, free: 3.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-05/0.5763, allocations: 36 kB / 0.6345 GB, free: 3.375 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003045/0.5794, allocations: 1.443 MB / 0.6359 GB, free: 1.914 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.5794, allocations: 0 / 0.6359 GB, free: 1.914 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002893/0.5823, allocations: 0.6328 MB / 0.6366 GB, free: 1.281 MB / 446.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.004677/0.587, allocations: 3.273 MB / 0.6398 GB, free: 13.98 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003773/0.5908, allocations: 2.15 MB / 0.6419 GB, free: 11.88 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.5908, allocations: 0 / 0.6419 GB, free: 11.88 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001496/0.5923, allocations: 0.9524 MB / 0.6428 GB, free: 10.94 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0034/0.5957, allocations: 0.5829 MB / 0.6434 GB, free: 10.36 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03841/0.6342, allocations: 21.68 MB / 0.6645 GB, free: 3.797 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002947/0.6371, allocations: 2.419 MB / 0.6669 GB, free: 1.348 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001775/0.6389, allocations: 0.4996 MB / 0.6674 GB, free: 0.8438 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001873/0.6408, allocations: 1.332 MB / 0.6687 GB, free: 15.52 MB / 494.1 MB Notification: Performance of SimCode: time 9.12e-07/0.6408, allocations: 0 / 0.6687 GB, free: 15.52 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09915/0.74, allocations: 55.57 MB / 0.723 GB, free: 8.398 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/14.77, allocations: 8 kB / 0.723 GB, free: 8.391 MB / 0.5294 GB (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)