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.0009371/0.0009371, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.307/1.307, allocations: 223.3 MB / 240 MB, free: 5.453 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.0009724/0.0009725, allocations: 176.5 kB / 291.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.03537/0.03537, allocations: 8.802 MB / 351.2 MB, free: 4.559 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003373/0.0003373, allocations: 14.69 kB / 414.5 MB, free: 42.69 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06583/0.06618, allocations: 52.56 MB / 467 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01386/0.08007, allocations: 14.9 MB / 481.9 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007818/0.08791, allocations: 5.166 MB / 487.1 MB, free: 8.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001268/0.08921, allocations: 83.69 kB / 487.2 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002211/0.09143, allocations: 1.065 MB / 488.2 MB, free: 7.785 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.003119/0.09456, allocations: 1.395 MB / 489.6 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001726/0.0963, allocations: 0.8886 MB / 490.5 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00467/0.101, allocations: 4.997 MB / 495.5 MB, free: 492 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00316/0.1042, allocations: 2.914 MB / 498.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001592/0.1058, allocations: 1.482 MB / 499.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002002/0.1078, allocations: 1.975 MB / 0.4901 GB, free: 10.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003459/0.1081, allocations: 239.9 kB / 0.4904 GB, free: 9.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009257/0.1091, allocations: 459.7 kB / 0.4908 GB, free: 9.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006864/0.1098, allocations: 0.8948 MB / 0.4917 GB, free: 8.441 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001687/0.1115, allocations: 2.019 MB / 0.4936 GB, free: 6.406 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004653/0.1161, allocations: 6.116 MB / 0.4996 GB, free: 280 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1161, allocations: 0 / 0.4996 GB, free: 280 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1161, allocations: 0 / 0.4996 GB, free: 280 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.508e-05/0.1162, allocations: 0 / 0.4996 GB, free: 280 kB / 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.00952/0.1258, allocations: 4.222 MB / 0.5037 GB, free: 11.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.1258, allocations: 12.03 kB / 0.5038 GB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005135/0.131, allocations: 0.9601 MB / 0.5047 GB, free: 11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004373/0.1353, allocations: 2.653 MB / 0.5073 GB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001839/0.1355, allocations: 275.8 kB / 0.5075 GB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005323/0.1361, allocations: 376 kB / 0.5079 GB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007657/0.1437, allocations: 4.776 MB / 0.5126 GB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.187e-05/0.1438, allocations: 0 / 0.5126 GB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003435/0.1442, allocations: 152 kB / 0.5127 GB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000134/0.1443, allocations: 159.3 kB / 0.5129 GB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00672/0.151, allocations: 4.062 MB / 0.5168 GB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1752/0.3262, allocations: 15.91 MB / 0.5324 GB, free: 58.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005369/0.3316, allocations: 6.958 MB / 0.5392 GB, free: 53.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00245/0.3341, allocations: 1.534 MB / 0.5407 GB, free: 53.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006911/0.341, allocations: 4.241 MB / 0.5448 GB, free: 52.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.3411, allocations: 49.97 kB / 0.5449 GB, free: 52.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.006e-06/0.3411, allocations: 0 / 0.5449 GB, free: 52.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01202/0.3531, allocations: 6.506 MB / 0.5512 GB, free: 50.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.3532, allocations: 69.34 kB / 0.5513 GB, free: 50.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002969/0.3562, allocations: 2.232 MB / 0.5535 GB, free: 50.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001046/0.3563, allocations: 52.08 kB / 0.5535 GB, free: 50.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008306/0.3571, allocations: 1.703 MB / 0.5552 GB, free: 48.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003525/0.3575, allocations: 0.5504 MB / 0.5557 GB, free: 48.49 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002551/0.3578, allocations: 174 kB / 0.5559 GB, free: 48.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.108e-05/0.3578, allocations: 306.1 kB / 0.5562 GB, free: 48.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.359, allocations: 0.8314 MB / 0.557 GB, free: 47.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001366/0.3604, allocations: 1.484 MB / 0.5584 GB, free: 46.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002634/0.3631, allocations: 2.479 MB / 0.5608 GB, free: 44.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/0.3631, allocations: 7.875 kB / 0.5609 GB, free: 44.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004372/0.3675, allocations: 2.962 MB / 0.5637 GB, free: 43.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/0.3675, allocations: 18 kB / 0.5638 GB, free: 43.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.3e-05/0.3675, allocations: 21.59 kB / 0.5638 GB, free: 43.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000811/0.3683, allocations: 307 kB / 0.5641 GB, free: 43.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001688/0.37, allocations: 484.3 kB / 0.5645 GB, free: 43.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00364/0.3737, allocations: 4.514 MB / 0.5689 GB, free: 39.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/0.3754, allocations: 90.59 kB / 0.569 GB, free: 39.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/0.3756, allocations: 97.8 kB / 0.5691 GB, free: 39.23 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.001571/0.3772, allocations: 1.115 MB / 0.5702 GB, free: 38.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003069/0.3775, allocations: 233.8 kB / 0.5704 GB, free: 38.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003627/0.3811, allocations: 2.443 MB / 0.5728 GB, free: 36.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/0.3811, allocations: 15.06 kB / 0.5728 GB, free: 36.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.3811, allocations: 3.438 kB / 0.5728 GB, free: 36.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.3812, allocations: 7.969 kB / 0.5728 GB, free: 36.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007225/0.3884, allocations: 5.806 MB / 0.5785 GB, free: 31.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.3884, allocations: 4.031 kB / 0.5785 GB, free: 31.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001188/0.3896, allocations: 283.6 kB / 0.5788 GB, free: 31.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008108/0.3904, allocations: 324 kB / 0.5791 GB, free: 31.15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.981e-05/0.3905, allocations: 35.98 kB / 0.5791 GB, free: 31.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004803/0.3954, allocations: 6.446 MB / 0.5854 GB, free: 24.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3954, allocations: 4.062 kB / 0.5854 GB, free: 24.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00462/0.4, allocations: 3.545 MB / 0.5889 GB, free: 20.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007937/0.4008, allocations: 0.4904 MB / 0.5894 GB, free: 20.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002765/0.4011, allocations: 36 kB / 0.5894 GB, free: 20.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001124/0.4022, allocations: 71.95 kB / 0.5895 GB, free: 20.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002302/0.4025, allocations: 117.1 kB / 0.5896 GB, free: 19.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.493e-05/0.4026, allocations: 47.98 kB / 0.5896 GB, free: 19.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001817/0.4044, allocations: 1.515 MB / 0.5911 GB, free: 18.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4044, allocations: 0 / 0.5911 GB, free: 18.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001925/0.4063, allocations: 0.6588 MB / 0.5918 GB, free: 17.7 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.0002562/0.4066, allocations: 163.1 kB / 0.5919 GB, free: 17.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003093/0.4097, allocations: 2.45 MB / 0.5943 GB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.4097, allocations: 1.75 kB / 0.5943 GB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001697/0.4114, allocations: 1.425 MB / 0.5957 GB, free: 13.58 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002765/0.4142, allocations: 0.5445 MB / 0.5962 GB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009033/0.4232, allocations: 8.177 MB / 0.6042 GB, free: 4.828 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001565/0.4248, allocations: 2.454 MB / 0.6066 GB, free: 2.344 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005917/0.4254, allocations: 171.4 kB / 0.6068 GB, free: 2.176 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4254, allocations: 4 kB / 0.6068 GB, free: 2.172 MB / 366.1 MB Notification: Performance of Templates: time 0.249/0.6744, allocations: 99.24 MB / 0.7037 GB, free: 145 MB / 462.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)