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.001185/0.001185, allocations: 112.5 kB / 15.73 MB, free: 76 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.259/1.259, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001318/0.001318, allocations: 188.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0332/0.0332, allocations: 8.798 MB / 348.6 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 75.88 kB / 463.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08168/0.08301, allocations: 51.57 MB / 0.5034 GB, free: 9.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01476/0.09779, allocations: 15.82 MB / 0.5189 GB, free: 9.566 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008889/0.1067, allocations: 5.27 MB / 0.524 GB, free: 4.281 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002121/0.1089, allocations: 91.69 kB / 0.5241 GB, free: 4.191 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00314/0.112, allocations: 1.215 MB / 0.5253 GB, free: 2.969 MB / 366.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.004393/0.1165, allocations: 1.549 MB / 0.5268 GB, free: 1.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002396/0.1189, allocations: 0.9755 MB / 0.5277 GB, free: 448 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1695/0.2884, allocations: 4.681 MB / 0.5323 GB, free: 6.234 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003564/0.292, allocations: 3.522 MB / 0.5358 GB, free: 5.625 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002617/0.2946, allocations: 2.106 MB / 0.5378 GB, free: 5.355 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003311/0.298, allocations: 2.439 MB / 0.5402 GB, free: 4.926 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008745/0.2989, allocations: 0.5708 MB / 0.5408 GB, free: 4.926 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001611/0.3005, allocations: 0.7814 MB / 0.5415 GB, free: 4.926 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00105/0.3015, allocations: 1.292 MB / 0.5428 GB, free: 4.777 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002795/0.3043, allocations: 2.44 MB / 0.5452 GB, free: 4.176 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007088/0.3114, allocations: 7.522 MB / 0.5525 GB, free: 3.012 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3115, allocations: 0 / 0.5525 GB, free: 3.012 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3115, allocations: 3.562 kB / 0.5525 GB, free: 3.012 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001457/0.3116, allocations: 4 kB / 0.5525 GB, free: 3.008 MB / 366.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.01154/0.3232, allocations: 5.085 MB / 0.5575 GB, free: 15.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.3232, allocations: 8.906 kB / 0.5575 GB, free: 15.78 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004918/0.3281, allocations: 0.9669 MB / 0.5584 GB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0046/0.3328, allocations: 2.856 MB / 0.5612 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001713/0.3329, allocations: 280.5 kB / 0.5615 GB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004715/0.3334, allocations: 368.8 kB / 0.5618 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007058/0.3405, allocations: 4.775 MB / 0.5665 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.946e-05/0.3406, allocations: 7.094 kB / 0.5665 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003321/0.3409, allocations: 147.9 kB / 0.5667 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.971e-05/0.341, allocations: 154 kB / 0.5668 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0059/0.3469, allocations: 4.054 MB / 0.5708 GB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01994/0.3669, allocations: 15.6 MB / 0.586 GB, free: 7.105 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006179/0.3731, allocations: 6.93 MB / 0.5928 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002259/0.3754, allocations: 1.51 MB / 0.5942 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006072/0.3814, allocations: 4.158 MB / 0.5983 GB, free: 9.586 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.3815, allocations: 47.86 kB / 0.5983 GB, free: 9.527 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 2.415e-06/0.3815, allocations: 0 / 0.5983 GB, free: 9.527 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01165/0.3932, allocations: 6.419 MB / 0.6046 GB, free: 2.988 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.545e-05/0.3932, allocations: 72.66 kB / 0.6047 GB, free: 2.906 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003449/0.3967, allocations: 2.191 MB / 0.6068 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.3968, allocations: 49.7 kB / 0.6069 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001087/0.3979, allocations: 1.773 MB / 0.6086 GB, free: 14.84 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003814/0.3983, allocations: 0.5779 MB / 0.6092 GB, free: 14.27 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005849/0.3989, allocations: 416 kB / 0.6096 GB, free: 13.86 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.845e-05/0.399, allocations: 304.9 kB / 0.6098 GB, free: 13.56 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.4002, allocations: 0.8318 MB / 0.6107 GB, free: 12.73 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001696/0.4019, allocations: 1.577 MB / 0.6122 GB, free: 10.8 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003098/0.405, allocations: 2.597 MB / 0.6147 GB, free: 7.973 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.618e-06/0.4051, allocations: 4 kB / 0.6147 GB, free: 7.969 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004581/0.4097, allocations: 3.043 MB / 0.6177 GB, free: 5.043 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.4097, allocations: 19.94 kB / 0.6177 GB, free: 5.023 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.58e-05/0.4097, allocations: 28.06 kB / 0.6178 GB, free: 4.996 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007399/0.4105, allocations: 293.8 kB / 0.618 GB, free: 4.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001676/0.4122, allocations: 0.4949 MB / 0.6185 GB, free: 4.242 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00451/0.4167, allocations: 4.877 MB / 0.6233 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001691/0.4184, allocations: 107.9 kB / 0.6234 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001492/0.4185, allocations: 104 kB / 0.6235 GB, free: 14.91 MB / 446.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.001809/0.4204, allocations: 1.131 MB / 0.6246 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003435/0.4207, allocations: 250.5 kB / 0.6248 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003761/0.4245, allocations: 2.397 MB / 0.6272 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.4245, allocations: 20 kB / 0.6272 GB, free: 11.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.4245, allocations: 4 kB / 0.6272 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.4245, allocations: 7.969 kB / 0.6272 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007888/0.4324, allocations: 5.695 MB / 0.6328 GB, free: 5.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.4325, allocations: 15.48 kB / 0.6328 GB, free: 5.309 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001143/0.4336, allocations: 270.8 kB / 0.633 GB, free: 5.055 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007782/0.4344, allocations: 319.2 kB / 0.6333 GB, free: 4.738 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.303e-05/0.4345, allocations: 31.98 kB / 0.6334 GB, free: 4.707 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006227/0.4407, allocations: 7.021 MB / 0.6402 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4408, allocations: 4.062 kB / 0.6402 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004925/0.4457, allocations: 3.502 MB / 0.6437 GB, free: 9.742 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009845/0.4467, allocations: 0.4916 MB / 0.6441 GB, free: 9.23 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002909/0.447, allocations: 35.98 kB / 0.6442 GB, free: 9.195 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009899/0.448, allocations: 63.91 kB / 0.6442 GB, free: 9.133 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/0.4482, allocations: 117.1 kB / 0.6443 GB, free: 9.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.713e-05/0.4483, allocations: 47.98 kB / 0.6444 GB, free: 8.973 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001998/0.4503, allocations: 1.468 MB / 0.6458 GB, free: 7.488 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4503, allocations: 3.469 kB / 0.6458 GB, free: 7.488 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002039/0.4524, allocations: 0.6562 MB / 0.6465 GB, free: 6.832 MB / 462.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.0002692/0.4527, allocations: 161.2 kB / 0.6466 GB, free: 6.68 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003433/0.4561, allocations: 2.478 MB / 0.649 GB, free: 4.238 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.4561, allocations: 0 / 0.649 GB, free: 4.238 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001884/0.458, allocations: 1.408 MB / 0.6504 GB, free: 2.801 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002177/0.4602, allocations: 0.5775 MB / 0.651 GB, free: 2.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009804/0.47, allocations: 6.55 MB / 0.6574 GB, free: 11.64 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002181/0.4722, allocations: 2.522 MB / 0.6598 GB, free: 9.098 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001534/0.4738, allocations: 0.5196 MB / 0.6603 GB, free: 8.574 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004181/0.4742, allocations: 155.4 kB / 0.6605 GB, free: 8.426 MB / 478.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4742, allocations: 0 / 0.6605 GB, free: 8.426 MB / 478.1 MB Notification: Performance of Templates: time 0.05076/0.525, allocations: 30.61 MB / 0.6904 GB, free: 10.18 MB / 0.4981 GB 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)