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: translateModel(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1") translateModel(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007799/0.007799, allocations: 102 kB / 15.73 MB, free: 6.035 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.437/1.437, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001276/0.001276, allocations: 184.5 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03389/0.03389, allocations: 8.797 MB / 348.6 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 79.88 kB / 464 MB, free: 13.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1113, allocations: 51.56 MB / 0.5035 GB, free: 9.414 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01893/0.1303, allocations: 15.92 MB / 0.519 GB, free: 9.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01243/0.1428, allocations: 5.301 MB / 0.5242 GB, free: 4.098 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004001/0.1469, allocations: 95.69 kB / 0.5243 GB, free: 4.004 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004633/0.1515, allocations: 1.243 MB / 0.5255 GB, free: 2.75 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.006959/0.1585, allocations: 1.577 MB / 0.527 GB, free: 1.164 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003488/0.162, allocations: 0.9858 MB / 0.528 GB, free: 184 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2605/0.4226, allocations: 4.59 MB / 0.5325 GB, free: 6.219 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004946/0.4276, allocations: 3.487 MB / 0.5359 GB, free: 5.629 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005033/0.4326, allocations: 2.06 MB / 0.5379 GB, free: 5.363 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005092/0.4378, allocations: 2.33 MB / 0.5402 GB, free: 4.945 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001176/0.439, allocations: 0.5596 MB / 0.5407 GB, free: 4.945 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002371/0.4413, allocations: 0.7687 MB / 0.5415 GB, free: 4.945 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001246/0.4426, allocations: 1.238 MB / 0.5427 GB, free: 4.797 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00347/0.4461, allocations: 2.379 MB / 0.545 GB, free: 4.211 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008703/0.4548, allocations: 7.313 MB / 0.5521 GB, free: 3.281 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.4548, allocations: 0 / 0.5521 GB, free: 3.281 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4548, allocations: 5.062 kB / 0.5521 GB, free: 3.277 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000148/0.455, allocations: 0 / 0.5521 GB, free: 3.277 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.01129/0.4663, allocations: 4.831 MB / 0.5569 GB, free: 316 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.4663, allocations: 9.125 kB / 0.5569 GB, free: 316 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005028/0.4714, allocations: 0.9404 MB / 0.5578 GB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006299/0.4777, allocations: 2.743 MB / 0.5605 GB, free: 14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001874/0.4779, allocations: 277 kB / 0.5607 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007403/0.4787, allocations: 371.1 kB / 0.5611 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009279/0.4879, allocations: 4.66 MB / 0.5656 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.47e-05/0.4881, allocations: 14.95 kB / 0.5656 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004046/0.4885, allocations: 157.8 kB / 0.5658 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001454/0.4886, allocations: 151 kB / 0.5659 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006997/0.4956, allocations: 3.896 MB / 0.5697 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02627/0.5219, allocations: 15.14 MB / 0.5845 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005589/0.5275, allocations: 5.945 MB / 0.5903 GB, free: 2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002081/0.5297, allocations: 1.269 MB / 0.5916 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00738/0.537, allocations: 4.122 MB / 0.5956 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/0.5371, allocations: 49.34 kB / 0.5957 GB, free: 12.4 MB / 414.1 MB Notification: Performance of pre-optimization done (n=118): time 2.746e-06/0.5371, allocations: 0 / 0.5957 GB, free: 12.4 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01146/0.5486, allocations: 5.259 MB / 0.6008 GB, free: 7.098 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.977e-05/0.5487, allocations: 64.72 kB / 0.6009 GB, free: 7.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004542/0.5532, allocations: 2.153 MB / 0.603 GB, free: 4.832 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001351/0.5534, allocations: 49.7 kB / 0.603 GB, free: 4.777 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001526/0.5549, allocations: 1.727 MB / 0.6047 GB, free: 3.039 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005212/0.5554, allocations: 0.4948 MB / 0.6052 GB, free: 2.547 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007552/0.5562, allocations: 415.7 kB / 0.6056 GB, free: 2.133 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.5563, allocations: 309.1 kB / 0.6059 GB, free: 1.828 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001226/0.5576, allocations: 0.7657 MB / 0.6066 GB, free: 1.059 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001862/0.5594, allocations: 1.536 MB / 0.6081 GB, free: 15.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/0.5732, allocations: 4.738 MB / 0.6127 GB, free: 10.18 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.444e-05/0.5732, allocations: 8 kB / 0.6127 GB, free: 10.17 MB / 430.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.006638/0.5799, allocations: 2.79 MB / 0.6155 GB, free: 7.523 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.357e-05/0.58, allocations: 16.62 kB / 0.6155 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.287e-05/0.5801, allocations: 24 kB / 0.6155 GB, free: 7.484 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/0.5811, allocations: 277.8 kB / 0.6158 GB, free: 7.211 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001916/0.583, allocations: 499 kB / 0.6162 GB, free: 6.758 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004527/0.5876, allocations: 3.386 MB / 0.6196 GB, free: 3.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002326/0.5899, allocations: 91.88 kB / 0.6196 GB, free: 3.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002761/0.5902, allocations: 108 kB / 0.6197 GB, free: 3.074 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.00239/0.5926, allocations: 1.087 MB / 0.6208 GB, free: 2.012 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000589/0.5932, allocations: 229.2 kB / 0.621 GB, free: 1.785 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00336/0.5966, allocations: 1.765 MB / 0.6227 GB, free: 12 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-05/0.5966, allocations: 12 kB / 0.6228 GB, free: 0 / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.5966, allocations: 4.125 kB / 0.6228 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.5967, allocations: 15.91 kB / 0.6228 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009478/0.6061, allocations: 4.982 MB / 0.6276 GB, free: 10.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.718e-06/0.6062, allocations: 4 kB / 0.6276 GB, free: 10.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.6073, allocations: 254.5 kB / 0.6279 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006419/0.608, allocations: 220.3 kB / 0.6281 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.6081, allocations: 39.98 kB / 0.6281 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003707/0.6118, allocations: 3.245 MB / 0.6313 GB, free: 7.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.6119, allocations: 4 kB / 0.6313 GB, free: 7.086 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004509/0.6164, allocations: 2.658 MB / 0.6339 GB, free: 4.387 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00159/0.618, allocations: 454.3 kB / 0.6343 GB, free: 3.922 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008941/0.6189, allocations: 32 kB / 0.6344 GB, free: 3.891 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001544/0.6204, allocations: 55.95 kB / 0.6344 GB, free: 3.836 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002063/0.6207, allocations: 104.7 kB / 0.6345 GB, free: 3.738 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.835e-05/0.6208, allocations: 43.98 kB / 0.6346 GB, free: 3.695 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003536/0.6243, allocations: 1.447 MB / 0.636 GB, free: 2.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6243, allocations: 0 / 0.636 GB, free: 2.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003735/0.6281, allocations: 0.625 MB / 0.6366 GB, free: 1.605 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.0005098/0.6286, allocations: 168.9 kB / 0.6368 GB, free: 1.449 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004379/0.633, allocations: 2.158 MB / 0.6389 GB, free: 15.29 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.812e-06/0.633, allocations: 0 / 0.6389 GB, free: 15.29 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001635/0.6346, allocations: 0.9492 MB / 0.6398 GB, free: 14.32 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003385/0.638, allocations: 0.5853 MB / 0.6404 GB, free: 13.74 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01248/0.6505, allocations: 5.951 MB / 0.6462 GB, free: 7.734 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002806/0.6534, allocations: 2.419 MB / 0.6485 GB, free: 5.281 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001869/0.6553, allocations: 0.5035 MB / 0.649 GB, free: 4.773 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005175/0.6558, allocations: 151.4 kB / 0.6492 GB, free: 4.629 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.6558, allocations: 0 / 0.6492 GB, free: 4.629 MB / 462.1 MB Notification: Performance of Templates: time 0.057/0.7128, allocations: 29.05 MB / 0.6775 GB, free: 7.941 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.makefile (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 & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1)