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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.491/1.491, allocations: 230.6 MB / 252.7 MB, free: 8.297 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 211.5 kB / 309.2 MB, free: 3.156 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04317/0.04317, allocations: 8.919 MB / 374.6 MB, free: 1.91 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002606/0.002606, allocations: 87.81 kB / 0.4893 GB, free: 7.297 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2681, allocations: 55.6 MB / 0.5436 GB, free: 26.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.013/0.2811, allocations: 16.7 MB / 0.5599 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0085/0.2896, allocations: 5.601 MB / 0.5653 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002829/0.2924, allocations: 119.6 kB / 0.5655 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003252/0.2956, allocations: 1.271 MB / 0.5667 GB, free: 10.02 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/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.004759/0.3004, allocations: 1.57 MB / 0.5682 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002626/0.303, allocations: 1.056 MB / 0.5693 GB, free: 8.305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006461/0.3095, allocations: 4.64 MB / 0.5738 GB, free: 5.883 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003176/0.3127, allocations: 1.992 MB / 0.5757 GB, free: 4.793 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003619/0.3163, allocations: 2.125 MB / 0.5778 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004431/0.3207, allocations: 2.48 MB / 0.5802 GB, free: 2.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001646/0.3224, allocations: 0.559 MB / 0.5808 GB, free: 2.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00302/0.3254, allocations: 0.795 MB / 0.5816 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001641/0.327, allocations: 1.241 MB / 0.5828 GB, free: 1.621 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004508/0.3315, allocations: 2.391 MB / 0.5851 GB, free: 24 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01079/0.3423, allocations: 7.372 MB / 0.5923 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3423, allocations: 5.219 kB / 0.5923 GB, free: 10.47 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3423, allocations: 3.938 kB / 0.5923 GB, free: 10.47 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002068/0.3425, allocations: 0 / 0.5923 GB, free: 10.47 MB / 398.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.0143/0.3568, allocations: 4.894 MB / 0.5971 GB, free: 6.105 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3569, allocations: 8.031 kB / 0.5971 GB, free: 6.098 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001099/0.358, allocations: 0.5451 MB / 0.5976 GB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005375/0.3633, allocations: 0.9468 MB / 0.5986 GB, free: 4.594 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007069/0.3704, allocations: 2.691 MB / 0.6012 GB, free: 1.859 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002628/0.3707, allocations: 275.7 kB / 0.6015 GB, free: 1.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009555/0.3716, allocations: 371.9 kB / 0.6018 GB, free: 1.227 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01013/0.3818, allocations: 4.678 MB / 0.6064 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-05/0.3818, allocations: 7.953 kB / 0.6064 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003768/0.3822, allocations: 152 kB / 0.6065 GB, free: 12.35 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001604/0.3824, allocations: 159.3 kB / 0.6067 GB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008248/0.3906, allocations: 3.909 MB / 0.6105 GB, free: 8.277 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02864/0.4193, allocations: 14.95 MB / 0.6251 GB, free: 8.883 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004943/0.4242, allocations: 2.432 MB / 0.6275 GB, free: 6.555 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002353/0.4266, allocations: 1.191 MB / 0.6286 GB, free: 5.367 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007844/0.4344, allocations: 3.526 MB / 0.6321 GB, free: 1.801 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.383e-05/0.4345, allocations: 47.5 kB / 0.6321 GB, free: 1.746 MB / 430.1 MB Notification: Performance of pre-optimization done (n=118): time 2.845e-06/0.4345, allocations: 0 / 0.6321 GB, free: 1.746 MB / 430.1 MB Notification: Performance of matching and sorting (n=144): time 0.01245/0.4469, allocations: 5.176 MB / 0.6372 GB, free: 12.54 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.447, allocations: 68.66 kB / 0.6372 GB, free: 12.46 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003547/0.4505, allocations: 2.174 MB / 0.6394 GB, free: 10.26 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001538/0.4507, allocations: 49.7 kB / 0.6394 GB, free: 10.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001446/0.4521, allocations: 1.79 MB / 0.6412 GB, free: 8.395 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000507/0.4526, allocations: 0.523 MB / 0.6417 GB, free: 7.867 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006544/0.4533, allocations: 423.9 kB / 0.6421 GB, free: 7.445 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.4534, allocations: 301.1 kB / 0.6424 GB, free: 7.148 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/0.4547, allocations: 0.7657 MB / 0.6431 GB, free: 6.379 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002016/0.4568, allocations: 1.541 MB / 0.6446 GB, free: 4.477 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01599/0.4728, allocations: 4.791 MB / 0.6493 GB, free: 15.33 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.358e-05/0.4728, allocations: 8 kB / 0.6493 GB, free: 15.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.005602/0.4784, allocations: 2.787 MB / 0.652 GB, free: 12.52 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.021e-05/0.4784, allocations: 19.98 kB / 0.652 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.775e-05/0.4785, allocations: 32.03 kB / 0.6521 GB, free: 12.47 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009186/0.4794, allocations: 279.9 kB / 0.6523 GB, free: 12.19 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001924/0.4813, allocations: 495.2 kB / 0.6528 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004497/0.4858, allocations: 3.284 MB / 0.656 GB, free: 8.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002233/0.4881, allocations: 99.92 kB / 0.6561 GB, free: 8.223 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002766/0.4883, allocations: 104 kB / 0.6562 GB, free: 8.121 MB / 462.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[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 (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 {(2,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00233/0.4907, allocations: 1.086 MB / 0.6573 GB, free: 7.023 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006218/0.4913, allocations: 238.5 kB / 0.6575 GB, free: 6.789 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003705/0.495, allocations: 1.758 MB / 0.6592 GB, free: 5.016 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.961e-05/0.495, allocations: 16 kB / 0.6592 GB, free: 5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.495, allocations: 7.938 kB / 0.6592 GB, free: 4.992 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-05/0.495, allocations: 7.969 kB / 0.6593 GB, free: 4.984 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009737/0.5048, allocations: 4.959 MB / 0.6641 GB, free: 15.92 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/0.5048, allocations: 4 kB / 0.6641 GB, free: 15.92 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/0.506, allocations: 259.9 kB / 0.6644 GB, free: 15.66 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000666/0.5067, allocations: 215.4 kB / 0.6646 GB, free: 15.45 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.5068, allocations: 32 kB / 0.6646 GB, free: 15.42 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004236/0.511, allocations: 3.151 MB / 0.6677 GB, free: 12.16 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.511, allocations: 8 kB / 0.6677 GB, free: 12.15 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004793/0.5158, allocations: 2.665 MB / 0.6703 GB, free: 9.434 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0014/0.5172, allocations: 398.4 kB / 0.6707 GB, free: 9.043 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004188/0.5176, allocations: 39.92 kB / 0.6707 GB, free: 9.004 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.5187, allocations: 51.97 kB / 0.6707 GB, free: 8.953 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00024/0.519, allocations: 109 kB / 0.6708 GB, free: 8.844 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.955e-05/0.5191, allocations: 47.98 kB / 0.6709 GB, free: 8.797 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002528/0.5216, allocations: 1.455 MB / 0.6723 GB, free: 7.324 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5216, allocations: 0 / 0.6723 GB, free: 7.324 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002573/0.5242, allocations: 0.6328 MB / 0.6729 GB, free: 6.691 MB / 478.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 (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 {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005166/0.5293, allocations: 3.279 MB / 0.6761 GB, free: 3.355 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003838/0.5332, allocations: 1.983 MB / 0.6781 GB, free: 1.359 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.5332, allocations: 3.938 kB / 0.6781 GB, free: 1.355 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001656/0.5348, allocations: 0.8912 MB / 0.6789 GB, free: 464 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003259/0.5381, allocations: 0.5762 MB / 0.6795 GB, free: 15.88 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2464/0.7845, allocations: 21.82 MB / 0.7008 GB, free: 120.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00192/0.7864, allocations: 2.434 MB / 0.7032 GB, free: 119.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001666/0.788, allocations: 0.4981 MB / 0.7037 GB, free: 119.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00154/0.7896, allocations: 1.341 MB / 0.705 GB, free: 118.3 MB / 494.1 MB Notification: Performance of SimCode: time 1.122e-06/0.7896, allocations: 7.844 kB / 0.705 GB, free: 118.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1032/0.8928, allocations: 57.74 MB / 0.7614 GB, free: 81.68 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.63/17.53, allocations: 3.438 kB / 0.7614 GB, free: 81.68 MB / 494.1 MB " [Timeout remaining time 642] (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/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1_fmu --startTime=0 --stopTime=0.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.7275231028907] Failed to read output from testmodel.py, exit status != 0: 17.676605849992484 17.688370186 17.343305017 Calling exit ...