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.001479/0.001479, allocations: 104.1 kB / 16.35 MB, free: 5.828 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.456/1.456, allocations: 222.9 MB / 240 MB, free: 4.523 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.001836/0.001836, allocations: 196.3 kB / 290.3 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06377/0.06377, allocations: 8.8 MB / 349.3 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 76.98 kB / 412.5 MB, free: 41.66 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09251/0.09431, allocations: 51.56 MB / 464.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01857/0.1129, allocations: 15.81 MB / 479.9 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009948/0.1229, allocations: 5.278 MB / 485.2 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002643/0.1256, allocations: 95.69 kB / 485.3 MB, free: 8.258 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003661/0.1293, allocations: 1.211 MB / 486.5 MB, free: 7.039 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.005546/0.1349, allocations: 1.552 MB / 488 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002679/0.1376, allocations: 0.9662 MB / 489 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00732/0.1449, allocations: 4.706 MB / 493.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004771/0.1497, allocations: 3.517 MB / 497.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003395/0.1531, allocations: 2.106 MB / 499.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003669/0.1568, allocations: 2.44 MB / 0.49 GB, free: 7.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009352/0.1578, allocations: 0.5703 MB / 0.4906 GB, free: 7.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001809/0.1596, allocations: 0.781 MB / 0.4913 GB, free: 6.289 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00115/0.1607, allocations: 1.293 MB / 0.4926 GB, free: 4.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003111/0.1639, allocations: 2.443 MB / 0.495 GB, free: 2.539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008078/0.172, allocations: 7.501 MB / 0.5023 GB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.172, allocations: 0 / 0.5023 GB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.172, allocations: 0 / 0.5023 GB, free: 11.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002279/0.1722, allocations: 4 kB / 0.5023 GB, free: 11.01 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.0144/0.1867, allocations: 4.97 MB / 0.5072 GB, free: 5.969 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.1867, allocations: 12.03 kB / 0.5072 GB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00534/0.1921, allocations: 0.9523 MB / 0.5081 GB, free: 5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006937/0.199, allocations: 2.828 MB / 0.5109 GB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003378/0.1994, allocations: 275.8 kB / 0.5111 GB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001153/0.2006, allocations: 368 kB / 0.5115 GB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01012/0.2107, allocations: 4.772 MB / 0.5161 GB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.263e-05/0.2108, allocations: 7.938 kB / 0.5161 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003763/0.2112, allocations: 156 kB / 0.5163 GB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001557/0.2114, allocations: 151.4 kB / 0.5164 GB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008351/0.2197, allocations: 4.054 MB / 0.5204 GB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2062/0.4259, allocations: 15.54 MB / 0.5356 GB, free: 55.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006259/0.4323, allocations: 6.92 MB / 0.5423 GB, free: 50.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002904/0.4352, allocations: 1.512 MB / 0.5438 GB, free: 50.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006934/0.4421, allocations: 4.16 MB / 0.5479 GB, free: 50.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.4422, allocations: 45 kB / 0.5479 GB, free: 50 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.356e-06/0.4422, allocations: 2.438 kB / 0.5479 GB, free: 50 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.0115/0.4537, allocations: 6.376 MB / 0.5541 GB, free: 47.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.4538, allocations: 71.78 kB / 0.5542 GB, free: 47.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003101/0.4569, allocations: 2.179 MB / 0.5563 GB, free: 46.65 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001466/0.457, allocations: 53.61 kB / 0.5564 GB, free: 46.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007916/0.4578, allocations: 1.734 MB / 0.5581 GB, free: 45.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003444/0.4582, allocations: 0.5428 MB / 0.5586 GB, free: 44.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005466/0.4588, allocations: 413.5 kB / 0.559 GB, free: 44.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.32e-05/0.4588, allocations: 301.1 kB / 0.5593 GB, free: 44.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001058/0.4599, allocations: 0.8227 MB / 0.5601 GB, free: 43.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001331/0.4612, allocations: 1.588 MB / 0.5616 GB, free: 42.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002513/0.4637, allocations: 2.592 MB / 0.5642 GB, free: 40.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-05/0.4638, allocations: 9.953 kB / 0.5642 GB, free: 40.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004206/0.468, allocations: 3.037 MB / 0.5671 GB, free: 38.78 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.712e-05/0.468, allocations: 15.88 kB / 0.5672 GB, free: 38.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.719e-05/0.4681, allocations: 26.23 kB / 0.5672 GB, free: 38.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007193/0.4688, allocations: 302.9 kB / 0.5675 GB, free: 38.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/0.4704, allocations: 0.5006 MB / 0.568 GB, free: 38.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003498/0.4739, allocations: 4.871 MB / 0.5727 GB, free: 34.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001729/0.4756, allocations: 98.06 kB / 0.5728 GB, free: 34.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/0.4758, allocations: 97.22 kB / 0.5729 GB, free: 34.11 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.002062/0.4779, allocations: 1.141 MB / 0.574 GB, free: 33.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005185/0.4784, allocations: 235.4 kB / 0.5742 GB, free: 33.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004364/0.4828, allocations: 2.4 MB / 0.5766 GB, free: 31.72 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.4828, allocations: 22.38 kB / 0.5766 GB, free: 31.72 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.4828, allocations: 3.5 kB / 0.5766 GB, free: 31.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.4828, allocations: 7.969 kB / 0.5766 GB, free: 31.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007845/0.4907, allocations: 5.702 MB / 0.5822 GB, free: 26.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.4907, allocations: 0 / 0.5822 GB, free: 26.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/0.4918, allocations: 275.8 kB / 0.5825 GB, free: 25.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006987/0.4925, allocations: 309 kB / 0.5827 GB, free: 25.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.033e-05/0.4926, allocations: 39.98 kB / 0.5828 GB, free: 25.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005103/0.4978, allocations: 7.021 MB / 0.5896 GB, free: 18.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.4978, allocations: 3.984 kB / 0.5896 GB, free: 18.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004398/0.5022, allocations: 3.491 MB / 0.5931 GB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/0.5034, allocations: 490.2 kB / 0.5935 GB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002655/0.5037, allocations: 32.52 kB / 0.5936 GB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009685/0.5046, allocations: 67.95 kB / 0.5936 GB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002391/0.5049, allocations: 113.1 kB / 0.5937 GB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.287e-05/0.505, allocations: 48.73 kB / 0.5938 GB, free: 13.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001816/0.5068, allocations: 1.476 MB / 0.5952 GB, free: 12.24 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5068, allocations: 0 / 0.5952 GB, free: 12.24 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002436/0.5093, 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.0003327/0.5096, allocations: 173.4 kB / 0.596 GB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003254/0.5129, allocations: 2.466 MB / 0.5984 GB, free: 8.914 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/0.5129, allocations: 2 kB / 0.5984 GB, free: 8.914 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001651/0.5145, allocations: 1.408 MB / 0.5998 GB, free: 7.469 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002366/0.5169, allocations: 0.5752 MB / 0.6004 GB, free: 6.918 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009331/0.5263, allocations: 6.435 MB / 0.6066 GB, free: 484 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00219/0.5285, allocations: 2.518 MB / 0.6091 GB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00175/0.5303, allocations: 0.5222 MB / 0.6096 GB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004349/0.5307, allocations: 155.4 kB / 0.6098 GB, free: 13.26 MB / 382.1 MB Notification: Performance of SimCode: time 2.264e-06/0.5307, allocations: 0 / 0.6098 GB, free: 13.26 MB / 382.1 MB Notification: Performance of Templates: time 0.05426/0.585, allocations: 29.87 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 cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)