Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.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_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL") translateModel(HanserModelica.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.408/1.408, allocations: 222.9 MB / 240 MB, free: 4.52 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.001315/0.001315, allocations: 196.1 kB / 290.3 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03495/0.03495, allocations: 8.802 MB / 349.3 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 78.42 kB / 412.5 MB, free: 41.7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08746/0.08898, allocations: 51.56 MB / 464.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01824/0.1073, allocations: 16.71 MB / 480.8 MB, free: 12.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01107/0.1184, allocations: 5.457 MB / 486.2 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002422/0.1209, allocations: 99.62 kB / 486.3 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003239/0.1241, allocations: 1.273 MB / 487.6 MB, free: 5.898 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_DOL.mo:12:3-13:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.004689/0.1288, allocations: 1.607 MB / 489.2 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00248/0.1313, allocations: 1.049 MB / 490.3 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005898/0.1372, allocations: 5.014 MB / 495.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004585/0.1418, allocations: 4.315 MB / 499.6 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003094/0.1449, allocations: 2.262 MB / 0.4901 GB, free: 7.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003661/0.1486, allocations: 2.646 MB / 0.4927 GB, free: 4.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009341/0.1495, allocations: 0.625 MB / 0.4933 GB, free: 4.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001587/0.1511, allocations: 0.8395 MB / 0.4941 GB, free: 3.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001115/0.1523, allocations: 1.441 MB / 0.4955 GB, free: 1.965 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00289/0.1552, allocations: 2.641 MB / 0.4981 GB, free: 15.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007215/0.1624, allocations: 8.12 MB / 0.506 GB, free: 7.168 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1624, allocations: 3.938 kB / 0.506 GB, free: 7.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1624, allocations: 0 / 0.506 GB, free: 7.164 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001267/0.1626, allocations: 0 / 0.506 GB, free: 7.164 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: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.01247/0.175, allocations: 5.393 MB / 0.5113 GB, free: 1.691 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.1751, allocations: 12.03 kB / 0.5113 GB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005169/0.1803, allocations: 0.9908 MB / 0.5123 GB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006436/0.1867, allocations: 3.03 MB / 0.5152 GB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002137/0.187, allocations: 304.5 kB / 0.5155 GB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005791/0.1875, allocations: 404 kB / 0.5159 GB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008484/0.196, allocations: 5.229 MB / 0.521 GB, free: 7.586 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.495e-05/0.1961, allocations: 0 / 0.521 GB, free: 7.586 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003366/0.1965, allocations: 164 kB / 0.5212 GB, free: 7.426 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001459/0.1966, allocations: 172 kB / 0.5213 GB, free: 7.254 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0073/0.204, allocations: 4.47 MB / 0.5257 GB, free: 2.766 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2234/0.4273, allocations: 16.58 MB / 0.5419 GB, free: 58.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005692/0.4331, allocations: 8.433 MB / 0.5501 GB, free: 51.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002632/0.4357, allocations: 1.716 MB / 0.5518 GB, free: 50.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007939/0.4437, allocations: 4.972 MB / 0.5567 GB, free: 46.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/0.4437, allocations: 46.88 kB / 0.5567 GB, free: 46.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=158): time 2.846e-06/0.4437, allocations: 0 / 0.5567 GB, free: 46.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.009654/0.4534, allocations: 6.163 MB / 0.5627 GB, free: 43.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.661e-05/0.4534, allocations: 68.44 kB / 0.5628 GB, free: 42.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002548/0.456, allocations: 2.29 MB / 0.565 GB, free: 41.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.922e-05/0.4561, allocations: 57.58 kB / 0.5651 GB, free: 41.69 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007518/0.4569, allocations: 1.838 MB / 0.5669 GB, free: 40.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002742/0.4571, allocations: 0.5482 MB / 0.5674 GB, free: 39.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004956/0.4576, allocations: 403.4 kB / 0.5678 GB, free: 39.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.072e-05/0.4577, allocations: 302.9 kB / 0.5681 GB, free: 39.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/0.4589, allocations: 0.8431 MB / 0.5689 GB, free: 38.63 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/0.4603, allocations: 1.573 MB / 0.5705 GB, free: 37.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00263/0.463, allocations: 2.564 MB / 0.573 GB, free: 35.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.104e-05/0.463, allocations: 7.625 kB / 0.573 GB, free: 35.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.00401/0.467, allocations: 2.894 MB / 0.5758 GB, free: 32.97 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.799e-05/0.4671, allocations: 12.53 kB / 0.5758 GB, free: 32.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.328e-05/0.4671, allocations: 28 kB / 0.5758 GB, free: 32.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003104/0.4674, allocations: 125.7 kB / 0.5759 GB, free: 32.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001743/0.4692, allocations: 0.5382 MB / 0.5765 GB, free: 32.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001348/0.4705, allocations: 2.012 MB / 0.5784 GB, free: 30.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001792/0.4723, allocations: 111.9 kB / 0.5785 GB, free: 30 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001288/0.4725, allocations: 103.9 kB / 0.5786 GB, free: 29.9 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * 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 (270): * Single equations (assignments): 268 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001812/0.4743, allocations: 1.2 MB / 0.5798 GB, free: 28.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003298/0.4746, allocations: 249 kB / 0.5801 GB, free: 28.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003434/0.4781, allocations: 2.455 MB / 0.5825 GB, free: 25.94 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.4781, allocations: 16.55 kB / 0.5825 GB, free: 25.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.4781, allocations: 4 kB / 0.5825 GB, free: 25.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.4781, allocations: 11.97 kB / 0.5825 GB, free: 25.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007596/0.4857, allocations: 5.794 MB / 0.5881 GB, free: 20.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.4858, allocations: 1.656 kB / 0.5881 GB, free: 20.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/0.487, allocations: 292.7 kB / 0.5884 GB, free: 19.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006846/0.4877, allocations: 304.3 kB / 0.5887 GB, free: 19.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.056e-05/0.4878, allocations: 39.98 kB / 0.5887 GB, free: 19.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004786/0.4926, allocations: 6.989 MB / 0.5956 GB, free: 12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.4926, allocations: 0 / 0.5956 GB, free: 12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004402/0.497, allocations: 3.573 MB / 0.5991 GB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000981/0.498, allocations: 498 kB / 0.5995 GB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002689/0.4983, allocations: 39.98 kB / 0.5996 GB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.4993, allocations: 84.06 kB / 0.5997 GB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/0.4995, allocations: 125.1 kB / 0.5998 GB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-05/0.4996, allocations: 43.92 kB / 0.5998 GB, free: 7.555 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001703/0.5013, allocations: 1.556 MB / 0.6013 GB, free: 5.984 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.11e-07/0.5013, allocations: 0 / 0.6013 GB, free: 5.984 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001813/0.5031, allocations: 0.6755 MB / 0.602 GB, free: 5.312 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,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,mechanicalSensor.flange_a.phi) * 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 (133): * Single equations (assignments): 130 * 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,5,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.0002597/0.5034, allocations: 171.1 kB / 0.6022 GB, free: 5.141 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002872/0.5063, allocations: 2.287 MB / 0.6044 GB, free: 2.824 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.5063, allocations: 4 kB / 0.6044 GB, free: 2.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001677/0.508, allocations: 1.44 MB / 0.6058 GB, free: 1.344 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001959/0.51, allocations: 0.5966 MB / 0.6064 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/0.5205, allocations: 6.877 MB / 0.6131 GB, free: 9.863 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002341/0.5229, allocations: 2.665 MB / 0.6157 GB, free: 7.176 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00185/0.5248, allocations: 0.5591 MB / 0.6163 GB, free: 6.613 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004597/0.5252, allocations: 159.4 kB / 0.6164 GB, free: 6.457 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5252, allocations: 7.938 kB / 0.6164 GB, free: 6.449 MB / 382.1 MB Notification: Performance of Templates: time 0.0841/0.6093, allocations: 30.27 MB / 0.646 GB, free: 8.547 MB / 414.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1)