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: translateModel(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3") translateModel(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.378/1.378, allocations: 222.9 MB / 239.9 MB, free: 4.617 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.001543/0.001543, allocations: 192.4 kB / 290.2 MB, free: 2.34 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05088/0.05088, allocations: 8.778 MB / 349.2 MB, free: 4.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 80.84 kB / 411.8 MB, free: 42.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09011/0.0916, allocations: 51.56 MB / 463.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3): time 0.01798/0.1096, allocations: 15.92 MB / 479.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01164/0.1214, allocations: 5.305 MB / 484.5 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00373/0.1251, allocations: 95.69 kB / 484.6 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004458/0.1296, allocations: 1.211 MB / 485.8 MB, free: 7.773 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.006256/0.1359, allocations: 1.532 MB / 487.4 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003048/0.139, allocations: 0.9899 MB / 488.4 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006541/0.1455, allocations: 4.571 MB / 492.9 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004428/0.15, allocations: 3.485 MB / 496.4 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003233/0.1533, allocations: 2.048 MB / 498.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003732/0.157, allocations: 2.319 MB / 0.4891 GB, free: 8.719 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00115/0.1582, allocations: 0.5625 MB / 0.4896 GB, free: 8.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002108/0.1603, allocations: 0.781 MB / 0.4904 GB, free: 7.375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001012/0.1613, allocations: 1.239 MB / 0.4916 GB, free: 6.133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002777/0.1641, allocations: 2.377 MB / 0.4939 GB, free: 3.746 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006979/0.1711, allocations: 7.267 MB / 0.501 GB, free: 12.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1712, allocations: 0 / 0.501 GB, free: 12.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1712, allocations: 0 / 0.501 GB, free: 12.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001676/0.1713, allocations: 0 / 0.501 GB, free: 12.46 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.01322/0.1846, allocations: 4.818 MB / 0.5057 GB, free: 7.566 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.1846, allocations: 16.03 kB / 0.5057 GB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005072/0.1897, allocations: 0.9445 MB / 0.5066 GB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006093/0.1958, allocations: 2.667 MB / 0.5092 GB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002364/0.1961, allocations: 275.8 kB / 0.5095 GB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009801/0.1971, allocations: 368 kB / 0.5099 GB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008542/0.2056, allocations: 4.684 MB / 0.5144 GB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.247e-05/0.2057, allocations: 7.844 kB / 0.5144 GB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003267/0.2061, allocations: 152 kB / 0.5146 GB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001398/0.2062, allocations: 151.3 kB / 0.5147 GB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006717/0.2129, allocations: 3.901 MB / 0.5185 GB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2423/0.4553, allocations: 15.52 MB / 0.5337 GB, free: 57.1 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005067/0.4604, allocations: 6.052 MB / 0.5396 GB, free: 52.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002362/0.4628, allocations: 1.377 MB / 0.5409 GB, free: 52.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00713/0.4699, allocations: 4.213 MB / 0.5451 GB, free: 51.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/0.47, allocations: 48.19 kB / 0.5451 GB, free: 51.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=133): time 3.447e-06/0.47, allocations: 1.375 kB / 0.5451 GB, free: 51.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=137): time 0.009576/0.4796, allocations: 5.151 MB / 0.5501 GB, free: 50.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.4797, allocations: 66.5 kB / 0.5502 GB, free: 50.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003009/0.4827, allocations: 1.99 MB / 0.5521 GB, free: 49.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001943/0.4829, allocations: 51.17 kB / 0.5522 GB, free: 49.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009017/0.4838, allocations: 1.656 MB / 0.5538 GB, free: 48.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004034/0.4842, allocations: 486 kB / 0.5543 GB, free: 47.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005251/0.4848, allocations: 355 kB / 0.5546 GB, free: 47.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.348e-05/0.4848, allocations: 301.8 kB / 0.5549 GB, free: 47.47 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/0.486, allocations: 0.668 MB / 0.5555 GB, free: 47.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/0.4871, allocations: 1.383 MB / 0.5569 GB, free: 46.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002158/0.4893, allocations: 2.185 MB / 0.559 GB, free: 44.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.197e-05/0.4893, allocations: 7.875 kB / 0.559 GB, free: 44.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.003628/0.493, allocations: 2.484 MB / 0.5615 GB, free: 43.17 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.309e-05/0.493, allocations: 19.97 kB / 0.5615 GB, free: 43.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-05/0.4931, allocations: 23.41 kB / 0.5615 GB, free: 43.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003372/0.4934, allocations: 148 kB / 0.5616 GB, free: 43.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001487/0.4949, allocations: 464.5 kB / 0.5621 GB, free: 42.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.4965, allocations: 2.122 MB / 0.5642 GB, free: 41.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001807/0.4983, allocations: 89 kB / 0.5642 GB, free: 41.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/0.4985, allocations: 89.81 kB / 0.5643 GB, free: 40.99 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.001917/0.5004, allocations: 1.071 MB / 0.5654 GB, free: 40.26 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005028/0.5009, allocations: 222.6 kB / 0.5656 GB, free: 40.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002968/0.5039, allocations: 2.008 MB / 0.5676 GB, free: 38.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.131e-05/0.5039, allocations: 12.03 kB / 0.5676 GB, free: 38.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.5039, allocations: 4.906 kB / 0.5676 GB, free: 38.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.5039, allocations: 7.969 kB / 0.5676 GB, free: 38.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006999/0.5109, allocations: 4.92 MB / 0.5724 GB, free: 35.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.056e-06/0.511, allocations: 3.812 kB / 0.5724 GB, free: 35.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008052/0.5118, allocations: 206.1 kB / 0.5726 GB, free: 35.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007311/0.5125, allocations: 328.8 kB / 0.5729 GB, free: 35.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.768e-05/0.5126, allocations: 35.83 kB / 0.5729 GB, free: 35.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005127/0.5178, allocations: 7.095 MB / 0.5799 GB, free: 28.76 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.5178, allocations: 8.031 kB / 0.5799 GB, free: 28.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003782/0.5216, allocations: 2.896 MB / 0.5827 GB, free: 25.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009894/0.5226, allocations: 434.4 kB / 0.5831 GB, free: 25.33 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002538/0.5229, allocations: 28 kB / 0.5831 GB, free: 25.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009161/0.5238, allocations: 55.97 kB / 0.5832 GB, free: 25.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002202/0.524, allocations: 109 kB / 0.5833 GB, free: 25.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.403e-05/0.5241, allocations: 35.98 kB / 0.5833 GB, free: 25.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001627/0.5257, allocations: 1.343 MB / 0.5846 GB, free: 23.74 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5257, allocations: 0 / 0.5846 GB, free: 23.74 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002121/0.5279, allocations: 0.5992 MB / 0.5852 GB, free: 23.14 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.0002945/0.5282, allocations: 157.8 kB / 0.5854 GB, free: 22.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003909/0.5321, allocations: 2.259 MB / 0.5876 GB, free: 20.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.5321, allocations: 4.062 kB / 0.5876 GB, free: 20.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/0.5335, allocations: 1.211 MB / 0.5888 GB, free: 19.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002515/0.5361, allocations: 0.5748 MB / 0.5893 GB, free: 18.9 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009239/0.5453, allocations: 6.024 MB / 0.5952 GB, free: 12.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001572/0.5469, allocations: 2.346 MB / 0.5975 GB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006589/0.5476, allocations: 159.4 kB / 0.5977 GB, free: 10.3 MB / 366.1 MB Notification: Performance of SimCode: time 2.455e-06/0.5476, allocations: 0 / 0.5977 GB, free: 10.3 MB / 366.1 MB Notification: Performance of Templates: time 0.0997/0.6473, allocations: 84.72 MB / 0.6804 GB, free: 5.641 MB / 446.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.makefile (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 & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe 2>&1)