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.0007354/0.0007355, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.302/1.302, allocations: 223.3 MB / 239.4 MB, free: 5.539 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.0009632/0.0009632, allocations: 184.5 kB / 290.6 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03435/0.03435, allocations: 8.8 MB / 350.5 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003493/0.0003495, allocations: 11.75 kB / 413.9 MB, free: 42.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07054/0.0709, allocations: 52.56 MB / 466.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01419/0.08513, allocations: 15.01 MB / 481.5 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008598/0.09376, allocations: 5.185 MB / 486.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001879/0.09567, allocations: 87.69 kB / 486.8 MB, free: 8.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002602/0.09828, allocations: 1.069 MB / 487.8 MB, free: 7.605 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.003879/0.1022, allocations: 1.374 MB / 489.2 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00186/0.1041, allocations: 0.8924 MB / 490.1 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005004/0.1091, allocations: 4.836 MB / 494.9 MB, free: 496 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003374/0.1125, allocations: 2.855 MB / 497.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001812/0.1143, allocations: 1.451 MB / 499.2 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001942/0.1162, allocations: 1.866 MB / 0.4894 GB, free: 10.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003477/0.1166, allocations: 232 kB / 0.4896 GB, free: 10 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001046/0.1177, allocations: 471.6 kB / 0.49 GB, free: 9.539 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007336/0.1184, allocations: 0.8443 MB / 0.4909 GB, free: 8.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001803/0.1202, allocations: 1.968 MB / 0.4928 GB, free: 6.707 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00643/0.1266, allocations: 6.84 MB / 0.4995 GB, free: 15.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1267, allocations: 0 / 0.4995 GB, free: 15.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1267, allocations: 0 / 0.4995 GB, free: 15.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000124/0.1268, allocations: 0 / 0.4995 GB, free: 15.84 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.009616/0.1364, allocations: 4.07 MB / 0.5034 GB, free: 11.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.1365, allocations: 8.031 kB / 0.5034 GB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009994/0.1375, allocations: 0.5568 MB / 0.504 GB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004894/0.1424, allocations: 0.9523 MB / 0.5049 GB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004225/0.1466, allocations: 2.562 MB / 0.5074 GB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/0.1468, allocations: 275.8 kB / 0.5077 GB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005299/0.1474, allocations: 371.8 kB / 0.508 GB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008158/0.1555, allocations: 4.688 MB / 0.5126 GB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.037e-05/0.1556, allocations: 8 kB / 0.5126 GB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003338/0.156, allocations: 144 kB / 0.5128 GB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001532/0.1562, allocations: 159.3 kB / 0.5129 GB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007439/0.1636, allocations: 3.901 MB / 0.5167 GB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.18/0.3436, allocations: 15.61 MB / 0.532 GB, free: 57.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005191/0.3489, allocations: 6.137 MB / 0.5379 GB, free: 53.39 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002454/0.3513, allocations: 1.396 MB / 0.5393 GB, free: 53.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006966/0.3583, allocations: 4.286 MB / 0.5435 GB, free: 52.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.3584, allocations: 49.56 kB / 0.5435 GB, free: 52.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 4.158e-06/0.3584, allocations: 0 / 0.5435 GB, free: 52.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.013/0.3714, allocations: 6.201 MB / 0.5496 GB, free: 50.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.3714, allocations: 71.09 kB / 0.5497 GB, free: 50.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00311/0.3746, allocations: 2.094 MB / 0.5517 GB, free: 50.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.975e-05/0.3747, allocations: 50.55 kB / 0.5518 GB, free: 50.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008402/0.3755, allocations: 1.703 MB / 0.5534 GB, free: 49.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003204/0.3758, allocations: 0.5383 MB / 0.5539 GB, free: 49.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002249/0.3761, allocations: 177.2 kB / 0.5541 GB, free: 49.35 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.062e-05/0.3761, allocations: 303.1 kB / 0.5544 GB, free: 49.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/0.3773, allocations: 0.7814 MB / 0.5552 GB, free: 48.74 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.3786, allocations: 1.553 MB / 0.5567 GB, free: 47.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01189/0.3905, allocations: 4.83 MB / 0.5614 GB, free: 44.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.249e-05/0.3906, allocations: 3.938 kB / 0.5614 GB, free: 44.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004201/0.3948, allocations: 2.892 MB / 0.5642 GB, free: 43.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/0.3949, allocations: 15.28 kB / 0.5642 GB, free: 43.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.573e-05/0.3949, allocations: 26.66 kB / 0.5643 GB, free: 43.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008625/0.3958, allocations: 369.2 kB / 0.5646 GB, free: 43.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/0.3973, allocations: 492.5 kB / 0.5651 GB, free: 42.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003934/0.4012, allocations: 3.836 MB / 0.5688 GB, free: 39.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001627/0.4028, allocations: 86.11 kB / 0.5689 GB, free: 39.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001405/0.403, allocations: 100.3 kB / 0.569 GB, free: 39.88 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[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.001704/0.4047, allocations: 1.101 MB / 0.5701 GB, free: 39.13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004145/0.4051, allocations: 227.1 kB / 0.5703 GB, free: 39.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003145/0.4083, allocations: 2 MB / 0.5723 GB, free: 37.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/0.4083, allocations: 17.56 kB / 0.5723 GB, free: 37.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.218e-06/0.4083, allocations: 11.09 kB / 0.5723 GB, free: 37.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.4083, allocations: 7.969 kB / 0.5723 GB, free: 37.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007396/0.4157, allocations: 5.499 MB / 0.5777 GB, free: 32.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.4158, allocations: 320 / 0.5777 GB, free: 32.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.4168, allocations: 263.7 kB / 0.5779 GB, free: 32.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000731/0.4175, allocations: 290.2 kB / 0.5782 GB, free: 31.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001032/0.4176, allocations: 39.98 kB / 0.5782 GB, free: 31.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003554/0.4212, allocations: 3.6 MB / 0.5817 GB, free: 28.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.4212, allocations: 10.95 kB / 0.5818 GB, free: 28.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003728/0.425, allocations: 2.938 MB / 0.5846 GB, free: 25.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007853/0.4258, allocations: 474.3 kB / 0.5851 GB, free: 24.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003695/0.4261, allocations: 43.98 kB / 0.5851 GB, free: 24.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.4272, allocations: 67.72 kB / 0.5852 GB, free: 24.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000187/0.4274, allocations: 113.1 kB / 0.5853 GB, free: 24.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.338e-05/0.4275, allocations: 44 kB / 0.5853 GB, free: 24.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001747/0.4293, allocations: 1.411 MB / 0.5867 GB, free: 22.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4293, allocations: 0 / 0.5867 GB, free: 22.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00195/0.4312, allocations: 0.6461 MB / 0.5873 GB, free: 22.23 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.003948/0.4352, allocations: 3.564 MB / 0.5908 GB, free: 18.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003082/0.4383, allocations: 2.294 MB / 0.5931 GB, free: 16.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.4383, allocations: 0 / 0.5931 GB, free: 16.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001466/0.4398, allocations: 1.083 MB / 0.5941 GB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003368/0.4432, allocations: 0.5511 MB / 0.5947 GB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04065/0.4838, allocations: 27.02 MB / 0.621 GB, free: 1.355 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002581/0.4864, allocations: 2.443 MB / 0.6234 GB, free: 14.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001897/0.4884, allocations: 499.6 kB / 0.6239 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001737/0.4901, allocations: 1.323 MB / 0.6252 GB, free: 13.07 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4901, allocations: 4 kB / 0.6252 GB, free: 13.06 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0831/0.5732, allocations: 55.16 MB / 0.6791 GB, free: 6.332 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/0.5734, allocations: 238.1 kB / 0.6793 GB, free: 6.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.756/3.329, allocations: 0 / 0.6793 GB, free: 6.07 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)