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.001254/0.001254, 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.262/1.262, allocations: 222.9 MB / 238.9 MB, free: 4.723 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.001235/0.001235, allocations: 192.5 kB / 289.1 MB, free: 2.461 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03353/0.03353, allocations: 8.8 MB / 348.1 MB, free: 4.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 78.12 kB / 410.5 MB, free: 42.45 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06634/0.06781, allocations: 51.55 MB / 462.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01509/0.08294, allocations: 15.74 MB / 477.8 MB, free: 15.06 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007899/0.09086, allocations: 5.243 MB / 483.1 MB, free: 9.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001858/0.09275, allocations: 95.69 kB / 483.1 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002808/0.09557, allocations: 1.069 MB / 484.2 MB, free: 8.633 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.003493/0.0991, allocations: 1.379 MB / 485.6 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001896/0.101, allocations: 0.9148 MB / 486.5 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00447/0.1055, allocations: 4.822 MB / 491.3 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002982/0.1085, allocations: 2.886 MB / 494.2 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001598/0.1101, allocations: 1.669 MB / 495.9 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001832/0.1119, allocations: 2.144 MB / 498 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004468/0.1124, allocations: 336 kB / 498.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001025/0.1134, allocations: 0.5466 MB / 498.9 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007432/0.1142, allocations: 0.9926 MB / 499.9 MB, free: 8.844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001741/0.1159, allocations: 2.131 MB / 0.4903 GB, free: 6.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004976/0.1209, allocations: 7.072 MB / 0.4972 GB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1209, allocations: 0 / 0.4972 GB, free: 15.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1209, allocations: 0 / 0.4972 GB, free: 15.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.919e-05/0.121, allocations: 0 / 0.4972 GB, free: 15.61 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.009524/0.1305, allocations: 4.818 MB / 0.5019 GB, free: 10.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.1306, allocations: 8.031 kB / 0.5019 GB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007436/0.1314, allocations: 0.5529 MB / 0.5024 GB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00475/0.1361, allocations: 0.9445 MB / 0.5033 GB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004139/0.1403, allocations: 2.562 MB / 0.5058 GB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001671/0.1404, allocations: 275.8 kB / 0.5061 GB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004622/0.1409, allocations: 375.8 kB / 0.5065 GB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006965/0.1479, allocations: 4.68 MB / 0.511 GB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.201e-05/0.148, allocations: 0 / 0.511 GB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003121/0.1483, allocations: 152 kB / 0.5112 GB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000124/0.1484, allocations: 155.3 kB / 0.5113 GB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005974/0.1544, allocations: 3.909 MB / 0.5151 GB, free: 13 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1609/0.3153, allocations: 15.53 MB / 0.5303 GB, free: 58.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004308/0.3196, allocations: 6.138 MB / 0.5363 GB, free: 53.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002182/0.3218, allocations: 1.401 MB / 0.5377 GB, free: 53.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005824/0.3277, allocations: 4.264 MB / 0.5418 GB, free: 52.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.3277, allocations: 48.38 kB / 0.5419 GB, free: 52.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 2.475e-06/0.3277, allocations: 0.7812 kB / 0.5419 GB, free: 52.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.01179/0.3395, allocations: 6.19 MB / 0.5479 GB, free: 51.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.84e-05/0.3395, allocations: 67.94 kB / 0.548 GB, free: 51.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002465/0.342, allocations: 2.091 MB / 0.55 GB, free: 50.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.06e-05/0.3421, allocations: 51.11 kB / 0.5501 GB, free: 50.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007053/0.3428, allocations: 1.706 MB / 0.5518 GB, free: 49.51 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002974/0.3431, allocations: 0.5296 MB / 0.5523 GB, free: 49.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005705/0.3437, allocations: 409.2 kB / 0.5527 GB, free: 48.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.348e-05/0.3437, allocations: 301.1 kB / 0.5529 GB, free: 48.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001087/0.3448, allocations: 0.7839 MB / 0.5537 GB, free: 48.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001208/0.346, allocations: 1.543 MB / 0.5552 GB, free: 47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01148/0.3575, allocations: 4.829 MB / 0.5599 GB, free: 44.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.357e-05/0.3576, allocations: 8.719 kB / 0.5599 GB, free: 44.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004095/0.3617, allocations: 2.883 MB / 0.5628 GB, free: 42.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.3617, allocations: 15.69 kB / 0.5628 GB, free: 42.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.818e-05/0.3617, allocations: 30.38 kB / 0.5628 GB, free: 42.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008627/0.3626, allocations: 365.9 kB / 0.5632 GB, free: 42.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/0.3641, allocations: 487.4 kB / 0.5636 GB, free: 42.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003723/0.3678, allocations: 3.831 MB / 0.5674 GB, free: 39.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.3693, allocations: 95.28 kB / 0.5674 GB, free: 39.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/0.3694, allocations: 98.58 kB / 0.5675 GB, free: 39.38 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[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.001414/0.3708, allocations: 1.095 MB / 0.5686 GB, free: 38.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002639/0.3711, allocations: 227.7 kB / 0.5688 GB, free: 38.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002834/0.3739, allocations: 2.001 MB / 0.5708 GB, free: 37.35 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.836e-06/0.3739, allocations: 19.86 kB / 0.5708 GB, free: 37.35 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.374, allocations: 3.75 kB / 0.5708 GB, free: 37.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.374, allocations: 5.406 kB / 0.5708 GB, free: 37.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00644/0.3804, allocations: 5.496 MB / 0.5762 GB, free: 32.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.3804, allocations: 7.984 kB / 0.5762 GB, free: 32.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.3815, allocations: 268.3 kB / 0.5764 GB, free: 32.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007392/0.3822, allocations: 295.5 kB / 0.5767 GB, free: 31.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.293e-05/0.3823, allocations: 35.98 kB / 0.5768 GB, free: 31.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003376/0.3857, allocations: 3.594 MB / 0.5803 GB, free: 28.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3857, allocations: 4 kB / 0.5803 GB, free: 28.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003494/0.3892, allocations: 2.945 MB / 0.5831 GB, free: 25.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006421/0.3899, allocations: 470.3 kB / 0.5836 GB, free: 24.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002766/0.3902, allocations: 36 kB / 0.5836 GB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009742/0.3911, allocations: 59.95 kB / 0.5837 GB, free: 24.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/0.3913, allocations: 106.9 kB / 0.5838 GB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.011e-05/0.3914, allocations: 51.92 kB / 0.5838 GB, free: 24.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00152/0.3929, allocations: 1.411 MB / 0.5852 GB, free: 22.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3929, allocations: 0 / 0.5852 GB, free: 22.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001771/0.3947, allocations: 0.6416 MB / 0.5858 GB, free: 22.27 MB / 366.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.003714/0.3984, allocations: 3.571 MB / 0.5893 GB, free: 18.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002743/0.4012, allocations: 2.301 MB / 0.5916 GB, free: 16.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4012, allocations: 0 / 0.5916 GB, free: 16.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00136/0.4026, allocations: 1.084 MB / 0.5926 GB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002134/0.4047, allocations: 0.5579 MB / 0.5932 GB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03729/0.442, allocations: 26.89 MB / 0.6194 GB, free: 1.539 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00197/0.444, allocations: 2.435 MB / 0.6218 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001679/0.4457, allocations: 0.4918 MB / 0.6223 GB, free: 14.58 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001547/0.4473, allocations: 1.323 MB / 0.6236 GB, free: 13.25 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4473, allocations: 0 / 0.6236 GB, free: 13.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07887/0.5262, allocations: 55.86 MB / 0.6781 GB, free: 5.785 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001814/0.5264, allocations: 236.3 kB / 0.6784 GB, free: 5.523 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.741/3.267, allocations: 0 / 0.6784 GB, free: 5.523 MB / 446.1 MB (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)