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.001442/0.001448, allocations: 110.9 kB / 16.37 MB, free: 6.469 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.388/1.388, allocations: 222.9 MB / 240 MB, free: 4.57 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.001418/0.001418, allocations: 188.4 kB / 290.3 MB, free: 2.293 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03409/0.03409, allocations: 8.804 MB / 349.3 MB, free: 4.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 81.19 kB / 412.5 MB, free: 41.7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07941/0.0809, allocations: 51.57 MB / 464.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3): time 0.01689/0.09784, allocations: 15.92 MB / 480 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01132/0.1092, allocations: 5.309 MB / 485.3 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003746/0.113, allocations: 91.69 kB / 485.4 MB, free: 8.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004318/0.1174, allocations: 1.215 MB / 486.6 MB, free: 6.973 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.005244/0.1227, allocations: 1.522 MB / 488.2 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002476/0.1252, allocations: 0.9922 MB / 489.1 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007673/0.1329, allocations: 4.598 MB / 493.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005307/0.1382, allocations: 3.481 MB / 497.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003528/0.1418, allocations: 2.048 MB / 499.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00457/0.1464, allocations: 2.335 MB / 0.4899 GB, free: 7.887 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001361/0.1478, allocations: 0.5586 MB / 0.4904 GB, free: 7.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002249/0.15, allocations: 0.7732 MB / 0.4912 GB, free: 6.555 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001287/0.1513, allocations: 1.235 MB / 0.4924 GB, free: 5.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003272/0.1546, allocations: 2.381 MB / 0.4947 GB, free: 2.926 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00738/0.162, allocations: 7.314 MB / 0.5018 GB, free: 11.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.162, allocations: 0 / 0.5018 GB, free: 11.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.1621, allocations: 0 / 0.5018 GB, free: 11.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001459/0.1622, allocations: 7.938 kB / 0.5018 GB, free: 11.58 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.01195/0.1742, allocations: 4.822 MB / 0.5065 GB, free: 6.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.1742, allocations: 8.031 kB / 0.5065 GB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004982/0.1792, allocations: 0.9445 MB / 0.5075 GB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006261/0.1855, allocations: 2.741 MB / 0.5101 GB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002113/0.1858, allocations: 275.8 kB / 0.5104 GB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007291/0.1865, allocations: 372 kB / 0.5108 GB, free: 2.301 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007859/0.1944, allocations: 4.68 MB / 0.5153 GB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.317e-05/0.1945, allocations: 7.906 kB / 0.5153 GB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003135/0.1948, allocations: 156 kB / 0.5155 GB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001393/0.1949, allocations: 151.3 kB / 0.5156 GB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006642/0.2016, allocations: 3.897 MB / 0.5194 GB, free: 9.359 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1991/0.4007, allocations: 15.32 MB / 0.5344 GB, free: 56.56 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004778/0.4055, allocations: 6.063 MB / 0.5403 GB, free: 52.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002316/0.4078, allocations: 1.376 MB / 0.5417 GB, free: 52.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00693/0.4148, allocations: 4.188 MB / 0.5458 GB, free: 51.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.4149, allocations: 46.94 kB / 0.5458 GB, free: 51.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=133): time 3.015e-06/0.4149, allocations: 2.25 kB / 0.5458 GB, free: 51.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=137): time 0.008965/0.4238, allocations: 5.148 MB / 0.5508 GB, free: 49.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.4239, allocations: 70.88 kB / 0.5509 GB, free: 49.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002701/0.4266, allocations: 1.991 MB / 0.5528 GB, free: 48.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.4267, allocations: 47.27 kB / 0.5529 GB, free: 48.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001009/0.4278, allocations: 1.659 MB / 0.5545 GB, free: 47.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003037/0.4281, allocations: 481.3 kB / 0.555 GB, free: 46.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004985/0.4286, allocations: 366.4 kB / 0.5553 GB, free: 46.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.039e-05/0.4286, allocations: 302.5 kB / 0.5556 GB, free: 46.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/0.4297, allocations: 0.6639 MB / 0.5563 GB, free: 46.24 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001187/0.4309, allocations: 1.383 MB / 0.5576 GB, free: 45.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002142/0.433, allocations: 2.187 MB / 0.5597 GB, free: 43.51 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.121e-05/0.433, allocations: 3.969 kB / 0.5597 GB, free: 43.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.003326/0.4364, allocations: 2.488 MB / 0.5622 GB, free: 42.19 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.4364, allocations: 15.78 kB / 0.5622 GB, free: 42.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.214e-05/0.4364, allocations: 23.47 kB / 0.5622 GB, free: 42.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000315/0.4368, allocations: 148.6 kB / 0.5624 GB, free: 42.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/0.4382, allocations: 459.8 kB / 0.5628 GB, free: 42.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.4396, allocations: 2.12 MB / 0.5649 GB, free: 40.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/0.4412, allocations: 82.7 kB / 0.5649 GB, free: 40.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001455/0.4414, allocations: 96.7 kB / 0.565 GB, free: 40.02 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.001465/0.4429, allocations: 1.069 MB / 0.5661 GB, free: 39.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003172/0.4432, allocations: 215.2 kB / 0.5663 GB, free: 39.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002695/0.4459, allocations: 2.013 MB / 0.5682 GB, free: 37.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.4459, allocations: 15.53 kB / 0.5683 GB, free: 37.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.4459, allocations: 4.312 kB / 0.5683 GB, free: 37.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.446, allocations: 11.59 kB / 0.5683 GB, free: 37.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0065/0.4525, allocations: 4.917 MB / 0.5731 GB, free: 34.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.4525, allocations: 3.906 kB / 0.5731 GB, free: 34.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007917/0.4533, allocations: 206.6 kB / 0.5733 GB, free: 34.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006875/0.454, allocations: 318.5 kB / 0.5736 GB, free: 34.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.398e-05/0.4541, allocations: 38.77 kB / 0.5736 GB, free: 34.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004778/0.4589, allocations: 7.085 MB / 0.5805 GB, free: 28.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.4589, allocations: 8.062 kB / 0.5805 GB, free: 28.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003321/0.4622, allocations: 2.887 MB / 0.5834 GB, free: 25.1 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008648/0.4631, allocations: 434.4 kB / 0.5838 GB, free: 24.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002715/0.4634, allocations: 35.98 kB / 0.5838 GB, free: 24.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008635/0.4642, allocations: 52.84 kB / 0.5839 GB, free: 24.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/0.4644, allocations: 105 kB / 0.584 GB, free: 24.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.016e-05/0.4645, allocations: 43.98 kB / 0.584 GB, free: 24.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001524/0.466, allocations: 1.339 MB / 0.5853 GB, free: 23.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4661, allocations: 0 / 0.5853 GB, free: 23.06 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001777/0.4678, allocations: 0.6007 MB / 0.5859 GB, free: 22.46 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.0002505/0.4681, allocations: 170 kB / 0.5861 GB, free: 22.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002245/0.4704, allocations: 1.89 MB / 0.5879 GB, free: 20.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.4704, allocations: 4.062 kB / 0.5879 GB, free: 20.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001406/0.4718, allocations: 1.221 MB / 0.5891 GB, free: 19.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002131/0.4739, allocations: 0.5616 MB / 0.5897 GB, free: 18.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007936/0.4819, allocations: 5.966 MB / 0.5955 GB, free: 12.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001485/0.4834, allocations: 2.402 MB / 0.5978 GB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001416/0.4848, allocations: 470.4 kB / 0.5983 GB, free: 9.707 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003328/0.4852, allocations: 139.4 kB / 0.5984 GB, free: 9.57 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4852, allocations: 0.875 kB / 0.5984 GB, free: 9.57 MB / 366.1 MB Notification: Performance of Templates: time 0.0458/0.531, allocations: 28.91 MB / 0.6266 GB, free: 12.98 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 cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe 2>&1)