Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.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_ShortCircuit3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3",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.001506/0.001506, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 222.9 MB / 239.3 MB, free: 4.602 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.001449/0.001449, allocations: 188.5 kB / 289.6 MB, free: 2.336 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03598/0.03598, allocations: 8.806 MB / 348.5 MB, free: 4.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00162/0.00162, allocations: 79.09 kB / 411.2 MB, free: 42.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06955/0.07119, allocations: 51.57 MB / 462.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3): time 0.01546/0.08668, allocations: 15.92 MB / 478.7 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008818/0.09553, allocations: 5.301 MB / 484 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001822/0.09738, allocations: 95.69 kB / 484.1 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00324/0.1006, allocations: 1.215 MB / 485.3 MB, free: 7.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.004547/0.1052, allocations: 1.53 MB / 486.8 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002402/0.1077, allocations: 0.9903 MB / 487.8 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005512/0.1132, allocations: 4.567 MB / 492.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005395/0.1186, allocations: 3.493 MB / 495.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004037/0.1227, allocations: 2.044 MB / 497.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003401/0.1261, allocations: 2.315 MB / 0.4885 GB, free: 8.586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001323/0.1275, allocations: 0.5625 MB / 0.4891 GB, free: 8.023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002183/0.1297, allocations: 0.781 MB / 0.4898 GB, free: 7.242 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001854/0.1316, allocations: 1.235 MB / 0.491 GB, free: 6.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003793/0.1354, allocations: 2.381 MB / 0.4933 GB, free: 3.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007612/0.143, allocations: 7.26 MB / 0.5004 GB, free: 12.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.143, allocations: 8 kB / 0.5004 GB, free: 12.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.143, allocations: 0 / 0.5004 GB, free: 12.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002089/0.1433, allocations: 0 / 0.5004 GB, free: 12.32 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.01227/0.1555, allocations: 4.822 MB / 0.5052 GB, free: 7.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.1556, allocations: 15.97 kB / 0.5052 GB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008301/0.1564, allocations: 0.5529 MB / 0.5057 GB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004915/0.1614, allocations: 0.9407 MB / 0.5066 GB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00475/0.1661, allocations: 2.667 MB / 0.5092 GB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001817/0.1663, allocations: 271.8 kB / 0.5095 GB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006346/0.167, allocations: 371.9 kB / 0.5098 GB, free: 2.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007711/0.1747, allocations: 4.688 MB / 0.5144 GB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.985e-05/0.1748, allocations: 7.906 kB / 0.5144 GB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003184/0.1751, allocations: 148 kB / 0.5146 GB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001304/0.1753, allocations: 159.3 kB / 0.5147 GB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006165/0.1814, allocations: 3.894 MB / 0.5185 GB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1707/0.3522, allocations: 15.52 MB / 0.5337 GB, free: 56.24 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004788/0.357, allocations: 6.052 MB / 0.5396 GB, free: 51.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002197/0.3592, allocations: 1.376 MB / 0.5409 GB, free: 51.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00654/0.3658, allocations: 4.208 MB / 0.545 GB, free: 50.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.3658, allocations: 48.2 kB / 0.5451 GB, free: 50.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=133): time 2.955e-06/0.3658, allocations: 0 / 0.5451 GB, free: 50.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=137): time 0.009045/0.3749, allocations: 5.154 MB / 0.5501 GB, free: 49.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.375, allocations: 66.81 kB / 0.5502 GB, free: 49.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002828/0.3778, allocations: 1.991 MB / 0.5521 GB, free: 48.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.409e-05/0.3779, allocations: 47.05 kB / 0.5522 GB, free: 48.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008474/0.3788, allocations: 1.661 MB / 0.5538 GB, free: 47.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002903/0.3791, allocations: 488.5 kB / 0.5543 GB, free: 47.28 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005302/0.3796, allocations: 358.4 kB / 0.5546 GB, free: 47.1 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.657e-05/0.3796, allocations: 306.6 kB / 0.5549 GB, free: 46.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/0.3807, allocations: 0.6588 MB / 0.5555 GB, free: 46.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001088/0.3818, allocations: 1.378 MB / 0.5569 GB, free: 45.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002084/0.3839, allocations: 2.188 MB / 0.559 GB, free: 43.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.3839, allocations: 7.906 kB / 0.559 GB, free: 43.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.003345/0.3872, allocations: 2.488 MB / 0.5615 GB, free: 42.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.3873, allocations: 15.78 kB / 0.5615 GB, free: 42.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.391e-05/0.3873, allocations: 24 kB / 0.5615 GB, free: 42.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000338/0.3876, allocations: 145.4 kB / 0.5616 GB, free: 42.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001454/0.3891, allocations: 468.8 kB / 0.5621 GB, free: 42.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001493/0.3906, allocations: 2.116 MB / 0.5642 GB, free: 40.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/0.392, allocations: 93.97 kB / 0.5642 GB, free: 40.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.3922, allocations: 89.34 kB / 0.5643 GB, free: 40.2 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * 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 (242): * Single equations (assignments): 240 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001378/0.3935, allocations: 1.065 MB / 0.5654 GB, free: 39.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002624/0.3938, allocations: 217.8 kB / 0.5656 GB, free: 39.37 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002608/0.3964, allocations: 2.008 MB / 0.5675 GB, free: 38.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.3964, allocations: 11.56 kB / 0.5675 GB, free: 38.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.3965, allocations: 7.781 kB / 0.5676 GB, free: 38.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.3965, allocations: 7.969 kB / 0.5676 GB, free: 38.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005733/0.4022, allocations: 4.925 MB / 0.5724 GB, free: 34.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.4022, allocations: 3.5 kB / 0.5724 GB, free: 34.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007831/0.403, allocations: 198.2 kB / 0.5726 GB, free: 34.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006905/0.4037, allocations: 328.5 kB / 0.5729 GB, free: 34.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.036e-05/0.4038, allocations: 35.02 kB / 0.5729 GB, free: 34.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004631/0.4084, allocations: 7.091 MB / 0.5798 GB, free: 27.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.4085, allocations: 4.094 kB / 0.5798 GB, free: 27.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003231/0.4117, allocations: 2.885 MB / 0.5827 GB, free: 24.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006752/0.4124, allocations: 435.5 kB / 0.5831 GB, free: 24.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002504/0.4126, allocations: 35.28 kB / 0.5831 GB, free: 24.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008723/0.4135, allocations: 51.97 kB / 0.5832 GB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.4137, allocations: 109 kB / 0.5833 GB, free: 24.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.516e-05/0.4138, allocations: 43.86 kB / 0.5833 GB, free: 24.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001472/0.4153, allocations: 1.343 MB / 0.5846 GB, free: 22.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4153, allocations: 0 / 0.5846 GB, free: 22.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001799/0.4171, allocations: 0.6017 MB / 0.5852 GB, free: 22.29 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smee.phiMechanical,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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 (106): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,8,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003374/0.4205, allocations: 3.491 MB / 0.5886 GB, free: 18.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003625/0.4241, allocations: 2.254 MB / 0.5908 GB, free: 16.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.4241, allocations: 4.438 kB / 0.5908 GB, free: 16.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001408/0.4255, allocations: 1.223 MB / 0.592 GB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002214/0.4278, allocations: 0.5667 MB / 0.5926 GB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02651/0.4543, allocations: 23.66 MB / 0.6157 GB, free: 4.738 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002067/0.4564, allocations: 2.405 MB / 0.618 GB, free: 2.301 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001675/0.4581, allocations: 473 kB / 0.6185 GB, free: 1.836 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001527/0.4596, allocations: 1.288 MB / 0.6197 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4596, allocations: 3.938 kB / 0.6197 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09458/0.5542, allocations: 53.63 MB / 0.6721 GB, free: 11.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.69, allocations: 11.69 kB / 0.6721 GB, free: 11.3 MB / 446.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe 2>&1)