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.004959/0.004959, allocations: 100.1 kB / 15.73 MB, free: 6.004 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.421/1.421, allocations: 222.9 MB / 239.4 MB, free: 4.516 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.001804/0.001805, allocations: 192.5 kB / 289.7 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03736/0.03736, allocations: 8.795 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002477/0.002477, allocations: 79.88 kB / 463.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1029, allocations: 51.56 MB / 0.503 GB, free: 9.906 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.0195/0.1224, allocations: 15.93 MB / 0.5186 GB, free: 9.898 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01122/0.1337, allocations: 5.297 MB / 0.5237 GB, free: 4.586 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002903/0.1366, allocations: 99.62 kB / 0.5238 GB, free: 4.488 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004303/0.141, allocations: 1.219 MB / 0.525 GB, free: 3.258 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.00595/0.147, allocations: 1.522 MB / 0.5265 GB, free: 1.727 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003744/0.1507, allocations: 0.9832 MB / 0.5275 GB, free: 0.7461 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.223/0.3738, allocations: 4.594 MB / 0.5319 GB, free: 5.652 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004998/0.3788, allocations: 3.485 MB / 0.5353 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004131/0.383, allocations: 2.044 MB / 0.5373 GB, free: 4.809 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004602/0.3876, allocations: 2.326 MB / 0.5396 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001938/0.3896, allocations: 0.5598 MB / 0.5402 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003298/0.3929, allocations: 0.7683 MB / 0.5409 GB, free: 4.395 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002124/0.3951, allocations: 1.241 MB / 0.5421 GB, free: 4.242 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00593/0.401, allocations: 2.378 MB / 0.5444 GB, free: 3.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01064/0.4117, allocations: 7.342 MB / 0.5516 GB, free: 2.832 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.4118, allocations: 0 / 0.5516 GB, free: 2.832 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4118, allocations: 0 / 0.5516 GB, free: 2.832 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000258/0.412, allocations: 3.062 kB / 0.5516 GB, free: 2.832 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.01578/0.4278, allocations: 4.941 MB / 0.5564 GB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.4279, allocations: 9.875 kB / 0.5565 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001757/0.4297, allocations: 0.5499 MB / 0.557 GB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005929/0.4356, allocations: 0.9612 MB / 0.5579 GB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007023/0.4427, allocations: 2.758 MB / 0.5606 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002549/0.443, allocations: 271.1 kB / 0.5609 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001197/0.4442, allocations: 370.4 kB / 0.5612 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01177/0.4559, allocations: 4.685 MB / 0.5658 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000119/0.4561, allocations: 14.08 kB / 0.5658 GB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008513/0.457, allocations: 148.5 kB / 0.566 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001518/0.4571, allocations: 155.6 kB / 0.5661 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009272/0.4664, allocations: 3.897 MB / 0.5699 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03036/0.4968, allocations: 15.35 MB / 0.5849 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007004/0.5039, allocations: 6.134 MB / 0.5909 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003087/0.507, allocations: 1.444 MB / 0.5923 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0085/0.5155, allocations: 4.23 MB / 0.5964 GB, free: 11.19 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.641e-05/0.5156, allocations: 47.56 kB / 0.5965 GB, free: 11.14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=125): time 3.587e-06/0.5156, allocations: 0 / 0.5965 GB, free: 11.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.01457/0.5302, allocations: 6.173 MB / 0.6025 GB, free: 4.922 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.695e-05/0.5303, allocations: 72.72 kB / 0.6026 GB, free: 4.836 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003674/0.534, allocations: 2.073 MB / 0.6046 GB, free: 2.727 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002485/0.5343, allocations: 49.7 kB / 0.6047 GB, free: 2.672 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001387/0.5357, allocations: 1.745 MB / 0.6064 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000601/0.5363, allocations: 0.5634 MB / 0.6069 GB, free: 372 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000709/0.537, allocations: 405.4 kB / 0.6073 GB, free: 15.96 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.5371, allocations: 301.1 kB / 0.6076 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/0.5385, allocations: 0.7813 MB / 0.6083 GB, free: 14.88 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001961/0.5405, allocations: 1.547 MB / 0.6099 GB, free: 13 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01436/0.5549, allocations: 4.792 MB / 0.6145 GB, free: 7.953 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-05/0.5549, allocations: 8 kB / 0.6145 GB, free: 7.945 MB / 430.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.006007/0.561, allocations: 2.882 MB / 0.6174 GB, free: 5.207 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.262e-05/0.561, allocations: 16 kB / 0.6174 GB, free: 5.191 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.456e-05/0.5611, allocations: 24 kB / 0.6174 GB, free: 5.168 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.5621, allocations: 361.4 kB / 0.6177 GB, free: 4.812 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001984/0.5641, allocations: 486.5 kB / 0.6182 GB, free: 4.371 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006231/0.5704, allocations: 4.097 MB / 0.6222 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002261/0.5727, allocations: 95.81 kB / 0.6223 GB, free: 64 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003809/0.5731, allocations: 104 kB / 0.6224 GB, free: 15.96 MB / 446.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.002644/0.5758, allocations: 1.098 MB / 0.6235 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007266/0.5765, allocations: 234.5 kB / 0.6237 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00403/0.5805, allocations: 1.98 MB / 0.6256 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-05/0.5806, allocations: 16 kB / 0.6256 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/0.5806, allocations: 11.78 kB / 0.6257 GB, free: 12.66 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/0.5806, allocations: 11.97 kB / 0.6257 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01044/0.5911, allocations: 5.432 MB / 0.631 GB, free: 7.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.5911, allocations: 4 kB / 0.631 GB, free: 7.156 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.5923, allocations: 261.5 kB / 0.6312 GB, free: 6.914 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008566/0.5932, allocations: 288.7 kB / 0.6315 GB, free: 6.629 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001215/0.5933, allocations: 36 kB / 0.6315 GB, free: 6.594 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005065/0.5984, allocations: 3.836 MB / 0.6353 GB, free: 2.629 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.5984, allocations: 4 kB / 0.6353 GB, free: 2.625 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005189/0.6036, allocations: 2.939 MB / 0.6382 GB, free: 15.66 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001312/0.605, allocations: 475.5 kB / 0.6386 GB, free: 15.17 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004713/0.6054, allocations: 39.98 kB / 0.6386 GB, free: 15.13 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.6066, allocations: 55.97 kB / 0.6387 GB, free: 15.08 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002735/0.6069, allocations: 112.5 kB / 0.6388 GB, free: 14.97 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.607, allocations: 40.12 kB / 0.6388 GB, free: 14.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00244/0.6094, allocations: 1.403 MB / 0.6402 GB, free: 13.51 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6095, allocations: 0 / 0.6402 GB, free: 13.51 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00273/0.6122, allocations: 0.6328 MB / 0.6408 GB, free: 12.88 MB / 462.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.005592/0.6178, allocations: 3.567 MB / 0.6443 GB, free: 9.281 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004363/0.6222, allocations: 2.29 MB / 0.6465 GB, free: 7.051 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/0.6222, allocations: 0 / 0.6465 GB, free: 7.051 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002047/0.6243, allocations: 1.084 MB / 0.6476 GB, free: 5.984 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003322/0.6277, allocations: 0.581 MB / 0.6482 GB, free: 5.406 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04216/0.6698, allocations: 22.14 MB / 0.6698 GB, free: 14.42 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003034/0.6729, allocations: 2.435 MB / 0.6722 GB, free: 11.96 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001733/0.6747, allocations: 0.4919 MB / 0.6727 GB, free: 11.46 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001955/0.6766, allocations: 1.327 MB / 0.674 GB, free: 10.13 MB / 494.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6767, allocations: 4 kB / 0.674 GB, free: 10.13 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1212/0.7979, allocations: 56.41 MB / 0.729 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.89/14.69, allocations: 14.64 kB / 0.7291 GB, free: 2.137 MB / 0.5294 GB (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)