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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009893/0.0009893, allocations: 175.5 kB / 7.654 MB, free: 1.395 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0408/0.0408, allocations: 8.721 MB / 16.8 MB, free: 3.379 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 221.5 MB / 240.9 MB, free: 13.21 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000973/0.000973, allocations: 86.61 kB / 293.9 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.058e-05/2.062e-05, allocations: 4 kB / 352.6 MB, free: 1.262 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1841/0.1841, allocations: 52.55 MB / 405.2 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4297/0.6139, allocations: 116.3 MB / 0.5093 GB, free: 3.703 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002077/0.6142, allocations: 71.97 kB / 0.5093 GB, free: 3.633 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6277/1.242, allocations: 155.9 MB / 0.6616 GB, free: 65.39 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.064e-06/1.242, allocations: 0 / 0.6616 GB, free: 65.39 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004443/1.242, allocations: 93.72 kB / 0.6617 GB, free: 65.38 MB / 442.7 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.01245/1.255, allocations: 3.59 MB / 0.6652 GB, free: 63.04 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.574e-05/1.255, allocations: 18.22 kB / 0.6652 GB, free: 63.03 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006177/1.261, allocations: 0.8779 MB / 0.6661 GB, free: 62.61 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009764/1.271, allocations: 3.607 MB / 0.6696 GB, free: 60.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001619/1.271, allocations: 121.4 kB / 0.6697 GB, free: 60.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009687/1.272, allocations: 215.7 kB / 0.6699 GB, free: 60.23 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006824/1.279, allocations: 3.475 MB / 0.6733 GB, free: 58.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006845/1.286, allocations: 4.052 MB / 0.6773 GB, free: 56.11 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-05/1.286, allocations: 3.312 kB / 0.6773 GB, free: 56.11 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002768/1.286, allocations: 15.77 kB / 0.6773 GB, free: 56.1 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001234/1.286, allocations: 155.8 kB / 0.6774 GB, free: 56.07 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01984/1.306, allocations: 15.06 MB / 0.6921 GB, free: 43.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004386/1.311, allocations: 6.855 MB / 0.6988 GB, free: 35.78 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001761/1.312, allocations: 1.408 MB / 0.7002 GB, free: 34.39 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005773/1.318, allocations: 3.931 MB / 0.7041 GB, free: 30.39 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/1.318, allocations: 47.88 kB / 0.7041 GB, free: 30.33 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 2.685e-06/1.318, allocations: 0 / 0.7041 GB, free: 30.33 MB / 442.7 MB Notification: Performance of matching and sorting (n=157): time 0.009675/1.328, allocations: 5.358 MB / 0.7093 GB, free: 24.88 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.545e-05/1.328, allocations: 64.72 kB / 0.7094 GB, free: 24.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002107/1.33, allocations: 1.557 MB / 0.7109 GB, free: 23.21 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.205e-05/1.33, allocations: 29.7 kB / 0.7109 GB, free: 23.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007292/1.331, allocations: 1.721 MB / 0.7126 GB, free: 21.43 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002773/1.331, allocations: 0.5196 MB / 0.7131 GB, free: 20.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.142e-05/1.331, allocations: 0 / 0.7131 GB, free: 20.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001035/1.331, allocations: 394.5 kB / 0.7135 GB, free: 20.51 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008911/1.332, allocations: 0.7111 MB / 0.7142 GB, free: 19.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001104/1.333, allocations: 1.431 MB / 0.7156 GB, free: 18.03 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001599/1.335, allocations: 1.153 MB / 0.7167 GB, free: 16.88 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-06/1.335, allocations: 4 kB / 0.7167 GB, free: 16.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.00402/1.339, allocations: 2.756 MB / 0.7194 GB, free: 14.08 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/1.339, allocations: 16 kB / 0.7194 GB, free: 14.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.534e-05/1.339, allocations: 32.34 kB / 0.7195 GB, free: 14.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006934/1.34, allocations: 290.3 kB / 0.7197 GB, free: 13.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001564/1.341, allocations: 499.2 kB / 0.7202 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003306/1.345, allocations: 4.272 MB / 0.7244 GB, free: 8.754 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/1.347, allocations: 55.86 kB / 0.7244 GB, free: 8.699 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/1.347, allocations: 107.9 kB / 0.7245 GB, free: 8.594 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (257): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002835/1.347, allocations: 170.6 kB / 0.7247 GB, free: 8.422 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002415/1.347, allocations: 213.4 kB / 0.7249 GB, free: 8.211 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003754/1.351, allocations: 2.305 MB / 0.7272 GB, free: 5.852 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/1.351, allocations: 16.12 kB / 0.7272 GB, free: 5.836 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/1.351, allocations: 12 kB / 0.7272 GB, free: 5.824 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-05/1.351, allocations: 7.969 kB / 0.7272 GB, free: 5.816 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007682/1.359, allocations: 5.051 MB / 0.7321 GB, free: 0.6836 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/1.359, allocations: 0 / 0.7321 GB, free: 0.6836 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/1.36, allocations: 275.8 kB / 0.7324 GB, free: 424 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007067/1.361, allocations: 306.3 kB / 0.7327 GB, free: 108 kB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.223e-05/1.361, allocations: 15.98 kB / 0.7327 GB, free: 92 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006099/1.367, allocations: 6.119 MB / 0.7387 GB, free: 9.629 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/1.367, allocations: 4.031 kB / 0.7387 GB, free: 9.625 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005558/1.372, allocations: 3.405 MB / 0.742 GB, free: 6.078 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001171/1.374, allocations: 466.4 kB / 0.7424 GB, free: 5.602 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002503/1.374, allocations: 7.984 kB / 0.7425 GB, free: 5.594 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009392/1.375, allocations: 35.97 kB / 0.7425 GB, free: 5.559 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000264/1.375, allocations: 125.3 kB / 0.7426 GB, free: 5.438 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.624e-05/1.375, allocations: 43.94 kB / 0.7427 GB, free: 5.395 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002053/1.377, allocations: 1.146 MB / 0.7438 GB, free: 4.227 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.92e-07/1.377, allocations: 0 / 0.7438 GB, free: 4.227 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002717/1.38, allocations: 0.5938 MB / 0.7443 GB, free: 3.633 MB / 458.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006424/1.381, allocations: 337 kB / 0.7447 GB, free: 3.324 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003471/1.384, allocations: 2.191 MB / 0.7468 GB, free: 1.094 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.384, allocations: 4 kB / 0.7468 GB, free: 1.09 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2577/1.642, allocations: 1.274 MB / 0.7481 GB, free: 83.53 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002589/1.644, allocations: 397.8 kB / 0.7484 GB, free: 83.52 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009546/1.654, allocations: 5.077 MB / 0.7534 GB, free: 82.41 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00198/1.656, allocations: 2.584 MB / 0.7559 GB, free: 81.65 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001914/1.658, allocations: 497.7 kB / 0.7564 GB, free: 81.63 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003607/1.658, allocations: 141.6 kB / 0.7565 GB, free: 81.63 MB / 458.7 MB Notification: Performance of SimCode: time 1.744e-06/1.658, allocations: 0 / 0.7565 GB, free: 81.63 MB / 458.7 MB Notification: Performance of Templates: time 0.0471/1.705, allocations: 25.12 MB / 0.7811 GB, free: 80.57 MB / 458.7 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)