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.005793/0.005793, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.436/1.436, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001784/0.001784, allocations: 192.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.03345/0.03345, allocations: 8.789 MB / 348.6 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 84.19 kB / 463.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1099, allocations: 51.56 MB / 0.5034 GB, free: 9.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01678/0.1267, allocations: 15.82 MB / 0.5189 GB, free: 9.574 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.1373, allocations: 5.266 MB / 0.524 GB, free: 4.293 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002662/0.14, allocations: 95.69 kB / 0.5241 GB, free: 4.199 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003078/0.1431, allocations: 1.219 MB / 0.5253 GB, free: 2.973 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.004361/0.1475, allocations: 1.545 MB / 0.5268 GB, free: 1.418 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002136/0.1496, allocations: 0.9703 MB / 0.5278 GB, free: 460 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2183/0.3679, allocations: 4.687 MB / 0.5323 GB, free: 6.168 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005339/0.3733, allocations: 3.521 MB / 0.5358 GB, free: 5.559 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003966/0.3773, allocations: 2.122 MB / 0.5378 GB, free: 5.285 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004671/0.382, allocations: 2.432 MB / 0.5402 GB, free: 4.859 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001654/0.3837, allocations: 0.5718 MB / 0.5408 GB, free: 4.859 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002616/0.3863, allocations: 0.7821 MB / 0.5415 GB, free: 4.859 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001569/0.3879, allocations: 1.292 MB / 0.5428 GB, free: 4.711 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004269/0.3922, allocations: 2.44 MB / 0.5452 GB, free: 4.109 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008987/0.4012, allocations: 7.499 MB / 0.5525 GB, free: 3.031 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.4013, allocations: 8.594 kB / 0.5525 GB, free: 3.027 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4013, allocations: 0 / 0.5525 GB, free: 3.027 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002377/0.4015, allocations: 0 / 0.5525 GB, free: 3.027 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.0144/0.4159, allocations: 4.996 MB / 0.5574 GB, free: 15.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.416, allocations: 9.156 kB / 0.5574 GB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005113/0.4211, allocations: 0.9575 MB / 0.5583 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005923/0.427, allocations: 2.83 MB / 0.5611 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002145/0.4273, allocations: 275.2 kB / 0.5614 GB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006907/0.428, allocations: 365.4 kB / 0.5617 GB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008612/0.4366, allocations: 4.779 MB / 0.5664 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.029e-05/0.4367, allocations: 6.984 kB / 0.5664 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003664/0.4371, allocations: 156.5 kB / 0.5665 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001625/0.4372, allocations: 152.7 kB / 0.5667 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007336/0.4446, allocations: 4.045 MB / 0.5706 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02962/0.4742, allocations: 15.56 MB / 0.5858 GB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006857/0.4811, allocations: 6.919 MB / 0.5926 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002469/0.4836, allocations: 1.506 MB / 0.5941 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007672/0.4913, allocations: 4.158 MB / 0.5981 GB, free: 9.887 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.4914, allocations: 47.88 kB / 0.5982 GB, free: 9.828 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.138e-06/0.4914, allocations: 0 / 0.5982 GB, free: 9.828 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01301/0.5044, allocations: 6.365 MB / 0.6044 GB, free: 3.332 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.5045, allocations: 68.72 kB / 0.6044 GB, free: 3.254 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004047/0.5085, allocations: 2.187 MB / 0.6066 GB, free: 1.039 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001525/0.5087, allocations: 53.7 kB / 0.6066 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001375/0.5101, allocations: 1.735 MB / 0.6083 GB, free: 15.23 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005333/0.5106, allocations: 0.5477 MB / 0.6089 GB, free: 14.69 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000718/0.5114, allocations: 407.8 kB / 0.6092 GB, free: 14.29 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.5115, allocations: 305.1 kB / 0.6095 GB, free: 13.98 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001355/0.5128, allocations: 0.8281 MB / 0.6103 GB, free: 13.15 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001942/0.5148, allocations: 1.584 MB / 0.6119 GB, free: 11.22 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003453/0.5183, allocations: 2.584 MB / 0.6144 GB, free: 8.398 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.819e-05/0.5183, allocations: 8 kB / 0.6144 GB, free: 8.391 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005127/0.5234, allocations: 3.04 MB / 0.6174 GB, free: 5.469 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.318e-05/0.5235, allocations: 16 kB / 0.6174 GB, free: 5.453 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.668e-05/0.5235, allocations: 27.94 kB / 0.6174 GB, free: 5.426 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008431/0.5244, allocations: 302.8 kB / 0.6177 GB, free: 5.125 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001795/0.5262, allocations: 0.495 MB / 0.6182 GB, free: 4.664 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004963/0.5311, allocations: 4.874 MB / 0.623 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002237/0.5334, allocations: 99.86 kB / 0.6231 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003101/0.5337, allocations: 107.6 kB / 0.6232 GB, free: 15.34 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.002943/0.5367, allocations: 1.13 MB / 0.6243 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007009/0.5374, allocations: 229.2 kB / 0.6245 GB, free: 14.01 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004557/0.542, allocations: 2.406 MB / 0.6268 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.588e-05/0.542, allocations: 16 kB / 0.6269 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.704e-05/0.542, allocations: 4 kB / 0.6269 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.862e-05/0.542, allocations: 7.969 kB / 0.6269 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01103/0.5531, allocations: 5.699 MB / 0.6324 GB, free: 5.762 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.5531, allocations: 0 / 0.6324 GB, free: 5.762 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.5543, allocations: 270.1 kB / 0.6327 GB, free: 5.512 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008588/0.5552, allocations: 321.8 kB / 0.633 GB, free: 5.191 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001355/0.5553, allocations: 39.98 kB / 0.633 GB, free: 5.152 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006966/0.5623, allocations: 7.012 MB / 0.6399 GB, free: 13.76 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.5624, allocations: 0 / 0.6399 GB, free: 13.76 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007104/0.5695, allocations: 3.486 MB / 0.6433 GB, free: 10.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001617/0.5711, allocations: 498.1 kB / 0.6438 GB, free: 9.691 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007856/0.5719, allocations: 32 kB / 0.6438 GB, free: 9.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00151/0.5735, allocations: 63.95 kB / 0.6438 GB, free: 9.598 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003188/0.5738, allocations: 117.1 kB / 0.644 GB, free: 9.484 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/0.5739, allocations: 51.64 kB / 0.644 GB, free: 9.438 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003091/0.577, allocations: 1.472 MB / 0.6454 GB, free: 7.949 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5771, allocations: 0 / 0.6454 GB, free: 7.949 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003152/0.5802, allocations: 0.6523 MB / 0.6461 GB, free: 7.297 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.000376/0.5806, allocations: 165.9 kB / 0.6462 GB, free: 7.145 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004286/0.5849, allocations: 2.466 MB / 0.6487 GB, free: 4.715 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.5849, allocations: 0 / 0.6487 GB, free: 4.715 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002263/0.5872, allocations: 1.416 MB / 0.65 GB, free: 3.273 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003621/0.5908, allocations: 0.5797 MB / 0.6506 GB, free: 2.699 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01424/0.6051, allocations: 6.434 MB / 0.6569 GB, free: 12.23 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003699/0.6088, allocations: 2.519 MB / 0.6593 GB, free: 9.684 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002177/0.611, allocations: 0.5196 MB / 0.6598 GB, free: 9.16 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006923/0.6117, allocations: 155.4 kB / 0.66 GB, free: 9.012 MB / 478.1 MB Notification: Performance of SimCode: time 8.12e-07/0.6118, allocations: 4 kB / 0.66 GB, free: 9.008 MB / 478.1 MB Notification: Performance of Templates: time 0.05978/0.6715, allocations: 30.61 MB / 0.6899 GB, free: 10.77 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)