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.001513/0.001513, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.235/1.235, allocations: 222.9 MB / 238.8 MB, free: 4.66 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.001184/0.001184, allocations: 192.5 kB / 289.1 MB, free: 2.406 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0315/0.0315, allocations: 8.785 MB / 348.1 MB, free: 4.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 76.98 kB / 410.4 MB, free: 42.3 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0832/0.08448, allocations: 51.57 MB / 462 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01721/0.1017, allocations: 16.5 MB / 478.5 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009361/0.1111, allocations: 5.399 MB / 483.9 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00274/0.1139, allocations: 95.69 kB / 484 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003623/0.1175, allocations: 1.108 MB / 485.1 MB, free: 7.648 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.004729/0.1223, allocations: 1.473 MB / 486.5 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00252/0.1249, allocations: 0.9514 MB / 487.5 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005956/0.1308, allocations: 5.295 MB / 492.8 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004747/0.1356, allocations: 3.656 MB / 496.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002519/0.1381, allocations: 1.844 MB / 498.3 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003535/0.1417, allocations: 2.451 MB / 0.489 GB, free: 7.848 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001159/0.1429, allocations: 368 kB / 0.4893 GB, free: 7.488 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002068/0.1449, allocations: 0.5935 MB / 0.4899 GB, free: 6.895 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001511/0.1465, allocations: 1.16 MB / 0.4911 GB, free: 5.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00374/0.1502, allocations: 2.368 MB / 0.4934 GB, free: 3.352 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006919/0.1572, allocations: 7.847 MB / 0.501 GB, free: 11.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1572, allocations: 0 / 0.501 GB, free: 11.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1572, allocations: 0 / 0.501 GB, free: 11.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001574/0.1574, allocations: 0 / 0.501 GB, free: 11.48 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.01222/0.1696, allocations: 5.382 MB / 0.5063 GB, free: 6.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.1696, allocations: 8.031 kB / 0.5063 GB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004892/0.1745, allocations: 0.9986 MB / 0.5073 GB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005263/0.1798, allocations: 2.851 MB / 0.5101 GB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002852/0.1801, allocations: 312.6 kB / 0.5104 GB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001016/0.1812, allocations: 399.9 kB / 0.5107 GB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009779/0.191, allocations: 5.225 MB / 0.5158 GB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.14e-05/0.1911, allocations: 7.906 kB / 0.5158 GB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003416/0.1914, allocations: 160 kB / 0.516 GB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001493/0.1916, allocations: 176 kB / 0.5162 GB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007328/0.1989, allocations: 4.466 MB / 0.5205 GB, free: 7.266 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2001/0.399, allocations: 16.84 MB / 0.537 GB, free: 56.74 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006242/0.4053, allocations: 8.441 MB / 0.5452 GB, free: 50.39 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002663/0.408, allocations: 1.717 MB / 0.5469 GB, free: 50.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00794/0.4159, allocations: 5.024 MB / 0.5518 GB, free: 48.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.416, allocations: 54.12 kB / 0.5518 GB, free: 48.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=158): time 3.477e-06/0.416, allocations: 0 / 0.5518 GB, free: 48.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.01134/0.4273, allocations: 6.175 MB / 0.5579 GB, free: 44.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.4274, allocations: 72.47 kB / 0.5579 GB, free: 44.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003086/0.4305, allocations: 2.313 MB / 0.5602 GB, free: 43.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/0.4306, allocations: 53.64 kB / 0.5603 GB, free: 43.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007404/0.4313, allocations: 1.85 MB / 0.5621 GB, free: 41.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002891/0.4316, allocations: 0.5527 MB / 0.5626 GB, free: 41.24 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004415/0.4321, allocations: 388.6 kB / 0.563 GB, free: 41.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.765e-05/0.4321, allocations: 309 kB / 0.5633 GB, free: 40.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/0.4333, allocations: 0.8541 MB / 0.5641 GB, free: 40.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001338/0.4347, allocations: 1.561 MB / 0.5656 GB, free: 38.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002705/0.4374, allocations: 2.573 MB / 0.5681 GB, free: 37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-05/0.4374, allocations: 7.562 kB / 0.5681 GB, free: 37 MB / 366.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.003858/0.4413, allocations: 2.906 MB / 0.571 GB, free: 35.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.4413, allocations: 14.84 kB / 0.571 GB, free: 35.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.843e-05/0.4413, allocations: 22.47 kB / 0.571 GB, free: 35.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002773/0.4416, allocations: 126.9 kB / 0.5711 GB, free: 35.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001694/0.4433, allocations: 0.5367 MB / 0.5717 GB, free: 35.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.4445, allocations: 1.836 MB / 0.5735 GB, free: 33.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00152/0.446, allocations: 111.3 kB / 0.5736 GB, free: 33.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/0.4462, allocations: 98.02 kB / 0.5737 GB, free: 33.45 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.001491/0.4477, allocations: 1.201 MB / 0.5748 GB, free: 32.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003031/0.448, allocations: 241 kB / 0.5751 GB, free: 32.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003233/0.4512, allocations: 2.469 MB / 0.5775 GB, free: 29.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.4512, allocations: 16.03 kB / 0.5775 GB, free: 29.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.4512, allocations: 8 kB / 0.5775 GB, free: 29.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.4513, allocations: 7.969 kB / 0.5775 GB, free: 29.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008002/0.4593, allocations: 5.826 MB / 0.5832 GB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.4593, allocations: 10.42 kB / 0.5832 GB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/0.4605, allocations: 295.5 kB / 0.5835 GB, free: 23.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007602/0.4612, allocations: 310.9 kB / 0.5838 GB, free: 23.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001123/0.4614, allocations: 39.98 kB / 0.5838 GB, free: 23.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004517/0.4659, allocations: 6.412 MB / 0.5901 GB, free: 16.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.4659, allocations: 4.031 kB / 0.5901 GB, free: 16.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004725/0.4706, allocations: 3.59 MB / 0.5936 GB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009208/0.4716, allocations: 0.498 MB / 0.5941 GB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002756/0.4719, allocations: 32.12 kB / 0.5941 GB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.4729, allocations: 83.92 kB / 0.5942 GB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002542/0.4732, allocations: 121.1 kB / 0.5943 GB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.068e-05/0.4733, allocations: 47.98 kB / 0.5943 GB, free: 11.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001705/0.475, allocations: 1.564 MB / 0.5959 GB, free: 10.31 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.475, allocations: 3.938 kB / 0.5959 GB, free: 10.31 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00194/0.4769, allocations: 0.6812 MB / 0.5965 GB, free: 9.629 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.0002912/0.4772, allocations: 177.7 kB / 0.5967 GB, free: 9.457 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002898/0.4801, allocations: 2.277 MB / 0.5989 GB, free: 7.148 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.4801, allocations: 4.125 kB / 0.5989 GB, free: 7.145 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001706/0.4819, allocations: 1.451 MB / 0.6004 GB, free: 5.656 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002285/0.4842, allocations: 0.5543 MB / 0.6009 GB, free: 5.102 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01004/0.4942, allocations: 8.653 MB / 0.6094 GB, free: 12.42 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0023/0.4965, allocations: 2.661 MB / 0.6119 GB, free: 9.738 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001955/0.4985, allocations: 0.5552 MB / 0.6125 GB, free: 9.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004536/0.499, allocations: 163.4 kB / 0.6126 GB, free: 9.02 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.499, allocations: 4 kB / 0.6127 GB, free: 9.016 MB / 382.1 MB Notification: Performance of Templates: time 0.05072/0.5497, allocations: 31.36 MB / 0.6433 GB, free: 9.941 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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1)