Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 111.9 kB / 16.41 MB, free: 6.492 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.375/1.375, allocations: 222.9 MB / 240.1 MB, free: 4.559 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.001633/0.001633, allocations: 192.5 kB / 290.4 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03366/0.03366, allocations: 8.79 MB / 349.3 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 75.88 kB / 464.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1016, allocations: 51.57 MB / 0.5041 GB, free: 9.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01812/0.1198, allocations: 15.8 MB / 0.5195 GB, free: 9.633 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01116/0.131, allocations: 5.266 MB / 0.5246 GB, free: 4.352 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003329/0.1344, allocations: 95.62 kB / 0.5247 GB, free: 4.258 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004302/0.1387, allocations: 1.211 MB / 0.5259 GB, free: 3.039 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.005487/0.1443, allocations: 1.553 MB / 0.5274 GB, free: 1.477 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003106/0.1474, allocations: 0.9679 MB / 0.5284 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2194/0.3668, allocations: 4.689 MB / 0.533 GB, free: 6.207 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005374/0.3722, allocations: 3.531 MB / 0.5364 GB, free: 5.594 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003975/0.3763, allocations: 2.112 MB / 0.5385 GB, free: 5.324 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004949/0.3812, allocations: 2.442 MB / 0.5409 GB, free: 4.898 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002206/0.3835, allocations: 0.5703 MB / 0.5414 GB, free: 4.898 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003741/0.3872, allocations: 0.788 MB / 0.5422 GB, free: 4.895 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002724/0.39, allocations: 1.29 MB / 0.5434 GB, free: 4.746 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00739/0.3974, allocations: 2.44 MB / 0.5458 GB, free: 4.145 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01304/0.4105, allocations: 7.497 MB / 0.5531 GB, free: 3.055 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.965e-05/0.4105, allocations: 1.125 kB / 0.5531 GB, free: 3.055 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.4106, allocations: 0 / 0.5531 GB, free: 3.055 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002847/0.4108, allocations: 0 / 0.5531 GB, free: 3.055 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.01752/0.4284, allocations: 4.997 MB / 0.558 GB, free: 15.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.4284, allocations: 9.875 kB / 0.558 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006424/0.4349, allocations: 0.9526 MB / 0.559 GB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007612/0.4425, allocations: 2.83 MB / 0.5617 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003057/0.4429, allocations: 281 kB / 0.562 GB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001504/0.4444, allocations: 374.6 kB / 0.5624 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01191/0.4563, allocations: 4.768 MB / 0.567 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-05/0.4564, allocations: 7.188 kB / 0.567 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004506/0.4569, allocations: 150.6 kB / 0.5672 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001447/0.4571, allocations: 156.6 kB / 0.5673 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008833/0.4659, allocations: 4.045 MB / 0.5713 GB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0306/0.4965, allocations: 15.55 MB / 0.5864 GB, free: 7.398 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006849/0.5034, allocations: 6.934 MB / 0.5932 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002658/0.5061, allocations: 1.495 MB / 0.5947 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007934/0.5141, allocations: 4.155 MB / 0.5987 GB, free: 9.883 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.44e-05/0.5142, allocations: 55.88 kB / 0.5988 GB, free: 9.816 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 5.29e-06/0.5142, allocations: 3.984 kB / 0.5988 GB, free: 9.812 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01342/0.5276, allocations: 6.359 MB / 0.605 GB, free: 3.324 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.294e-05/0.5277, allocations: 76.38 kB / 0.6051 GB, free: 3.242 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003858/0.5316, allocations: 2.19 MB / 0.6072 GB, free: 1.023 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002682/0.5319, allocations: 49.7 kB / 0.6073 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001325/0.5332, allocations: 1.731 MB / 0.609 GB, free: 15.22 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005949/0.5338, allocations: 0.5444 MB / 0.6095 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006482/0.5345, allocations: 407.8 kB / 0.6099 GB, free: 14.28 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.5347, allocations: 305.1 kB / 0.6102 GB, free: 13.98 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001433/0.5361, allocations: 0.832 MB / 0.611 GB, free: 13.14 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001917/0.538, allocations: 1.585 MB / 0.6125 GB, free: 11.21 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003434/0.5415, allocations: 2.59 MB / 0.6151 GB, free: 8.383 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-05/0.5415, allocations: 8 kB / 0.6151 GB, free: 8.375 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005367/0.5469, allocations: 3.029 MB / 0.618 GB, free: 5.461 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.264e-05/0.547, allocations: 16 kB / 0.618 GB, free: 5.445 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.068e-05/0.547, allocations: 27.94 kB / 0.6181 GB, free: 5.418 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000917/0.5479, allocations: 307.2 kB / 0.6184 GB, free: 5.113 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001874/0.5498, allocations: 0.4986 MB / 0.6188 GB, free: 4.648 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005471/0.5553, allocations: 4.86 MB / 0.6236 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002574/0.5579, allocations: 99.86 kB / 0.6237 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004247/0.5584, allocations: 112 kB / 0.6238 GB, free: 15.33 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.002944/0.5613, allocations: 1.125 MB / 0.6249 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007866/0.5621, allocations: 233.2 kB / 0.6251 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004777/0.5669, allocations: 2.402 MB / 0.6275 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.98e-05/0.567, allocations: 19.98 kB / 0.6275 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/0.567, allocations: 4 kB / 0.6275 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.657e-05/0.567, allocations: 7.969 kB / 0.6275 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/0.5795, allocations: 5.701 MB / 0.6331 GB, free: 5.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/0.5796, allocations: 0 / 0.6331 GB, free: 5.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001299/0.5809, allocations: 282.2 kB / 0.6333 GB, free: 5.488 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009031/0.5818, allocations: 314.2 kB / 0.6336 GB, free: 5.172 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001776/0.582, allocations: 36 kB / 0.6337 GB, free: 5.137 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007318/0.5893, allocations: 7.018 MB / 0.6405 GB, free: 13.74 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.5894, allocations: 3.656 kB / 0.6405 GB, free: 13.74 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006375/0.5958, allocations: 3.482 MB / 0.6439 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001678/0.5975, allocations: 498.1 kB / 0.6444 GB, free: 9.676 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008113/0.5983, allocations: 28 kB / 0.6444 GB, free: 9.648 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00169/0.6, allocations: 67.95 kB / 0.6445 GB, free: 9.582 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003229/0.6003, allocations: 120.7 kB / 0.6446 GB, free: 9.469 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001177/0.6005, allocations: 47.98 kB / 0.6446 GB, free: 9.422 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003274/0.6038, allocations: 1.472 MB / 0.6461 GB, free: 7.934 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6038, allocations: 0 / 0.6461 GB, free: 7.934 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003632/0.6074, allocations: 0.6523 MB / 0.6467 GB, free: 7.281 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.0004613/0.6079, allocations: 162.6 kB / 0.6469 GB, free: 7.133 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004453/0.6124, allocations: 2.471 MB / 0.6493 GB, free: 4.699 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/0.6124, allocations: 0 / 0.6493 GB, free: 4.699 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002277/0.6147, allocations: 1.414 MB / 0.6507 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.003879/0.6186, allocations: 0.5779 MB / 0.6512 GB, free: 2.699 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01505/0.6336, allocations: 6.409 MB / 0.6575 GB, free: 12.26 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003541/0.6372, allocations: 2.454 MB / 0.6599 GB, free: 9.777 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000913/0.6382, allocations: 171.4 kB / 0.6601 GB, free: 9.613 MB / 478.1 MB Notification: Performance of SimCode: time 7.71e-07/0.6382, allocations: 4 kB / 0.6601 GB, free: 9.609 MB / 478.1 MB Notification: Performance of Templates: time 0.3653/1.003, allocations: 100.1 MB / 0.7578 GB, free: 172.8 MB / 0.5294 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)