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.008313/0.008313, allocations: 100.5 kB / 15.73 MB, free: 6.043 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.492/1.492, allocations: 222.9 MB / 239.4 MB, free: 4.566 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.001708/0.001707, allocations: 188.5 kB / 289.7 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0651/0.0651, allocations: 8.784 MB / 348.6 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00175/0.001751, allocations: 83.88 kB / 463.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1252, allocations: 51.56 MB / 0.5034 GB, free: 9.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01854/0.1437, allocations: 15.81 MB / 0.5189 GB, free: 9.605 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01308/0.1569, allocations: 5.282 MB / 0.524 GB, free: 4.309 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004328/0.1613, allocations: 91.69 kB / 0.5241 GB, free: 4.219 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004892/0.1662, allocations: 1.208 MB / 0.5253 GB, free: 3.004 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.007079/0.1734, allocations: 1.549 MB / 0.5268 GB, free: 1.445 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003556/0.1769, allocations: 0.9778 MB / 0.5278 GB, free: 480 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3066/0.4835, allocations: 4.684 MB / 0.5323 GB, free: 6.176 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00636/0.4899, allocations: 3.523 MB / 0.5358 GB, free: 5.578 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004494/0.4944, allocations: 2.115 MB / 0.5378 GB, free: 5.309 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006695/0.5012, allocations: 2.439 MB / 0.5402 GB, free: 4.879 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002572/0.5038, allocations: 0.5725 MB / 0.5408 GB, free: 4.879 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005345/0.5091, allocations: 0.7835 MB / 0.5415 GB, free: 4.879 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003853/0.513, allocations: 1.288 MB / 0.5428 GB, free: 4.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007221/0.5203, allocations: 2.441 MB / 0.5452 GB, free: 4.129 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01613/0.5364, allocations: 7.506 MB / 0.5525 GB, free: 3.066 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.5365, allocations: 1.188 kB / 0.5525 GB, free: 3.066 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5365, allocations: 0 / 0.5525 GB, free: 3.066 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002833/0.5368, allocations: 0 / 0.5525 GB, free: 3.066 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.0184/0.5552, allocations: 4.995 MB / 0.5574 GB, free: 15.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.5552, allocations: 9.25 kB / 0.5574 GB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006203/0.5614, allocations: 0.9571 MB / 0.5583 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007112/0.5686, allocations: 2.83 MB / 0.5611 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000248/0.5689, allocations: 277.3 kB / 0.5614 GB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001105/0.57, allocations: 365.6 kB / 0.5617 GB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/0.5801, allocations: 4.778 MB / 0.5664 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.045e-05/0.5802, allocations: 7.016 kB / 0.5664 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003759/0.5805, allocations: 148.2 kB / 0.5665 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001346/0.5807, allocations: 156.4 kB / 0.5667 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007734/0.5884, allocations: 4.044 MB / 0.5706 GB, free: 7.102 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02737/0.6158, allocations: 15.56 MB / 0.5858 GB, free: 7.359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00738/0.6232, allocations: 6.926 MB / 0.5926 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003072/0.6264, allocations: 1.499 MB / 0.594 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009023/0.6354, allocations: 4.167 MB / 0.5981 GB, free: 9.832 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.811e-05/0.6355, allocations: 47.88 kB / 0.5982 GB, free: 9.773 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.298e-06/0.6355, allocations: 0 / 0.5982 GB, free: 9.773 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01412/0.6497, allocations: 6.366 MB / 0.6044 GB, free: 3.281 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.6497, allocations: 72.66 kB / 0.6045 GB, free: 3.199 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003858/0.6536, allocations: 2.179 MB / 0.6066 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001429/0.6538, allocations: 49.7 kB / 0.6066 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001389/0.6552, allocations: 1.736 MB / 0.6083 GB, free: 15.19 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000552/0.6557, allocations: 0.545 MB / 0.6089 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006843/0.6564, allocations: 403.8 kB / 0.6092 GB, free: 14.24 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.6565, allocations: 313.1 kB / 0.6095 GB, free: 13.93 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001379/0.6579, allocations: 0.8242 MB / 0.6103 GB, free: 13.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00218/0.6601, allocations: 1.584 MB / 0.6119 GB, free: 11.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00338/0.6635, allocations: 2.585 MB / 0.6144 GB, free: 8.352 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.251e-05/0.6635, allocations: 12 kB / 0.6144 GB, free: 8.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.00554/0.6691, allocations: 3.032 MB / 0.6174 GB, free: 5.426 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.816e-05/0.6691, allocations: 16 kB / 0.6174 GB, free: 5.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.042e-05/0.6692, allocations: 28.69 kB / 0.6174 GB, free: 5.383 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009445/0.6701, allocations: 306 kB / 0.6177 GB, free: 5.078 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001804/0.6719, allocations: 0.4953 MB / 0.6182 GB, free: 4.613 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006159/0.6781, allocations: 4.87 MB / 0.623 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003111/0.6813, allocations: 107.5 kB / 0.6231 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003493/0.6816, allocations: 100 kB / 0.6232 GB, free: 15.3 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.002836/0.6845, allocations: 1.129 MB / 0.6243 GB, free: 14.19 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006643/0.6852, allocations: 233.2 kB / 0.6245 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004335/0.6895, allocations: 2.403 MB / 0.6268 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.601e-05/0.6895, allocations: 16 kB / 0.6268 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.6895, allocations: 11.38 kB / 0.6269 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.737e-05/0.6896, allocations: 7.969 kB / 0.6269 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.7009, allocations: 5.696 MB / 0.6324 GB, free: 5.715 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.701, allocations: 3.844 kB / 0.6324 GB, free: 5.715 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001204/0.7022, allocations: 270.5 kB / 0.6327 GB, free: 5.461 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008505/0.7031, allocations: 317.7 kB / 0.633 GB, free: 5.145 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001111/0.7032, allocations: 39.98 kB / 0.633 GB, free: 5.105 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007763/0.7109, allocations: 7.013 MB / 0.6399 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.711, allocations: 0 / 0.6399 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006289/0.7173, allocations: 3.486 MB / 0.6433 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00164/0.7189, allocations: 498.1 kB / 0.6438 GB, free: 9.648 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009222/0.7199, allocations: 36 kB / 0.6438 GB, free: 9.613 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001762/0.7216, allocations: 64.2 kB / 0.6439 GB, free: 9.551 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003426/0.722, allocations: 116.6 kB / 0.644 GB, free: 9.441 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/0.7221, allocations: 51.98 kB / 0.644 GB, free: 9.391 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00357/0.7257, allocations: 1.476 MB / 0.6455 GB, free: 7.898 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7257, allocations: 0 / 0.6455 GB, free: 7.898 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003636/0.7294, allocations: 0.6484 MB / 0.6461 GB, free: 7.25 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.0004457/0.7298, allocations: 169.3 kB / 0.6462 GB, free: 7.094 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00443/0.7343, allocations: 2.457 MB / 0.6486 GB, free: 4.672 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.321e-06/0.7343, allocations: 0.6875 kB / 0.6486 GB, free: 4.672 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002265/0.7366, allocations: 1.417 MB / 0.65 GB, free: 3.238 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003937/0.7405, allocations: 0.5762 MB / 0.6506 GB, free: 2.668 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0142/0.7547, allocations: 6.436 MB / 0.6569 GB, free: 12.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003953/0.7587, allocations: 2.523 MB / 0.6593 GB, free: 9.645 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002346/0.7611, allocations: 0.5118 MB / 0.6598 GB, free: 9.129 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000708/0.7618, allocations: 155.4 kB / 0.66 GB, free: 8.98 MB / 478.1 MB Notification: Performance of SimCode: time 1.573e-06/0.7618, allocations: 4 kB / 0.66 GB, free: 8.977 MB / 478.1 MB Notification: Performance of Templates: time 0.06145/0.8233, allocations: 30.61 MB / 0.6899 GB, free: 10.73 MB / 0.4981 GB 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)