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.001202/0.001202, allocations: 103.4 kB / 15.33 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.48/1.48, allocations: 222.9 MB / 239 MB, free: 4.762 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.001245/0.001245, allocations: 180.5 kB / 289.3 MB, free: 2.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03257/0.03257, allocations: 8.794 MB / 348.2 MB, free: 4.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 81.92 kB / 410.6 MB, free: 42.46 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1184, allocations: 51.56 MB / 462.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01666/0.1351, allocations: 15.61 MB / 477.8 MB, free: 15.15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009828/0.145, allocations: 5.193 MB / 482.9 MB, free: 9.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003599/0.1486, allocations: 91.69 kB / 483 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004121/0.1528, allocations: 1.073 MB / 484.1 MB, free: 8.77 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.006041/0.1589, allocations: 1.399 MB / 485.5 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003426/0.1623, allocations: 0.8727 MB / 486.4 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008195/0.1705, allocations: 4.815 MB / 491.2 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00627/0.1768, allocations: 3.517 MB / 494.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004696/0.1815, allocations: 2.013 MB / 496.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004214/0.1858, allocations: 2.409 MB / 499.1 MB, free: 9.637 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001815/0.1876, allocations: 0.5664 MB / 499.7 MB, free: 9.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002913/0.1906, allocations: 0.7888 MB / 0.4888 GB, free: 8.281 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001696/0.1923, allocations: 1.285 MB / 0.49 GB, free: 6.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003285/0.1956, allocations: 2.443 MB / 0.4924 GB, free: 4.539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007422/0.203, allocations: 7.415 MB / 0.4996 GB, free: 13.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.2031, allocations: 0 / 0.4996 GB, free: 13.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.2031, allocations: 0 / 0.4996 GB, free: 13.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001901/0.2033, allocations: 0 / 0.4996 GB, free: 13.1 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.0147/0.218, allocations: 4.959 MB / 0.5045 GB, free: 8.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.2181, allocations: 15.97 kB / 0.5045 GB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005118/0.2232, allocations: 0.9523 MB / 0.5054 GB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006316/0.2295, allocations: 2.649 MB / 0.508 GB, free: 4.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002704/0.2298, allocations: 279.8 kB / 0.5083 GB, free: 4.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001135/0.231, allocations: 368 kB / 0.5086 GB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008767/0.2397, allocations: 4.772 MB / 0.5133 GB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.437e-05/0.2399, allocations: 12 kB / 0.5133 GB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003163/0.2402, allocations: 151.9 kB / 0.5134 GB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001341/0.2403, allocations: 159.3 kB / 0.5136 GB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006979/0.2473, allocations: 4.046 MB / 0.5176 GB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.276/0.5233, allocations: 15.81 MB / 0.533 GB, free: 57.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006601/0.5299, allocations: 6.938 MB / 0.5398 GB, free: 51.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002888/0.5329, allocations: 1.53 MB / 0.5413 GB, free: 51.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008395/0.5413, allocations: 4.234 MB / 0.5454 GB, free: 51.1 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.5413, allocations: 52.34 kB / 0.5454 GB, free: 51.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.427e-06/0.5414, allocations: 0 / 0.5454 GB, free: 51.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01439/0.5558, allocations: 6.464 MB / 0.5518 GB, free: 49.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.497e-05/0.5559, allocations: 75.56 kB / 0.5518 GB, free: 49.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004667/0.5605, allocations: 2.231 MB / 0.554 GB, free: 48.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003067/0.5609, allocations: 53.58 kB / 0.5541 GB, free: 48.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/0.5619, allocations: 1.706 MB / 0.5557 GB, free: 46.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005181/0.5625, allocations: 0.5474 MB / 0.5563 GB, free: 46.37 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005466/0.563, allocations: 389.5 kB / 0.5566 GB, free: 46.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.791e-05/0.5631, allocations: 301.1 kB / 0.5569 GB, free: 45.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001159/0.5642, allocations: 0.8327 MB / 0.5577 GB, free: 45.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/0.5657, allocations: 1.476 MB / 0.5592 GB, free: 44.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002587/0.5683, allocations: 2.451 MB / 0.5616 GB, free: 42.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.404e-05/0.5683, allocations: 7.906 kB / 0.5616 GB, free: 42.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004621/0.5729, allocations: 2.956 MB / 0.5645 GB, free: 40.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.34e-05/0.573, allocations: 15.09 kB / 0.5645 GB, free: 40.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-05/0.573, allocations: 17.91 kB / 0.5645 GB, free: 40.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008581/0.5739, allocations: 301.8 kB / 0.5648 GB, free: 40.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001611/0.5755, allocations: 484.1 kB / 0.5652 GB, free: 40.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004523/0.58, allocations: 4.938 MB / 0.5701 GB, free: 36.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00248/0.5825, allocations: 89.31 kB / 0.5701 GB, free: 36.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002162/0.5828, allocations: 92.86 kB / 0.5702 GB, free: 36.05 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.002391/0.5852, allocations: 1.116 MB / 0.5713 GB, free: 35.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007103/0.5859, allocations: 239.4 kB / 0.5716 GB, free: 35.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003919/0.5898, allocations: 2.433 MB / 0.5739 GB, free: 33.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.748e-05/0.5899, allocations: 17.56 kB / 0.5739 GB, free: 33.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.5899, allocations: 3.625 kB / 0.574 GB, free: 33.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.5899, allocations: 7.969 kB / 0.574 GB, free: 33.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009214/0.5991, allocations: 5.789 MB / 0.5796 GB, free: 28.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.5992, allocations: 0 / 0.5796 GB, free: 28.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.6003, allocations: 275.6 kB / 0.5799 GB, free: 28.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008175/0.6011, allocations: 330.9 kB / 0.5802 GB, free: 27.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001146/0.6012, allocations: 39.98 kB / 0.5802 GB, free: 27.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00502/0.6063, allocations: 7.086 MB / 0.5871 GB, free: 20.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.6063, allocations: 0 / 0.5871 GB, free: 20.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005051/0.6114, allocations: 3.513 MB / 0.5906 GB, free: 16.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001398/0.6128, allocations: 0.4942 MB / 0.5911 GB, free: 16.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003185/0.6131, allocations: 36 kB / 0.5911 GB, free: 16.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/0.6142, allocations: 63.95 kB / 0.5912 GB, free: 16.15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000298/0.6146, allocations: 117.1 kB / 0.5913 GB, free: 16.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.008e-05/0.6146, allocations: 43.98 kB / 0.5913 GB, free: 15.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001882/0.6165, allocations: 1.519 MB / 0.5928 GB, free: 14.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.6165, allocations: 0 / 0.5928 GB, free: 14.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002471/0.619, allocations: 0.6523 MB / 0.5934 GB, free: 13.8 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.0003544/0.6194, allocations: 159.7 kB / 0.5936 GB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00542/0.6248, allocations: 3.02 MB / 0.5965 GB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/0.6249, allocations: 2 kB / 0.5965 GB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001765/0.6266, allocations: 1.415 MB / 0.5979 GB, free: 9.152 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002974/0.6296, allocations: 0.5831 MB / 0.5985 GB, free: 8.598 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01184/0.6415, allocations: 8.059 MB / 0.6064 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002218/0.6438, allocations: 2.517 MB / 0.6088 GB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002194/0.646, allocations: 0.5116 MB / 0.6093 GB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005082/0.6465, allocations: 151.4 kB / 0.6095 GB, free: 13.3 MB / 382.1 MB Notification: Performance of SimCode: time 1.723e-06/0.6465, allocations: 0 / 0.6095 GB, free: 13.3 MB / 382.1 MB Notification: Performance of Templates: time 0.06201/0.7085, allocations: 32.48 MB / 0.6412 GB, free: 13.13 MB / 414.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.makefile (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)