Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/HanserModelica 1.1.1/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 1.1.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/HanserModelica 1.1.1/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 180.1 kB / 15.43 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/HanserModelica 1.1.1/package.mo): time 0.03996/0.03996, allocations: 8.925 MB / 25.1 MB, free: 3.684 MB / 18.57 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 225.7 MB / 253.7 MB, free: 5.211 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008799/0.0008799, allocations: 102.7 kB / 307 MB, free: 2.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003115/0.0003115, allocations: 11.94 kB / 370.3 MB, free: 3.617 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3042, allocations: 52.55 MB / 422.8 MB, free: 47.96 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01361/0.3178, allocations: 14 MB / 436.8 MB, free: 37.9 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0106/0.3285, allocations: 6.459 MB / 443.3 MB, free: 32.5 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0036/0.3321, allocations: 85.88 kB / 443.4 MB, free: 32.48 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00406/0.3362, allocations: 1.069 MB / 444.4 MB, free: 31.99 MB / 330.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/HanserModelica 1.1.1/SynchronousMachines/SMEE_Synchronization1.mo:14:3-14:102:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.00603/0.3423, allocations: 1.777 MB / 446.2 MB, free: 30.47 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003037/0.3453, allocations: 1.252 MB / 447.5 MB, free: 29.3 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007332/0.3527, allocations: 5.024 MB / 452.5 MB, free: 25.83 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004341/0.3571, allocations: 2.906 MB / 455.4 MB, free: 22.85 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002744/0.3598, allocations: 1.505 MB / 456.9 MB, free: 21.34 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003111/0.363, allocations: 1.952 MB / 458.9 MB, free: 19.38 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000993/0.364, allocations: 240 kB / 459.1 MB, free: 19.14 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002377/0.3664, allocations: 451.7 kB / 459.5 MB, free: 18.7 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001281/0.3677, allocations: 0.8949 MB / 460.4 MB, free: 17.8 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003573/0.3713, allocations: 2.019 MB / 462.5 MB, free: 15.77 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007159/0.3784, allocations: 7.019 MB / 469.5 MB, free: 8.727 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.3785, allocations: 0 / 469.5 MB, free: 8.727 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3785, allocations: 0 / 469.5 MB, free: 8.727 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002774/0.3788, allocations: 4 kB / 469.5 MB, free: 8.723 MB / 330.7 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.01239/0.3912, allocations: 4.214 MB / 473.7 MB, free: 4.438 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/0.3912, allocations: 8.031 kB / 473.7 MB, free: 4.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005444/0.3967, allocations: 0.964 MB / 474.7 MB, free: 3.461 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005116/0.4018, allocations: 2.657 MB / 477.3 MB, free: 0.75 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002742/0.4021, allocations: 283.8 kB / 477.6 MB, free: 484 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001063/0.4032, allocations: 368 kB / 478 MB, free: 116 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01091/0.4142, allocations: 4.749 MB / 482.7 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-05/0.4143, allocations: 11.92 kB / 482.7 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000345/0.4146, allocations: 156 kB / 482.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001485/0.4148, allocations: 151.4 kB / 483 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008085/0.4229, allocations: 4.034 MB / 487 MB, free: 6.969 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02678/0.4497, allocations: 15.92 MB / 0.4912 GB, free: 6.555 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006482/0.4563, allocations: 6.935 MB / 0.498 GB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002527/0.4588, allocations: 1.53 MB / 0.4994 GB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00757/0.4664, allocations: 4.255 MB / 0.5036 GB, free: 8.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.731e-05/0.4665, allocations: 47.88 kB / 0.5036 GB, free: 8.762 MB / 378.7 MB Notification: Performance of pre-optimization done (n=137): time 3.105e-06/0.4665, allocations: 4 kB / 0.5036 GB, free: 8.758 MB / 378.7 MB Notification: Performance of matching and sorting (n=159): time 0.01335/0.4799, allocations: 6.495 MB / 0.51 GB, free: 2.105 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.48, allocations: 68.72 kB / 0.5101 GB, free: 2.027 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00348/0.4835, allocations: 2.207 MB / 0.5122 GB, free: 15.79 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001581/0.4836, allocations: 49.7 kB / 0.5123 GB, free: 15.73 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00133/0.485, allocations: 1.7 MB / 0.5139 GB, free: 14.01 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004783/0.4855, allocations: 0.5508 MB / 0.5145 GB, free: 13.45 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.57e-05/0.4856, allocations: 40 kB / 0.5145 GB, free: 13.41 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.4858, allocations: 390.1 kB / 0.5149 GB, free: 13.03 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001334/0.4871, allocations: 0.824 MB / 0.5157 GB, free: 12.2 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0017/0.4888, allocations: 1.488 MB / 0.5171 GB, free: 10.41 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003116/0.492, allocations: 2.453 MB / 0.5195 GB, free: 7.676 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.289e-05/0.492, allocations: 4 kB / 0.5195 GB, free: 7.672 MB / 394.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004951/0.4969, allocations: 2.955 MB / 0.5224 GB, free: 4.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.386e-05/0.497, allocations: 21.34 kB / 0.5224 GB, free: 4.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.636e-05/0.497, allocations: 20 kB / 0.5225 GB, free: 4.641 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008869/0.4979, allocations: 309.1 kB / 0.5227 GB, free: 4.332 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001758/0.4997, allocations: 483.2 kB / 0.5232 GB, free: 3.859 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004756/0.5045, allocations: 4.5 MB / 0.5276 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001901/0.5064, allocations: 91.94 kB / 0.5277 GB, free: 15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001573/0.5066, allocations: 92 kB / 0.5278 GB, free: 14.91 MB / 410.7 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.002282/0.5088, allocations: 1.119 MB / 0.5289 GB, free: 13.78 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000462/0.5093, allocations: 241.1 kB / 0.5291 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004/0.5133, allocations: 2.436 MB / 0.5315 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.5134, allocations: 19.98 kB / 0.5315 GB, free: 11.03 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.5134, allocations: 4.125 kB / 0.5315 GB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.544e-05/0.5134, allocations: 11.92 kB / 0.5315 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008842/0.5222, allocations: 5.786 MB / 0.5372 GB, free: 5.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.5223, allocations: 0 / 0.5372 GB, free: 5.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/0.5235, allocations: 275.6 kB / 0.5374 GB, free: 4.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009198/0.5245, allocations: 330.4 kB / 0.5377 GB, free: 4.488 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.5246, allocations: 39.98 kB / 0.5378 GB, free: 4.449 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007704/0.5323, allocations: 6.445 MB / 0.5441 GB, free: 13.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.5323, allocations: 4 kB / 0.5441 GB, free: 13.59 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006392/0.5387, allocations: 3.529 MB / 0.5475 GB, free: 9.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001473/0.5402, allocations: 0.4904 MB / 0.548 GB, free: 9.469 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004663/0.5407, allocations: 32 kB / 0.548 GB, free: 9.438 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/0.5419, allocations: 71.95 kB / 0.5481 GB, free: 9.367 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003423/0.5422, allocations: 121 kB / 0.5482 GB, free: 9.246 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.685e-05/0.5423, allocations: 43.98 kB / 0.5483 GB, free: 9.203 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002417/0.5447, allocations: 1.499 MB / 0.5497 GB, free: 7.688 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5447, allocations: 0 / 0.5497 GB, free: 7.688 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002253/0.547, allocations: 0.6564 MB / 0.5504 GB, free: 7.031 MB / 426.7 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.0003168/0.5473, allocations: 168 kB / 0.5505 GB, free: 6.859 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003859/0.5512, allocations: 2.438 MB / 0.5529 GB, free: 4.379 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.5512, allocations: 0 / 0.5529 GB, free: 4.379 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002033/0.5533, allocations: 1.417 MB / 0.5543 GB, free: 2.926 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003033/0.5563, allocations: 0.5464 MB / 0.5548 GB, free: 2.379 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.198/0.7543, allocations: 8.191 MB / 0.5628 GB, free: 121.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003022/0.7574, allocations: 2.514 MB / 0.5653 GB, free: 120.5 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002364/0.7598, allocations: 0.5127 MB / 0.5658 GB, free: 120.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004825/0.7603, allocations: 158.1 kB / 0.5659 GB, free: 120.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.222e-06/0.7603, allocations: 0 / 0.5659 GB, free: 120.5 MB / 426.7 MB Notification: Performance of Templates: time 0.05163/0.8119, allocations: 30.91 MB / 0.5961 GB, free: 100.8 MB / 426.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1)