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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0008248/0.0008249, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.309/1.309, allocations: 223.2 MB / 239 MB, free: 5.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.001148/0.001148, allocations: 179.6 kB / 290.3 MB, free: 2.176 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03334/0.03334, allocations: 8.782 MB / 350.1 MB, free: 4.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003632/0.0003632, allocations: 10.12 kB / 413.3 MB, free: 42.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08036/0.08074, allocations: 52.57 MB / 465.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01316/0.09394, allocations: 14.03 MB / 479.9 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009405/0.1034, allocations: 4.926 MB / 484.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002284/0.1057, allocations: 87.69 kB / 484.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002288/0.108, allocations: 0.9323 MB / 485.8 MB, free: 9.406 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.004213/0.1122, allocations: 1.257 MB / 487.1 MB, free: 8.145 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001967/0.1142, allocations: 0.6698 MB / 487.7 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005895/0.1201, allocations: 4.514 MB / 492.3 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004672/0.1248, allocations: 2.417 MB / 494.7 MB, free: 492 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00244/0.1273, allocations: 1.432 MB / 496.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003066/0.1304, allocations: 1.793 MB / 497.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008711/0.1313, allocations: 235.9 kB / 498.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001739/0.133, allocations: 423.8 kB / 498.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001251/0.1343, allocations: 0.8329 MB / 499.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00114/0.1354, allocations: 0.8239 MB / 0.4885 GB, free: 10.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005088/0.1405, allocations: 5.956 MB / 0.4943 GB, free: 4.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1405, allocations: 0 / 0.4943 GB, free: 4.957 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1405, allocations: 0 / 0.4943 GB, free: 4.957 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.966e-05/0.1406, allocations: 0 / 0.4943 GB, free: 4.957 MB / 334.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.008829/0.1495, allocations: 4.101 MB / 0.4983 GB, free: 0.7852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.1495, allocations: 8.031 kB / 0.4983 GB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009274/0.1505, allocations: 0.5606 MB / 0.4988 GB, free: 212 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004768/0.1552, allocations: 0.9397 MB / 0.4998 GB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004534/0.1598, allocations: 2.511 MB / 0.5022 GB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.16, allocations: 287.3 kB / 0.5025 GB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005327/0.1606, allocations: 367.9 kB / 0.5028 GB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007653/0.1682, allocations: 4.639 MB / 0.5074 GB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.757e-05/0.1683, allocations: 4 kB / 0.5074 GB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003081/0.1686, allocations: 152 kB / 0.5075 GB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001305/0.1688, allocations: 155.3 kB / 0.5077 GB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006374/0.1751, allocations: 3.882 MB / 0.5115 GB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02292/0.1981, allocations: 15.44 MB / 0.5265 GB, free: 3.289 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1809/0.379, allocations: 5.931 MB / 0.5323 GB, free: 58.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002144/0.3812, allocations: 1.257 MB / 0.5336 GB, free: 58.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005671/0.3869, allocations: 4.173 MB / 0.5376 GB, free: 57.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.3869, allocations: 42.88 kB / 0.5377 GB, free: 57.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 2.845e-06/0.3869, allocations: 0 / 0.5377 GB, free: 57.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.009777/0.3967, allocations: 5.302 MB / 0.5429 GB, free: 56.63 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.3968, allocations: 73.94 kB / 0.5429 GB, free: 56.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002972/0.3998, allocations: 2.155 MB / 0.545 GB, free: 56.31 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.305e-05/0.3999, allocations: 50.02 kB / 0.5451 GB, free: 56.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009171/0.4008, allocations: 1.732 MB / 0.5468 GB, free: 55.42 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002709/0.4011, allocations: 0.4948 MB / 0.5473 GB, free: 55.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.495e-05/0.4012, allocations: 45.7 kB / 0.5473 GB, free: 55.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.4013, allocations: 392.2 kB / 0.5477 GB, free: 54.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001103/0.4024, allocations: 0.7543 MB / 0.5484 GB, free: 54.49 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001377/0.4038, allocations: 1.539 MB / 0.5499 GB, free: 53.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00935/0.4131, allocations: 2.726 MB / 0.5526 GB, free: 52.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.383e-05/0.4132, allocations: 11.09 kB / 0.5526 GB, free: 52.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.004496/0.4177, allocations: 2.782 MB / 0.5553 GB, free: 51.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.4177, allocations: 16.38 kB / 0.5553 GB, free: 51.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.562e-05/0.4178, allocations: 28.31 kB / 0.5553 GB, free: 51.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006551/0.4184, allocations: 292.6 kB / 0.5556 GB, free: 51.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001499/0.4199, allocations: 496.7 kB / 0.5561 GB, free: 51.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003026/0.423, allocations: 3.166 MB / 0.5592 GB, free: 48.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/0.4248, allocations: 102.4 kB / 0.5593 GB, free: 48.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001668/0.425, allocations: 101.9 kB / 0.5594 GB, free: 48.62 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 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.001912/0.4269, allocations: 1.089 MB / 0.5604 GB, free: 48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004233/0.4273, allocations: 227.6 kB / 0.5607 GB, free: 47.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002714/0.43, allocations: 1.769 MB / 0.5624 GB, free: 46.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.4301, allocations: 18.03 kB / 0.5624 GB, free: 46.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.4301, allocations: 2.531 kB / 0.5624 GB, free: 46.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.532e-05/0.4301, allocations: 10.28 kB / 0.5624 GB, free: 46.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007386/0.4375, allocations: 5.015 MB / 0.5673 GB, free: 43.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.4375, allocations: 7.797 kB / 0.5673 GB, free: 43.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.4385, allocations: 254.1 kB / 0.5676 GB, free: 43.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005609/0.4391, allocations: 223.2 kB / 0.5678 GB, free: 43.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.92e-05/0.4392, allocations: 35.67 kB / 0.5678 GB, free: 43.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002726/0.4419, allocations: 3.036 MB / 0.5708 GB, free: 40.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.442, allocations: 5.094 kB / 0.5708 GB, free: 40.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003294/0.4453, allocations: 2.659 MB / 0.5734 GB, free: 38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/0.4463, allocations: 466.2 kB / 0.5738 GB, free: 37.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005785/0.4469, allocations: 34.31 kB / 0.5739 GB, free: 37.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001223/0.4481, allocations: 67.89 kB / 0.5739 GB, free: 37.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001719/0.4483, allocations: 89.19 kB / 0.574 GB, free: 37.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.053e-05/0.4484, allocations: 47.98 kB / 0.5741 GB, free: 37.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001994/0.4504, allocations: 1.447 MB / 0.5755 GB, free: 35.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4504, allocations: 0 / 0.5755 GB, free: 35.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002147/0.4526, allocations: 0.6367 MB / 0.5761 GB, free: 35.2 MB / 366.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 (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.003563/0.4561, allocations: 3.271 MB / 0.5793 GB, free: 31.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002953/0.4591, allocations: 2.14 MB / 0.5814 GB, free: 29.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.4591, allocations: 0 / 0.5814 GB, free: 29.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001238/0.4604, allocations: 0.9582 MB / 0.5823 GB, free: 28.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002811/0.4632, allocations: 0.5487 MB / 0.5828 GB, free: 28.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03393/0.4971, allocations: 18.02 MB / 0.6004 GB, free: 8.797 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002912/0.5001, allocations: 2.419 MB / 0.6028 GB, free: 6.348 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002052/0.5022, allocations: 0.5034 MB / 0.6033 GB, free: 5.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001808/0.504, allocations: 1.323 MB / 0.6046 GB, free: 4.516 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.504, allocations: 4 kB / 0.6046 GB, free: 4.512 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08364/0.5877, allocations: 52.99 MB / 0.6563 GB, free: 15.95 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001844/0.5879, allocations: 211.2 kB / 0.6565 GB, free: 15.71 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.891/3.479, allocations: 1.094 kB / 0.6565 GB, free: 15.71 MB / 430.1 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) Environment - environmentSimulation: