Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008001/0.0008, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.524/1.524, allocations: 223.3 MB / 239 MB, free: 5.445 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.001343/0.001344, allocations: 188.3 kB / 290.3 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03238/0.03238, allocations: 8.799 MB / 350.2 MB, free: 4.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004716/0.000472, allocations: 11.56 kB / 413.2 MB, free: 43.01 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1288, allocations: 52.56 MB / 465.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01512/0.1439, allocations: 13.91 MB / 479.7 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01089/0.1549, allocations: 4.911 MB / 484.6 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003294/0.1582, allocations: 83.69 kB / 484.7 MB, free: 10.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003335/0.1616, allocations: 0.9324 MB / 485.6 MB, free: 9.605 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.005013/0.1666, allocations: 1.274 MB / 486.9 MB, free: 8.324 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002249/0.1689, allocations: 0.6791 MB / 487.6 MB, free: 7.652 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007009/0.1759, allocations: 4.646 MB / 492.2 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003656/0.1796, allocations: 2.448 MB / 494.6 MB, free: 500 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002653/0.1823, allocations: 1.463 MB / 496.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002804/0.1851, allocations: 1.891 MB / 498 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005675/0.1857, allocations: 236 kB / 498.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001442/0.1871, allocations: 435.7 kB / 498.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007752/0.1879, allocations: 0.8796 MB / 499.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001433/0.1893, allocations: 0.8434 MB / 0.4887 GB, free: 10.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006742/0.1961, allocations: 6.104 MB / 0.4946 GB, free: 4.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.1961, allocations: 0 / 0.4946 GB, free: 4.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.1961, allocations: 3.938 kB / 0.4946 GB, free: 4.605 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002038/0.1964, allocations: 4 kB / 0.4946 GB, free: 4.602 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01066/0.207, allocations: 4.257 MB / 0.4988 GB, free: 280 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.2071, allocations: 8.031 kB / 0.4988 GB, free: 272 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005146/0.2122, allocations: 0.9553 MB / 0.4997 GB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005728/0.218, allocations: 2.591 MB / 0.5022 GB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000235/0.2183, allocations: 287.4 kB / 0.5025 GB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007047/0.219, allocations: 363.9 kB / 0.5029 GB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009554/0.2285, allocations: 4.753 MB / 0.5075 GB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-05/0.2286, allocations: 3.984 kB / 0.5075 GB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003256/0.229, allocations: 148 kB / 0.5077 GB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001448/0.2291, allocations: 155.4 kB / 0.5078 GB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007731/0.2369, allocations: 4.038 MB / 0.5117 GB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02934/0.2662, allocations: 15.89 MB / 0.5273 GB, free: 2.492 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2647/0.531, allocations: 6.938 MB / 0.534 GB, free: 56.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002902/0.5339, allocations: 1.533 MB / 0.5355 GB, free: 56.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008059/0.542, allocations: 4.247 MB / 0.5397 GB, free: 55.9 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.485e-05/0.5421, allocations: 49.34 kB / 0.5397 GB, free: 55.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.246e-06/0.5421, allocations: 0 / 0.5397 GB, free: 55.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01457/0.5567, allocations: 6.504 MB / 0.5461 GB, free: 54.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.126e-05/0.5567, allocations: 76.27 kB / 0.5462 GB, free: 54.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003809/0.5606, allocations: 2.216 MB / 0.5483 GB, free: 54.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00019/0.5608, allocations: 51.61 kB / 0.5484 GB, free: 54.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00128/0.5621, allocations: 1.704 MB / 0.55 GB, free: 52.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004859/0.5626, allocations: 0.5442 MB / 0.5506 GB, free: 52.31 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.5627, allocations: 44.91 kB / 0.5506 GB, free: 52.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.5628, allocations: 385.5 kB / 0.551 GB, free: 51.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001484/0.5643, allocations: 0.8276 MB / 0.5518 GB, free: 51.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/0.566, allocations: 1.48 MB / 0.5532 GB, free: 50.47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001653/0.5677, allocations: 1.088 MB / 0.5543 GB, free: 49.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.45e-05/0.5677, allocations: 6.094 kB / 0.5543 GB, free: 49.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004618/0.5723, allocations: 2.946 MB / 0.5572 GB, free: 48.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.5723, allocations: 19.86 kB / 0.5572 GB, free: 48.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.603e-05/0.5724, allocations: 27.44 kB / 0.5572 GB, free: 48.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007574/0.5731, allocations: 302.8 kB / 0.5575 GB, free: 48.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/0.5747, allocations: 489.5 kB / 0.558 GB, free: 48.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003716/0.5784, allocations: 4.506 MB / 0.5624 GB, free: 44.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/0.5803, allocations: 95.72 kB / 0.5625 GB, free: 44.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001569/0.5805, allocations: 91.58 kB / 0.5626 GB, free: 44.66 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (250): * Single equations (assignments): 247 * 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: 2 * 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: 2 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00198/0.5825, allocations: 1.111 MB / 0.5636 GB, free: 44.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003573/0.5829, allocations: 239.5 kB / 0.5639 GB, free: 43.92 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003659/0.5865, allocations: 2.44 MB / 0.5663 GB, free: 42.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.5865, allocations: 19.7 kB / 0.5663 GB, free: 42.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.5866, allocations: 4.656 kB / 0.5663 GB, free: 42.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/0.5866, allocations: 9.281 kB / 0.5663 GB, free: 42.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007134/0.5937, allocations: 5.784 MB / 0.5719 GB, free: 38.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.5937, allocations: 4.719 kB / 0.5719 GB, free: 38.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.5948, allocations: 277.3 kB / 0.5722 GB, free: 38.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007285/0.5955, allocations: 320.7 kB / 0.5725 GB, free: 38.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-05/0.5956, allocations: 40.55 kB / 0.5725 GB, free: 38.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004916/0.6006, allocations: 6.442 MB / 0.5788 GB, free: 31.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.6006, allocations: 10.38 kB / 0.5788 GB, free: 31.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004415/0.605, allocations: 3.522 MB / 0.5823 GB, free: 28.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001067/0.6061, allocations: 0.4952 MB / 0.5828 GB, free: 27.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002787/0.6064, allocations: 32 kB / 0.5828 GB, free: 27.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009345/0.6073, allocations: 71.95 kB / 0.5829 GB, free: 27.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002433/0.6076, allocations: 121 kB / 0.583 GB, free: 27.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.307e-05/0.6077, allocations: 47.98 kB / 0.583 GB, free: 27.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002084/0.6098, allocations: 1.499 MB / 0.5845 GB, free: 25.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6098, allocations: 0 / 0.5845 GB, free: 25.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002329/0.6121, allocations: 0.6523 MB / 0.5851 GB, free: 25.14 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.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 (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 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002951/0.6124, allocations: 165.5 kB / 0.5853 GB, free: 24.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003129/0.6156, allocations: 2.434 MB / 0.5877 GB, free: 22.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.6156, allocations: 0 / 0.5877 GB, free: 22.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001597/0.6172, allocations: 1.416 MB / 0.5891 GB, free: 21.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002253/0.6194, allocations: 0.5637 MB / 0.5896 GB, free: 20.51 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01052/0.63, allocations: 7.81 MB / 0.5972 GB, free: 12.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001655/0.6317, allocations: 2.507 MB / 0.5997 GB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00187/0.6335, allocations: 0.5154 MB / 0.6002 GB, free: 9.598 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003902/0.6339, allocations: 151.4 kB / 0.6003 GB, free: 9.449 MB / 366.1 MB Notification: Performance of SimCode: time 9.51e-07/0.6339, allocations: 0 / 0.6003 GB, free: 9.449 MB / 366.1 MB Notification: Performance of Templates: time 0.05272/0.6867, allocations: 30.13 MB / 0.6297 GB, free: 11.61 MB / 398.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.makefile Environment - environmentSimulation: (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1) Environment - environmentSimulation: