Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, 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.539/1.539, allocations: 222.9 MB / 239.2 MB, free: 4.613 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.001471/0.001471, allocations: 184.5 kB / 289.5 MB, free: 2.332 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03431/0.03431, allocations: 8.792 MB / 348.5 MB, free: 4.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 77.69 kB / 411.1 MB, free: 42.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1043, allocations: 51.56 MB / 462.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01676/0.1211, allocations: 15.81 MB / 478.4 MB, free: 14.54 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01058/0.1318, allocations: 5.282 MB / 483.7 MB, free: 9.234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002989/0.1348, allocations: 91.69 kB / 483.8 MB, free: 9.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003612/0.1384, allocations: 1.211 MB / 485 MB, free: 7.926 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.005755/0.1443, allocations: 1.557 MB / 486.6 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002694/0.147, allocations: 0.9621 MB / 487.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007682/0.1547, allocations: 4.672 MB / 492.2 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0053/0.16, allocations: 3.524 MB / 495.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004079/0.1641, allocations: 2.099 MB / 497.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004463/0.1686, allocations: 2.432 MB / 0.4885 GB, free: 8.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00268/0.1713, allocations: 0.5742 MB / 0.4891 GB, free: 7.996 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004116/0.1755, allocations: 0.7888 MB / 0.4899 GB, free: 7.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002356/0.1779, allocations: 1.297 MB / 0.4911 GB, free: 5.906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004605/0.1825, allocations: 2.439 MB / 0.4935 GB, free: 3.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008128/0.1906, allocations: 7.447 MB / 0.5008 GB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.1907, allocations: 0 / 0.5008 GB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1907, allocations: 0 / 0.5008 GB, free: 11.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001625/0.1908, allocations: 0 / 0.5008 GB, free: 11.98 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.01316/0.204, allocations: 4.974 MB / 0.5057 GB, free: 6.941 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.2041, allocations: 12.03 kB / 0.5057 GB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00513/0.2092, allocations: 0.9523 MB / 0.5066 GB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006624/0.2159, allocations: 2.758 MB / 0.5093 GB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003377/0.2162, allocations: 275.8 kB / 0.5096 GB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001179/0.2174, allocations: 376 kB / 0.5099 GB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01047/0.2279, allocations: 4.772 MB / 0.5146 GB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.231e-05/0.228, allocations: 7.906 kB / 0.5146 GB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003926/0.2284, allocations: 152 kB / 0.5147 GB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001509/0.2286, allocations: 155.3 kB / 0.5149 GB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007736/0.2363, allocations: 4.046 MB / 0.5188 GB, free: 9.348 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.229/0.4654, allocations: 15.73 MB / 0.5342 GB, free: 56.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005697/0.4712, allocations: 6.928 MB / 0.541 GB, free: 51.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002619/0.4738, allocations: 1.514 MB / 0.5424 GB, free: 51.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006978/0.4808, allocations: 4.171 MB / 0.5465 GB, free: 50.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.4809, allocations: 50.53 kB / 0.5466 GB, free: 50.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.978e-06/0.4809, allocations: 0 / 0.5466 GB, free: 50.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.0118/0.4927, allocations: 6.371 MB / 0.5528 GB, free: 48.28 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.4928, allocations: 68.19 kB / 0.5528 GB, free: 48.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003372/0.4962, allocations: 2.185 MB / 0.555 GB, free: 47.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.4963, allocations: 57.55 kB / 0.555 GB, free: 47.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008574/0.4972, allocations: 1.724 MB / 0.5567 GB, free: 45.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003472/0.4975, allocations: 0.5509 MB / 0.5573 GB, free: 45.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005133/0.498, allocations: 405.8 kB / 0.5576 GB, free: 45.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.951e-05/0.4981, allocations: 305.1 kB / 0.5579 GB, free: 44.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.4992, allocations: 0.8233 MB / 0.5587 GB, free: 44.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001372/0.5006, allocations: 1.594 MB / 0.5603 GB, free: 43.1 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002749/0.5033, allocations: 2.59 MB / 0.5628 GB, free: 41.13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.11e-05/0.5033, allocations: 3.938 kB / 0.5628 GB, free: 41.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004833/0.5082, allocations: 3.038 MB / 0.5658 GB, free: 39.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.717e-05/0.5082, allocations: 15.62 kB / 0.5658 GB, free: 39.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.269e-05/0.5083, allocations: 27.56 kB / 0.5658 GB, free: 39.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007887/0.5091, allocations: 301.7 kB / 0.5661 GB, free: 39.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001696/0.5108, allocations: 0.4984 MB / 0.5666 GB, free: 39.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004822/0.5156, allocations: 4.87 MB / 0.5714 GB, free: 34.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002937/0.5186, allocations: 110.9 kB / 0.5715 GB, free: 34.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003064/0.5189, allocations: 101.5 kB / 0.5716 GB, free: 34.79 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.002808/0.5217, allocations: 1.138 MB / 0.5727 GB, free: 34.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006148/0.5224, allocations: 235 kB / 0.5729 GB, free: 33.9 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003547/0.5259, allocations: 2.396 MB / 0.5752 GB, free: 32.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.526, allocations: 25.69 kB / 0.5753 GB, free: 32.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.526, allocations: 7.438 kB / 0.5753 GB, free: 32.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.526, allocations: 7.969 kB / 0.5753 GB, free: 32.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008302/0.5343, allocations: 5.708 MB / 0.5809 GB, free: 27.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.5343, allocations: 0 / 0.5809 GB, free: 27.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/0.5354, allocations: 267.7 kB / 0.5811 GB, free: 26.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007146/0.5361, allocations: 323.5 kB / 0.5814 GB, free: 26.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.431e-05/0.5362, allocations: 35.98 kB / 0.5814 GB, free: 26.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004773/0.541, allocations: 7.024 MB / 0.5883 GB, free: 19.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.541, allocations: 8.016 kB / 0.5883 GB, free: 19.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004407/0.5455, allocations: 3.482 MB / 0.5917 GB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0011/0.5466, allocations: 490.2 kB / 0.5922 GB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002812/0.5469, allocations: 33.08 kB / 0.5922 GB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009969/0.5479, allocations: 67.95 kB / 0.5923 GB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003079/0.5482, allocations: 125 kB / 0.5924 GB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.682e-05/0.5483, allocations: 36 kB / 0.5924 GB, free: 14.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001835/0.5501, allocations: 1.476 MB / 0.5939 GB, free: 13.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5501, allocations: 6.844 kB / 0.5939 GB, free: 13.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002283/0.5524, allocations: 0.6523 MB / 0.5945 GB, free: 12.58 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.0003161/0.5528, allocations: 168.2 kB / 0.5947 GB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005256/0.558, allocations: 3.043 MB / 0.5977 GB, free: 9.352 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.5581, allocations: 0 / 0.5977 GB, free: 9.352 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001639/0.5597, allocations: 1.406 MB / 0.599 GB, free: 7.906 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002477/0.5622, allocations: 0.5739 MB / 0.5996 GB, free: 7.352 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009541/0.5717, allocations: 6.518 MB / 0.606 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002064/0.5738, allocations: 2.517 MB / 0.6084 GB, free: 14.26 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002055/0.5759, allocations: 0.5196 MB / 0.6089 GB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004422/0.5764, allocations: 155.4 kB / 0.6091 GB, free: 13.59 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5764, allocations: 0 / 0.6091 GB, free: 13.59 MB / 382.1 MB Notification: Performance of Templates: time 0.06244/0.6388, allocations: 31.95 MB / 0.6403 GB, free: 13.95 MB / 414.1 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)