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.0009554/0.0009553, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.6/1.6, allocations: 223.2 MB / 238.9 MB, free: 5.648 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: 180.4 kB / 290.2 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03277/0.03277, allocations: 8.787 MB / 350.1 MB, free: 4.789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003779/0.0003779, allocations: 11.62 kB / 413.1 MB, free: 43.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1138, allocations: 52.56 MB / 465.7 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01464/0.1285, allocations: 13.48 MB / 479.1 MB, free: 104 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01256/0.1411, allocations: 5.216 MB / 484.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004265/0.1454, allocations: 87.69 kB / 484.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0035/0.149, allocations: 0.9639 MB / 485.4 MB, free: 9.816 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.006197/0.1552, allocations: 1.457 MB / 486.9 MB, free: 8.355 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00313/0.1583, allocations: 0.7017 MB / 487.6 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008015/0.1664, allocations: 3.401 MB / 491 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004309/0.1707, allocations: 2.721 MB / 493.7 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00317/0.1739, allocations: 1.545 MB / 495.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003817/0.1778, allocations: 1.871 MB / 497.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00112/0.1789, allocations: 256 kB / 497.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002064/0.181, allocations: 439.7 kB / 497.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009958/0.182, allocations: 0.9461 MB / 498.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001618/0.1836, allocations: 0.9018 MB / 499.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008418/0.1921, allocations: 6.572 MB / 0.4943 GB, free: 4.922 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1921, allocations: 0 / 0.4943 GB, free: 4.922 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.1921, allocations: 0 / 0.4943 GB, free: 4.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002825/0.1924, allocations: 0 / 0.4943 GB, free: 4.922 MB / 334.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.01374/0.2062, allocations: 4.61 MB / 0.4988 GB, free: 240 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.2062, allocations: 8.031 kB / 0.4988 GB, free: 232 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006168/0.2124, allocations: 0.99 MB / 0.4998 GB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006954/0.2194, allocations: 2.812 MB / 0.5026 GB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003034/0.2197, allocations: 308.1 kB / 0.5029 GB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001065/0.2208, allocations: 399.9 kB / 0.5032 GB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01111/0.2319, allocations: 5.178 MB / 0.5083 GB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.433e-05/0.232, allocations: 7.906 kB / 0.5083 GB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003758/0.2324, allocations: 160 kB / 0.5085 GB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001663/0.2326, allocations: 176 kB / 0.5086 GB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008745/0.2414, allocations: 4.466 MB / 0.513 GB, free: 1.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03035/0.2717, allocations: 16.92 MB / 0.5295 GB, free: 188 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.247/0.5188, allocations: 8.439 MB / 0.5377 GB, free: 56.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008503/0.5274, allocations: 4.253 MB / 0.5419 GB, free: 55.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.549e-05/0.5275, allocations: 51.67 kB / 0.5419 GB, free: 55.01 MB / 366.1 MB Notification: Performance of pre-optimization done (n=168): time 4.519e-06/0.5275, allocations: 0 / 0.5419 GB, free: 55.01 MB / 366.1 MB Notification: Performance of matching and sorting (n=172): time 0.01657/0.5441, allocations: 6.608 MB / 0.5484 GB, free: 53.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.43e-05/0.5442, allocations: 69.66 kB / 0.5485 GB, free: 53.58 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004021/0.5482, allocations: 2.256 MB / 0.5507 GB, free: 52.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001904/0.5484, allocations: 56.45 kB / 0.5507 GB, free: 52.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001196/0.5496, allocations: 1.833 MB / 0.5525 GB, free: 51.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004568/0.5501, allocations: 0.5849 MB / 0.5531 GB, free: 50.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.82e-05/0.5502, allocations: 45.59 kB / 0.5531 GB, free: 50.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.5504, allocations: 397.4 kB / 0.5535 GB, free: 50.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001613/0.552, allocations: 0.8916 MB / 0.5544 GB, free: 50.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001911/0.5539, allocations: 1.578 MB / 0.5559 GB, free: 49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001984/0.5559, allocations: 1.167 MB / 0.5571 GB, free: 48.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.446e-05/0.5559, allocations: 7.875 kB / 0.5571 GB, free: 48.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004941/0.5609, allocations: 2.986 MB / 0.56 GB, free: 47.17 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.401e-05/0.5609, allocations: 16.19 kB / 0.56 GB, free: 47.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.562e-05/0.5609, allocations: 19.69 kB / 0.56 GB, free: 47.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003186/0.5613, allocations: 128.5 kB / 0.5601 GB, free: 47.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001944/0.5632, allocations: 0.5648 MB / 0.5607 GB, free: 47.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001497/0.5647, allocations: 1.858 MB / 0.5625 GB, free: 45.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002234/0.567, allocations: 124.5 kB / 0.5626 GB, free: 45.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/0.5671, allocations: 94.66 kB / 0.5627 GB, free: 45.38 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * 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 (277): * Single equations (assignments): 275 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002453/0.5696, allocations: 1.198 MB / 0.5639 GB, free: 44.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007182/0.5703, allocations: 244 kB / 0.5641 GB, free: 44.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004374/0.5747, allocations: 2.614 MB / 0.5667 GB, free: 43.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/0.5747, allocations: 18.97 kB / 0.5667 GB, free: 43.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.5747, allocations: 3.5 kB / 0.5667 GB, free: 43.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.564e-05/0.5748, allocations: 11.92 kB / 0.5667 GB, free: 43.17 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008958/0.5837, allocations: 6.101 MB / 0.5727 GB, free: 38.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/0.5838, allocations: 7.844 kB / 0.5727 GB, free: 38.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/0.585, allocations: 323.8 kB / 0.573 GB, free: 38.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007334/0.5858, allocations: 310.8 kB / 0.5733 GB, free: 38.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.333e-05/0.5859, allocations: 39.98 kB / 0.5733 GB, free: 38.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004941/0.5908, allocations: 6.46 MB / 0.5796 GB, free: 31.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.5908, allocations: 4 kB / 0.5796 GB, free: 31.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005273/0.5961, allocations: 3.958 MB / 0.5835 GB, free: 27.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001741/0.5979, allocations: 0.5058 MB / 0.584 GB, free: 26.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003468/0.5982, allocations: 40 kB / 0.584 GB, free: 26.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.5994, allocations: 99.88 kB / 0.5841 GB, free: 26.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002797/0.5997, allocations: 129.1 kB / 0.5842 GB, free: 26.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-05/0.5998, allocations: 51.98 kB / 0.5843 GB, free: 26.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002175/0.602, allocations: 1.529 MB / 0.5858 GB, free: 24.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.602, allocations: 0 / 0.5858 GB, free: 24.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002474/0.6045, allocations: 0.6758 MB / 0.5864 GB, free: 24.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (144): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003535/0.6048, allocations: 191.3 kB / 0.5866 GB, free: 24.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003357/0.6082, allocations: 2.386 MB / 0.589 GB, free: 21.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.381e-06/0.6082, allocations: 4 kB / 0.589 GB, free: 21.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001908/0.6101, allocations: 1.519 MB / 0.5904 GB, free: 20.1 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002519/0.6126, allocations: 0.5572 MB / 0.591 GB, free: 19.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0133/0.626, allocations: 8.416 MB / 0.5992 GB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001927/0.6279, allocations: 2.751 MB / 0.6019 GB, free: 8.305 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002207/0.6302, allocations: 0.5552 MB / 0.6024 GB, free: 7.746 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004328/0.6306, allocations: 163.4 kB / 0.6026 GB, free: 7.59 MB / 366.1 MB Notification: Performance of SimCode: time 1.273e-06/0.6306, allocations: 4 kB / 0.6026 GB, free: 7.586 MB / 366.1 MB Notification: Performance of Templates: time 0.05603/0.6866, allocations: 30.38 MB / 0.6323 GB, free: 9.5 MB / 398.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1) Environment - environmentSimulation: