Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.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_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001176, allocations: 115.3 kB / 15.34 MB, free: 0.5078 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.444/1.444, allocations: 222.9 MB / 239 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.001457/0.001457, allocations: 196 kB / 289.3 MB, free: 2.402 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03266/0.03266, allocations: 8.802 MB / 348.2 MB, free: 4.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 73.98 kB / 410.6 MB, free: 42.32 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1183, allocations: 51.56 MB / 462.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.0169/0.1352, allocations: 15.63 MB / 477.8 MB, free: 15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.146, allocations: 5.181 MB / 482.9 MB, free: 9.805 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003634/0.1497, allocations: 95.62 kB / 483 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004758/0.1545, allocations: 1.077 MB / 484.1 MB, free: 8.629 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.007029/0.1616, allocations: 1.401 MB / 485.5 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003042/0.1646, allocations: 0.8812 MB / 486.4 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007694/0.1723, allocations: 4.818 MB / 491.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004743/0.1771, allocations: 3.52 MB / 494.7 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003201/0.1803, allocations: 2.009 MB / 496.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003756/0.1841, allocations: 2.409 MB / 499.2 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001263/0.1854, allocations: 0.5664 MB / 499.7 MB, free: 8.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002219/0.1876, allocations: 0.781 MB / 0.4888 GB, free: 8.137 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001246/0.1889, allocations: 1.285 MB / 0.49 GB, free: 6.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003751/0.1927, allocations: 2.443 MB / 0.4924 GB, free: 4.395 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008872/0.2016, allocations: 7.411 MB / 0.4997 GB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.2016, allocations: 0 / 0.4997 GB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2016, allocations: 0 / 0.4997 GB, free: 12.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000237/0.2019, allocations: 0 / 0.4997 GB, free: 12.96 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.0146/0.2165, allocations: 4.966 MB / 0.5045 GB, free: 7.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.002e-05/0.2165, allocations: 12.02 kB / 0.5045 GB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005559/0.2221, allocations: 0.9561 MB / 0.5054 GB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006705/0.2289, allocations: 2.649 MB / 0.508 GB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002136/0.2291, allocations: 275.8 kB / 0.5083 GB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007565/0.2299, allocations: 372 kB / 0.5087 GB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008388/0.2383, allocations: 4.768 MB / 0.5133 GB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.521e-05/0.2384, allocations: 8 kB / 0.5133 GB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003451/0.2387, allocations: 152 kB / 0.5135 GB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001363/0.2389, allocations: 155.3 kB / 0.5136 GB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006859/0.2457, allocations: 4.05 MB / 0.5176 GB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2289/0.4746, allocations: 15.81 MB / 0.533 GB, free: 56.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005449/0.4801, allocations: 6.935 MB / 0.5398 GB, free: 51.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00255/0.4827, allocations: 1.526 MB / 0.5413 GB, free: 51.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007051/0.4898, allocations: 4.238 MB / 0.5454 GB, free: 50.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.873e-05/0.4898, allocations: 51.45 kB / 0.5455 GB, free: 50.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.828e-06/0.4899, allocations: 0 / 0.5455 GB, free: 50.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.012/0.5019, allocations: 6.472 MB / 0.5518 GB, free: 48.87 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.5019, allocations: 71.94 kB / 0.5518 GB, free: 48.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003907/0.5059, allocations: 2.227 MB / 0.554 GB, free: 47.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001383/0.506, allocations: 54.27 kB / 0.5541 GB, free: 47.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009178/0.5069, allocations: 1.708 MB / 0.5557 GB, free: 46.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003252/0.5073, allocations: 0.5446 MB / 0.5563 GB, free: 46.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004904/0.5078, allocations: 383 kB / 0.5566 GB, free: 45.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.83e-05/0.5078, allocations: 304.4 kB / 0.5569 GB, free: 45.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001045/0.5089, allocations: 0.8274 MB / 0.5577 GB, free: 45.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001268/0.5102, allocations: 1.478 MB / 0.5592 GB, free: 43.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00249/0.5126, allocations: 2.455 MB / 0.5616 GB, free: 42.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.5127, allocations: 4.469 kB / 0.5616 GB, free: 42.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004179/0.5169, allocations: 2.96 MB / 0.5645 GB, free: 40.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.5169, allocations: 15.69 kB / 0.5645 GB, free: 40.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.986e-05/0.5169, allocations: 19.5 kB / 0.5645 GB, free: 40.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000761/0.5177, allocations: 304.9 kB / 0.5648 GB, free: 40.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/0.5193, allocations: 481.8 kB / 0.5653 GB, free: 40.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00367/0.523, allocations: 4.934 MB / 0.5701 GB, free: 35.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001722/0.5247, allocations: 95.22 kB / 0.5702 GB, free: 35.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001247/0.5248, allocations: 88.25 kB / 0.5702 GB, free: 35.81 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 (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001757/0.5266, allocations: 1.124 MB / 0.5713 GB, free: 35.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003613/0.527, allocations: 234.9 kB / 0.5716 GB, free: 34.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00331/0.5303, allocations: 2.425 MB / 0.5739 GB, free: 33.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/0.5303, allocations: 27.8 kB / 0.574 GB, free: 33.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.5303, allocations: 3.812 kB / 0.574 GB, free: 33.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.5303, allocations: 3.984 kB / 0.574 GB, free: 33.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007128/0.5375, allocations: 5.792 MB / 0.5796 GB, free: 28.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.5375, allocations: 2.25 kB / 0.5796 GB, free: 28.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/0.5386, allocations: 279.6 kB / 0.5799 GB, free: 27.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007998/0.5394, allocations: 318.5 kB / 0.5802 GB, free: 27.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-05/0.5396, allocations: 39.98 kB / 0.5802 GB, free: 27.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004832/0.5444, allocations: 7.075 MB / 0.5871 GB, free: 20.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.5444, allocations: 3.984 kB / 0.5872 GB, free: 20.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004495/0.5489, allocations: 3.525 MB / 0.5906 GB, free: 16.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001165/0.5501, allocations: 0.4942 MB / 0.5911 GB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003156/0.5504, allocations: 32 kB / 0.5911 GB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.5515, allocations: 63.95 kB / 0.5912 GB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002574/0.5518, allocations: 121.1 kB / 0.5913 GB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.331e-05/0.5519, allocations: 47.92 kB / 0.5913 GB, free: 15.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001727/0.5536, allocations: 1.519 MB / 0.5928 GB, free: 14.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5536, allocations: 0 / 0.5928 GB, free: 14.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002152/0.5558, allocations: 0.6552 MB / 0.5935 GB, free: 13.5 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 (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 {(2,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003114/0.5561, allocations: 162.3 kB / 0.5936 GB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005143/0.5612, allocations: 3.007 MB / 0.5965 GB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5613, allocations: 0 / 0.5965 GB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00167/0.5629, allocations: 1.421 MB / 0.5979 GB, free: 8.848 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002734/0.5657, allocations: 0.5733 MB / 0.5985 GB, free: 8.293 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/0.5762, allocations: 8.062 MB / 0.6064 GB, free: 208 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00216/0.5784, allocations: 2.519 MB / 0.6088 GB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001929/0.5803, allocations: 0.5116 MB / 0.6093 GB, free: 13.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004338/0.5808, allocations: 151.4 kB / 0.6095 GB, free: 12.99 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5808, allocations: 0 / 0.6095 GB, free: 12.99 MB / 382.1 MB Notification: Performance of Templates: time 0.0559/0.6367, allocations: 32.48 MB / 0.6412 GB, free: 12.83 MB / 414.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)