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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.02291/0.02291, allocations: 169.5 kB / 15.13 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.07485/0.07485, allocations: 8.81 MB / 24.67 MB, free: 4.098 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.958/2.958, allocations: 223.3 MB / 250.8 MB, free: 4.805 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 91.62 kB / 304.1 MB, free: 3.543 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007294/0.0007295, allocations: 8 kB / 367.3 MB, free: 6.703 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1851/0.1859, allocations: 52.55 MB / 419.8 MB, free: 2.105 MB / 346.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.4439/0.6299, allocations: 14.02 MB / 433.8 MB, free: 38.98 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01673/0.6467, allocations: 4.934 MB / 438.7 MB, free: 35.61 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005646/0.6524, allocations: 89.16 kB / 438.8 MB, free: 35.59 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007157/0.6596, allocations: 0.9293 MB / 439.8 MB, free: 35.15 MB / 346.7 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.01027/0.6699, allocations: 1.243 MB / 441 MB, free: 34.37 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005036/0.675, allocations: 0.6781 MB / 441.7 MB, free: 33.96 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01299/0.688, allocations: 4.513 MB / 446.2 MB, free: 31.78 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009313/0.6974, allocations: 2.419 MB / 448.6 MB, free: 31 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006587/0.704, allocations: 1.42 MB / 450 MB, free: 30.39 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007396/0.7115, allocations: 1.787 MB / 451.8 MB, free: 29.59 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003047/0.7146, allocations: 236.1 kB / 452.1 MB, free: 29.59 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005526/0.7202, allocations: 437.1 kB / 452.5 MB, free: 29.52 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004262/0.7246, allocations: 0.8304 MB / 453.3 MB, free: 29.08 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004316/0.729, allocations: 0.8227 MB / 454.1 MB, free: 28.59 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01847/0.7475, allocations: 5.957 MB / 460.1 MB, free: 27.35 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.154e-05/0.7476, allocations: 0 / 460.1 MB, free: 27.35 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.819e-06/0.7476, allocations: 1.031 kB / 460.1 MB, free: 27.35 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003817/0.748, allocations: 0 / 460.1 MB, free: 27.35 MB / 346.7 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.0284/0.7764, allocations: 4.107 MB / 464.2 MB, free: 25.29 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.178e-05/0.7765, allocations: 11.27 kB / 464.2 MB, free: 25.29 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004694/0.7812, allocations: 0.5461 MB / 464.8 MB, free: 24.99 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01033/0.7916, allocations: 0.9544 MB / 465.7 MB, free: 24.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01391/0.8056, allocations: 2.505 MB / 468.2 MB, free: 23.25 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009814/0.8066, allocations: 280.5 kB / 468.5 MB, free: 23.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003069/0.8097, allocations: 363.2 kB / 468.8 MB, free: 23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03076/0.8405, allocations: 4.65 MB / 473.5 MB, free: 20.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003805/0.8409, allocations: 7.875 kB / 473.5 MB, free: 20.75 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001894/0.8429, allocations: 151.4 kB / 473.7 MB, free: 20.63 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000362/0.8433, allocations: 159.4 kB / 473.8 MB, free: 20.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0164/0.8597, allocations: 3.872 MB / 477.7 MB, free: 18.55 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04432/0.9041, allocations: 15.45 MB / 493.1 MB, free: 2.805 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008986/0.9131, allocations: 5.935 MB / 499.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003964/0.9171, allocations: 1.257 MB / 0.4886 GB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01309/0.9303, allocations: 4.187 MB / 0.4927 GB, free: 6.469 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.887e-05/0.9304, allocations: 47.56 kB / 0.4927 GB, free: 6.414 MB / 362.7 MB Notification: Performance of pre-optimization done (n=118): time 7.595e-06/0.9305, allocations: 0 / 0.4927 GB, free: 6.414 MB / 362.7 MB Notification: Performance of matching and sorting (n=144): time 0.02079/0.9513, allocations: 5.304 MB / 0.4979 GB, free: 1.043 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.922e-05/0.9514, allocations: 64.72 kB / 0.498 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007233/0.9587, allocations: 2.153 MB / 0.5001 GB, free: 14.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004066/0.9592, allocations: 49.7 kB / 0.5001 GB, free: 14.72 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002271/0.9614, allocations: 1.731 MB / 0.5018 GB, free: 12.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001003/0.9625, allocations: 0.5046 MB / 0.5023 GB, free: 12.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000196/0.9627, allocations: 44 kB / 0.5023 GB, free: 12.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004216/0.9631, allocations: 398.3 kB / 0.5027 GB, free: 12.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002209/0.9653, allocations: 0.7579 MB / 0.5035 GB, free: 11.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00315/0.9685, allocations: 1.537 MB / 0.505 GB, free: 9.359 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01631/0.9848, allocations: 2.727 MB / 0.5076 GB, free: 6.609 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.244e-05/0.985, allocations: 8 kB / 0.5076 GB, free: 6.602 MB / 378.7 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.009499/0.9945, allocations: 2.778 MB / 0.5103 GB, free: 3.812 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.49e-05/0.9946, allocations: 16 kB / 0.5104 GB, free: 3.797 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.146e-05/0.9947, allocations: 24.59 kB / 0.5104 GB, free: 3.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001383/0.9961, allocations: 295.3 kB / 0.5107 GB, free: 3.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003012/0.9991, allocations: 495.2 kB / 0.5111 GB, free: 2.996 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00662/1.006, allocations: 3.159 MB / 0.5142 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004126/1.01, allocations: 105.5 kB / 0.5143 GB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005001/1.01, allocations: 100 kB / 0.5144 GB, free: 15.51 MB / 394.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004139/1.015, allocations: 1.086 MB / 0.5155 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001026/1.016, allocations: 225.3 kB / 0.5157 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005083/1.021, allocations: 1.762 MB / 0.5174 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.788e-05/1.021, allocations: 15.98 kB / 0.5174 GB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/1.021, allocations: 7.938 kB / 0.5174 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-05/1.021, allocations: 3.984 kB / 0.5174 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01438/1.035, allocations: 5.026 MB / 0.5224 GB, free: 7.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-05/1.035, allocations: 4 kB / 0.5224 GB, free: 7.246 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001799/1.037, allocations: 255.9 kB / 0.5226 GB, free: 6.996 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/1.038, allocations: 219.1 kB / 0.5228 GB, free: 6.781 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001592/1.038, allocations: 47.88 kB / 0.5229 GB, free: 6.734 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005984/1.044, allocations: 3.033 MB / 0.5258 GB, free: 3.566 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/1.045, allocations: 6.062 kB / 0.5258 GB, free: 3.562 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007672/1.052, allocations: 2.662 MB / 0.5284 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002414/1.055, allocations: 462.3 kB / 0.5289 GB, free: 388 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008034/1.056, allocations: 28 kB / 0.5289 GB, free: 360 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001928/1.057, allocations: 63.95 kB / 0.529 GB, free: 296 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003519/1.058, allocations: 105.1 kB / 0.5291 GB, free: 192 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001407/1.058, allocations: 39.98 kB / 0.5291 GB, free: 152 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004101/1.062, allocations: 1.447 MB / 0.5305 GB, free: 14.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.062, allocations: 0 / 0.5305 GB, free: 14.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004744/1.067, allocations: 0.6289 MB / 0.5311 GB, free: 14.05 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00778/1.075, allocations: 3.284 MB / 0.5343 GB, free: 10.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006068/1.081, allocations: 2.138 MB / 0.5364 GB, free: 8.547 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/1.081, allocations: 4.062 kB / 0.5364 GB, free: 8.543 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002546/1.083, allocations: 0.9452 MB / 0.5373 GB, free: 7.586 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005263/1.089, allocations: 0.5578 MB / 0.5379 GB, free: 7.035 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06928/1.158, allocations: 18.01 MB / 0.5555 GB, free: 3.637 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005262/1.163, allocations: 2.423 MB / 0.5578 GB, free: 1.18 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004156/1.168, allocations: 0.4996 MB / 0.5583 GB, free: 0.6758 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003537/1.171, allocations: 1.323 MB / 0.5596 GB, free: 15.35 MB / 442.7 MB Notification: Performance of SimCode: time 4.278e-06/1.171, allocations: 0 / 0.5596 GB, free: 15.35 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5867/1.758, allocations: 52.99 MB / 0.6114 GB, free: 114.1 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004944/1.759, allocations: 212 kB / 0.6116 GB, free: 113.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.179/8.937, allocations: 7.438 kB / 0.6116 GB, free: 113.8 MB / 442.7 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/linux/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)