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.001122/0.001122, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.303/1.303, allocations: 222.9 MB / 240 MB, free: 4.535 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.001744/0.001744, allocations: 192.2 kB / 290.3 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03403/0.03403, allocations: 8.808 MB / 349.3 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 80.31 kB / 412.5 MB, free: 41.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07975/0.08135, allocations: 51.56 MB / 464.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.0164/0.0978, allocations: 15.81 MB / 479.9 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01008/0.1079, allocations: 5.278 MB / 485.2 MB, free: 8.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003584/0.1116, allocations: 91.69 kB / 485.3 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004538/0.1162, allocations: 1.215 MB / 486.5 MB, free: 7.027 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.006028/0.1222, allocations: 1.556 MB / 488 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002805/0.125, allocations: 0.9717 MB / 489 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006071/0.1311, allocations: 4.702 MB / 493.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004619/0.1358, allocations: 3.517 MB / 497.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002845/0.1386, allocations: 2.106 MB / 499.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003583/0.1422, allocations: 2.436 MB / 0.49 GB, free: 7.629 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008524/0.1431, allocations: 0.5703 MB / 0.4906 GB, free: 7.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001554/0.1447, allocations: 0.7849 MB / 0.4913 GB, free: 6.273 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009939/0.1457, allocations: 1.297 MB / 0.4926 GB, free: 4.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002495/0.1482, allocations: 2.439 MB / 0.495 GB, free: 2.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006737/0.1549, allocations: 7.501 MB / 0.5023 GB, free: 11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1549, allocations: 0 / 0.5023 GB, free: 11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1549, allocations: 0 / 0.5023 GB, free: 11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001254/0.1551, allocations: 0 / 0.5023 GB, free: 11 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.01183/0.1669, allocations: 4.97 MB / 0.5072 GB, free: 5.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.167, allocations: 12.03 kB / 0.5072 GB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005124/0.1721, allocations: 0.9484 MB / 0.5081 GB, free: 4.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007007/0.1791, allocations: 2.836 MB / 0.5109 GB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002093/0.1794, allocations: 283.8 kB / 0.5111 GB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007686/0.1801, allocations: 368 kB / 0.5115 GB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008705/0.1889, allocations: 4.765 MB / 0.5161 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.283e-05/0.189, allocations: 7.984 kB / 0.5161 GB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003338/0.1893, allocations: 156 kB / 0.5163 GB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001409/0.1895, allocations: 155.3 kB / 0.5164 GB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007037/0.1965, allocations: 4.042 MB / 0.5204 GB, free: 8.297 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2067/0.4032, allocations: 15.54 MB / 0.5356 GB, free: 55.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00553/0.4088, allocations: 6.927 MB / 0.5423 GB, free: 50.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002613/0.4114, allocations: 1.507 MB / 0.5438 GB, free: 50.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007633/0.4191, allocations: 4.154 MB / 0.5479 GB, free: 50.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.557e-05/0.4192, allocations: 49.22 kB / 0.5479 GB, free: 50.03 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 4.257e-06/0.4192, allocations: 0 / 0.5479 GB, free: 50.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01228/0.4315, allocations: 6.376 MB / 0.5541 GB, free: 47.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.4315, allocations: 72.84 kB / 0.5542 GB, free: 47.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003594/0.4351, allocations: 2.18 MB / 0.5563 GB, free: 46.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.4352, allocations: 53.61 kB / 0.5564 GB, free: 46.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008613/0.4361, allocations: 1.735 MB / 0.5581 GB, free: 45.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000324/0.4364, allocations: 0.5464 MB / 0.5586 GB, free: 44.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005224/0.437, allocations: 405.7 kB / 0.559 GB, free: 44.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.76e-05/0.437, allocations: 301.1 kB / 0.5593 GB, free: 44.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.4382, allocations: 0.8264 MB / 0.5601 GB, free: 43.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/0.4396, allocations: 1.591 MB / 0.5616 GB, free: 42.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002696/0.4423, allocations: 2.591 MB / 0.5642 GB, free: 40.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.449e-05/0.4423, allocations: 9.734 kB / 0.5642 GB, free: 40.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004366/0.4467, allocations: 3.035 MB / 0.5671 GB, free: 38.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.577e-05/0.4468, allocations: 15.38 kB / 0.5672 GB, free: 38.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-05/0.4468, allocations: 25.06 kB / 0.5672 GB, free: 38.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007431/0.4475, allocations: 303.1 kB / 0.5675 GB, free: 38.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0017/0.4493, allocations: 0.4964 MB / 0.568 GB, free: 38.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003706/0.453, allocations: 4.868 MB / 0.5727 GB, free: 34.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001697/0.4547, allocations: 101.7 kB / 0.5728 GB, free: 34.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001577/0.4549, allocations: 99.22 kB / 0.5729 GB, free: 34.13 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * 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 (264): * Single equations (assignments): 261 * 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.001655/0.4565, allocations: 1.145 MB / 0.574 GB, free: 33.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004455/0.457, allocations: 231.4 kB / 0.5742 GB, free: 33.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003586/0.4606, allocations: 2.404 MB / 0.5766 GB, free: 31.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.4606, allocations: 18.69 kB / 0.5766 GB, free: 31.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.4606, allocations: 3.656 kB / 0.5766 GB, free: 31.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.34e-05/0.4606, allocations: 9.094 kB / 0.5766 GB, free: 31.72 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009127/0.4698, allocations: 5.705 MB / 0.5822 GB, free: 26.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.4698, allocations: 0 / 0.5822 GB, free: 26.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.471, allocations: 271.7 kB / 0.5825 GB, free: 25.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007491/0.4718, allocations: 312.8 kB / 0.5827 GB, free: 25.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000117/0.4719, allocations: 40.95 kB / 0.5828 GB, free: 25.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005151/0.477, allocations: 7.021 MB / 0.5896 GB, free: 18.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4771, allocations: 3.984 kB / 0.5896 GB, free: 18.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004654/0.4817, allocations: 3.488 MB / 0.5931 GB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001344/0.4831, allocations: 490.2 kB / 0.5935 GB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005963/0.4837, allocations: 32 kB / 0.5936 GB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001324/0.485, allocations: 64.47 kB / 0.5936 GB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002668/0.4853, allocations: 125 kB / 0.5937 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.894e-05/0.4854, allocations: 40 kB / 0.5938 GB, free: 13.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002281/0.4877, allocations: 1.476 MB / 0.5952 GB, free: 12.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4877, allocations: 0 / 0.5952 GB, free: 12.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00264/0.4904, allocations: 0.6497 MB / 0.5958 GB, free: 11.59 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.0003106/0.4907, allocations: 167.5 kB / 0.596 GB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003362/0.4941, allocations: 2.471 MB / 0.5984 GB, free: 8.906 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.4941, allocations: 0 / 0.5984 GB, free: 8.906 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001728/0.4958, allocations: 1.409 MB / 0.5998 GB, free: 7.461 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002581/0.4984, allocations: 0.5776 MB / 0.6004 GB, free: 6.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009933/0.5084, allocations: 6.435 MB / 0.6066 GB, free: 476 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002603/0.511, allocations: 2.514 MB / 0.6091 GB, free: 13.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001816/0.5128, allocations: 0.5219 MB / 0.6096 GB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005397/0.5134, allocations: 155.4 kB / 0.6098 GB, free: 13.26 MB / 382.1 MB Notification: Performance of SimCode: time 1.613e-06/0.5134, allocations: 0 / 0.6098 GB, free: 13.26 MB / 382.1 MB Notification: Performance of Templates: time 0.05517/0.5686, allocations: 29.88 MB / 0.6389 GB, free: 15.75 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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)