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.001056/0.001056, allocations: 112.6 kB / 16.37 MB, free: 6 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.34/1.34, allocations: 222.9 MB / 240 MB, free: 4.559 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.001316/0.001316, allocations: 180.5 kB / 290.3 MB, free: 2.285 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03486/0.03486, allocations: 8.8 MB / 349.3 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 80.36 kB / 412.5 MB, free: 41.67 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07979/0.08127, allocations: 51.57 MB / 464.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3): time 0.01593/0.09723, allocations: 15.91 MB / 480 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009506/0.1068, allocations: 5.317 MB / 485.3 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002157/0.109, allocations: 91.69 kB / 485.4 MB, free: 8.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003295/0.1123, allocations: 1.219 MB / 486.6 MB, free: 6.938 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.00458/0.1169, allocations: 1.53 MB / 488.2 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00258/0.1195, allocations: 0.982 MB / 489.1 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005756/0.1253, allocations: 4.605 MB / 493.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003812/0.1291, allocations: 3.485 MB / 497.2 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002711/0.1318, allocations: 2.044 MB / 499.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002989/0.1348, allocations: 2.335 MB / 0.4899 GB, free: 7.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007577/0.1356, allocations: 0.5586 MB / 0.4904 GB, free: 7.285 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001399/0.137, allocations: 0.7691 MB / 0.4912 GB, free: 6.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000961/0.138, allocations: 1.239 MB / 0.4924 GB, free: 5.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00243/0.1404, allocations: 2.373 MB / 0.4947 GB, free: 2.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006593/0.147, allocations: 7.322 MB / 0.5018 GB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1471, allocations: 0 / 0.5018 GB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1471, allocations: 0 / 0.5018 GB, free: 11.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001845/0.1473, allocations: 8 kB / 0.5018 GB, free: 11.54 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.01129/0.1586, allocations: 4.822 MB / 0.5065 GB, free: 6.648 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.1586, allocations: 8.031 kB / 0.5066 GB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004993/0.1636, allocations: 0.9328 MB / 0.5075 GB, free: 5.703 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005592/0.1692, allocations: 2.749 MB / 0.5101 GB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001985/0.1694, allocations: 271.8 kB / 0.5104 GB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005651/0.17, allocations: 372 kB / 0.5108 GB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007469/0.1775, allocations: 4.676 MB / 0.5153 GB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.007e-05/0.1776, allocations: 11.84 kB / 0.5153 GB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003196/0.1779, allocations: 156 kB / 0.5155 GB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001416/0.1781, allocations: 155.3 kB / 0.5156 GB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006291/0.1844, allocations: 3.898 MB / 0.5194 GB, free: 9.324 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2035/0.3879, allocations: 15.32 MB / 0.5344 GB, free: 56.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005568/0.3935, allocations: 6.054 MB / 0.5403 GB, free: 51.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002401/0.3959, allocations: 1.381 MB / 0.5417 GB, free: 51.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007033/0.403, allocations: 4.183 MB / 0.5458 GB, free: 50.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.403, allocations: 54.11 kB / 0.5458 GB, free: 50.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=133): time 2.946e-06/0.403, allocations: 2.188 kB / 0.5458 GB, free: 50.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=137): time 0.008508/0.4116, allocations: 5.145 MB / 0.5508 GB, free: 49.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.4116, allocations: 66.5 kB / 0.5509 GB, free: 49.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002577/0.4142, allocations: 1.989 MB / 0.5528 GB, free: 48.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.815e-05/0.4143, allocations: 46.45 kB / 0.5529 GB, free: 48.44 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008475/0.4151, allocations: 1.671 MB / 0.5545 GB, free: 47.17 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002536/0.4154, allocations: 481.9 kB / 0.555 GB, free: 46.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004454/0.4159, allocations: 358.5 kB / 0.5553 GB, free: 46.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.659e-05/0.4159, allocations: 302.6 kB / 0.5556 GB, free: 46.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/0.4169, allocations: 0.6632 MB / 0.5562 GB, free: 46.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/0.4181, allocations: 1.38 MB / 0.5576 GB, free: 44.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002091/0.4202, allocations: 2.189 MB / 0.5597 GB, free: 43.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/0.4202, allocations: 9.312 kB / 0.5597 GB, free: 43.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.00317/0.4234, allocations: 2.485 MB / 0.5622 GB, free: 42.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.4235, allocations: 16.41 kB / 0.5622 GB, free: 42.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.29e-05/0.4235, allocations: 28.28 kB / 0.5622 GB, free: 42.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003053/0.4238, allocations: 140.1 kB / 0.5623 GB, free: 41.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001461/0.4253, allocations: 466.1 kB / 0.5628 GB, free: 41.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001458/0.4267, allocations: 2.121 MB / 0.5649 GB, free: 39.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00145/0.4282, allocations: 83.31 kB / 0.5649 GB, free: 39.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/0.4283, allocations: 91.06 kB / 0.565 GB, free: 39.85 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.00147/0.4298, allocations: 1.079 MB / 0.5661 GB, free: 39.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003182/0.4301, allocations: 213.4 kB / 0.5663 GB, free: 39.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002832/0.433, allocations: 2.008 MB / 0.5682 GB, free: 37.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.433, allocations: 16.12 kB / 0.5683 GB, free: 37.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.433, allocations: 3.781 kB / 0.5683 GB, free: 37.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.433, allocations: 7.969 kB / 0.5683 GB, free: 37.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00631/0.4394, allocations: 4.922 MB / 0.5731 GB, free: 34.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.4394, allocations: 3.688 kB / 0.5731 GB, free: 34.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008199/0.4402, allocations: 203.6 kB / 0.5733 GB, free: 34.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007083/0.4409, allocations: 320.2 kB / 0.5736 GB, free: 34.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.593e-05/0.441, allocations: 42.39 kB / 0.5736 GB, free: 34.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004933/0.446, allocations: 7.089 MB / 0.5805 GB, free: 27.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.446, allocations: 4 kB / 0.5805 GB, free: 27.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003638/0.4496, allocations: 2.888 MB / 0.5834 GB, free: 24.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008666/0.4505, allocations: 438.4 kB / 0.5838 GB, free: 24.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002591/0.4508, allocations: 28 kB / 0.5838 GB, free: 24.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008867/0.4517, allocations: 55.97 kB / 0.5839 GB, free: 24.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001902/0.4519, allocations: 101.1 kB / 0.584 GB, free: 24.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.162e-05/0.4519, allocations: 43.98 kB / 0.584 GB, free: 24.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001579/0.4535, allocations: 1.339 MB / 0.5853 GB, free: 22.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4535, allocations: 4 kB / 0.5853 GB, free: 22.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00186/0.4554, allocations: 0.5995 MB / 0.5859 GB, free: 22.26 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.0002439/0.4557, allocations: 161.2 kB / 0.5861 GB, free: 22.1 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002266/0.4579, allocations: 1.896 MB / 0.5879 GB, free: 20.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.4579, allocations: 4 kB / 0.5879 GB, free: 20.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001391/0.4593, allocations: 1.213 MB / 0.5891 GB, free: 18.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.4613, allocations: 0.5679 MB / 0.5897 GB, free: 18.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007729/0.469, allocations: 5.963 MB / 0.5955 GB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001452/0.4705, allocations: 2.401 MB / 0.5978 GB, free: 9.953 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001314/0.4718, allocations: 470.8 kB / 0.5983 GB, free: 9.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003187/0.4721, allocations: 143.4 kB / 0.5984 GB, free: 9.363 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4722, allocations: 0.7656 kB / 0.5984 GB, free: 9.363 MB / 366.1 MB Notification: Performance of Templates: time 0.04767/0.5198, allocations: 28.91 MB / 0.6266 GB, free: 12.77 MB / 398.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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe 2>&1)