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.001605/0.001605, allocations: 108 kB / 15.61 MB, free: 152 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.44/1.44, allocations: 222.9 MB / 239.2 MB, free: 4.586 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.001641/0.001641, allocations: 184.5 kB / 289.5 MB, free: 2.309 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03385/0.03385, allocations: 8.79 MB / 348.5 MB, free: 4.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 80.17 kB / 411.1 MB, free: 42.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09862/0.1003, allocations: 51.57 MB / 462.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01871/0.119, allocations: 15.8 MB / 478.4 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01013/0.1292, allocations: 5.29 MB / 483.7 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003527/0.1328, allocations: 91.69 kB / 483.8 MB, free: 9.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004906/0.1377, allocations: 1.215 MB / 485 MB, free: 7.848 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.006512/0.1443, allocations: 1.545 MB / 486.6 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003503/0.1479, allocations: 0.9645 MB / 487.6 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007531/0.1554, allocations: 4.682 MB / 492.2 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007681/0.1631, allocations: 3.509 MB / 495.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004581/0.1677, allocations: 2.103 MB / 497.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004738/0.1725, allocations: 2.428 MB / 0.4885 GB, free: 8.508 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001993/0.1745, allocations: 0.5703 MB / 0.4891 GB, free: 7.938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003057/0.1776, allocations: 0.7966 MB / 0.4899 GB, free: 7.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002274/0.1799, allocations: 1.289 MB / 0.4911 GB, free: 5.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006671/0.1866, allocations: 2.443 MB / 0.4935 GB, free: 3.395 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01125/0.1979, allocations: 7.45 MB / 0.5008 GB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.1979, allocations: 4 kB / 0.5008 GB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.198, allocations: 0 / 0.5008 GB, free: 11.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002714/0.1982, allocations: 0 / 0.5008 GB, free: 11.92 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.01591/0.2141, allocations: 4.974 MB / 0.5057 GB, free: 6.871 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.2142, allocations: 8.031 kB / 0.5057 GB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006075/0.2203, allocations: 0.9562 MB / 0.5066 GB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008062/0.2284, allocations: 2.758 MB / 0.5093 GB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003093/0.2287, allocations: 275.8 kB / 0.5096 GB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001397/0.2302, allocations: 368 kB / 0.5099 GB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01227/0.2424, allocations: 4.776 MB / 0.5146 GB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001538/0.2426, allocations: 0 / 0.5146 GB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009628/0.2436, allocations: 156 kB / 0.5147 GB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001771/0.2438, allocations: 159.3 kB / 0.5149 GB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009166/0.253, allocations: 4.05 MB / 0.5188 GB, free: 9.277 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2508/0.5038, allocations: 15.73 MB / 0.5342 GB, free: 57.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005704/0.5096, allocations: 6.92 MB / 0.541 GB, free: 51.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002838/0.5124, allocations: 1.512 MB / 0.5424 GB, free: 51.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007754/0.5202, allocations: 4.168 MB / 0.5465 GB, free: 51.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.737e-05/0.5203, allocations: 46.53 kB / 0.5465 GB, free: 51.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 6.553e-06/0.5203, allocations: 3.938 kB / 0.5466 GB, free: 51.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.0137/0.534, allocations: 6.373 MB / 0.5528 GB, free: 49.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/0.5341, allocations: 70.91 kB / 0.5528 GB, free: 48.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004998/0.5391, allocations: 2.189 MB / 0.555 GB, free: 48.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004178/0.5396, allocations: 49.67 kB / 0.555 GB, free: 48.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009725/0.5406, allocations: 1.725 MB / 0.5567 GB, free: 46.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004345/0.541, allocations: 0.546 MB / 0.5572 GB, free: 46.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005191/0.5416, allocations: 414.7 kB / 0.5576 GB, free: 46.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.91e-05/0.5416, allocations: 301.1 kB / 0.5579 GB, free: 45.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001202/0.5428, allocations: 0.8298 MB / 0.5587 GB, free: 45.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001609/0.5445, allocations: 1.591 MB / 0.5603 GB, free: 43.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003045/0.5475, allocations: 2.587 MB / 0.5628 GB, free: 41.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.789e-05/0.5475, allocations: 8.562 kB / 0.5628 GB, free: 41.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004802/0.5524, allocations: 3.031 MB / 0.5658 GB, free: 40.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.035e-05/0.5524, allocations: 19.81 kB / 0.5658 GB, free: 40.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.758e-05/0.5525, allocations: 24.45 kB / 0.5658 GB, free: 40.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007924/0.5533, allocations: 304.4 kB / 0.5661 GB, free: 40.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001767/0.555, allocations: 0.5007 MB / 0.5666 GB, free: 40 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003824/0.5589, allocations: 4.879 MB / 0.5714 GB, free: 35.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002229/0.5611, allocations: 99.08 kB / 0.5715 GB, free: 35.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002228/0.5614, allocations: 98.66 kB / 0.5716 GB, free: 35.61 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.002222/0.5636, allocations: 1.145 MB / 0.5727 GB, free: 34.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006005/0.5642, allocations: 237.1 kB / 0.5729 GB, free: 34.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003628/0.5678, allocations: 2.399 MB / 0.5753 GB, free: 33.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/0.5679, allocations: 21.41 kB / 0.5753 GB, free: 33.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.5679, allocations: 3.438 kB / 0.5753 GB, free: 33.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.5679, allocations: 7.969 kB / 0.5753 GB, free: 33.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008153/0.5761, allocations: 5.701 MB / 0.5808 GB, free: 27.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.5761, allocations: 4 kB / 0.5809 GB, free: 27.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.5772, allocations: 275.8 kB / 0.5811 GB, free: 27.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007364/0.578, allocations: 318 kB / 0.5814 GB, free: 27.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.427e-05/0.5781, allocations: 35.98 kB / 0.5815 GB, free: 27.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004886/0.583, allocations: 7.028 MB / 0.5883 GB, free: 19.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.583, allocations: 0 / 0.5883 GB, free: 19.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004736/0.5877, allocations: 3.49 MB / 0.5917 GB, free: 16.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001218/0.589, allocations: 490.2 kB / 0.5922 GB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003681/0.5894, allocations: 32.19 kB / 0.5922 GB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/0.5904, allocations: 63.95 kB / 0.5923 GB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000253/0.5907, allocations: 125 kB / 0.5924 GB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.465e-05/0.5908, allocations: 44 kB / 0.5924 GB, free: 15.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001756/0.5925, allocations: 1.474 MB / 0.5939 GB, free: 14.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5926, allocations: 0 / 0.5939 GB, free: 14.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002406/0.595, allocations: 0.6523 MB / 0.5945 GB, free: 13.47 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.0003163/0.5953, allocations: 171.7 kB / 0.5947 GB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005449/0.6008, allocations: 3.037 MB / 0.5977 GB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.6008, allocations: 0 / 0.5977 GB, free: 10.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001785/0.6026, allocations: 1.408 MB / 0.599 GB, free: 8.801 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003441/0.606, allocations: 0.5706 MB / 0.5996 GB, free: 8.254 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01083/0.6169, allocations: 6.523 MB / 0.606 GB, free: 1.691 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002043/0.619, allocations: 2.519 MB / 0.6084 GB, free: 15.14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002072/0.6211, allocations: 0.5157 MB / 0.6089 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004118/0.6215, allocations: 155.4 kB / 0.6091 GB, free: 14.47 MB / 382.1 MB Notification: Performance of SimCode: time 1.693e-06/0.6215, allocations: 4 kB / 0.6091 GB, free: 14.47 MB / 382.1 MB Notification: Performance of Templates: time 0.06001/0.6815, allocations: 31.96 MB / 0.6403 GB, free: 14.84 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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)