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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.0009482/0.0009481, allocations: 169.2 kB / 7.64 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04017/0.04017, allocations: 8.717 MB / 16.79 MB, free: 3.375 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.448/1.448, allocations: 221.5 MB / 240.9 MB, free: 13.19 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.000964/0.0009639, allocations: 93.16 kB / 293.9 MB, free: 7.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.248e-05/2.25e-05, allocations: 11.92 kB / 352.6 MB, free: 1.246 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1148, allocations: 52.55 MB / 405.2 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4112/0.526, allocations: 116.2 MB / 0.5092 GB, free: 3.691 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/0.5263, allocations: 71.97 kB / 0.5093 GB, free: 3.621 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5897/1.116, allocations: 155.6 MB / 0.6612 GB, free: 65.57 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.873e-06/1.116, allocations: 0 / 0.6612 GB, free: 65.57 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002493/1.116, allocations: 95.47 kB / 0.6613 GB, free: 65.55 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.009785/1.126, allocations: 3.586 MB / 0.6648 GB, free: 63.22 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/1.126, allocations: 14.92 kB / 0.6649 GB, free: 63.22 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005389/1.132, allocations: 0.8859 MB / 0.6657 GB, free: 62.79 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008838/1.14, allocations: 3.593 MB / 0.6692 GB, free: 60.43 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001828/1.141, allocations: 118.4 kB / 0.6693 GB, free: 60.43 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009982/1.142, allocations: 228.6 kB / 0.6696 GB, free: 60.41 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007793/1.15, allocations: 3.471 MB / 0.6729 GB, free: 58.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009177/1.159, allocations: 4.061 MB / 0.6769 GB, free: 56.29 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-05/1.159, allocations: 3.938 kB / 0.6769 GB, free: 56.29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003072/1.159, allocations: 7.828 kB / 0.6769 GB, free: 56.28 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001323/1.159, allocations: 149.6 kB / 0.6771 GB, free: 56.27 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02267/1.182, allocations: 15.08 MB / 0.6918 GB, free: 43.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004776/1.187, allocations: 6.856 MB / 0.6985 GB, free: 36.08 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001989/1.189, allocations: 1.408 MB / 0.6999 GB, free: 34.69 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006459/1.195, allocations: 3.926 MB / 0.7037 GB, free: 30.69 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.971e-05/1.195, allocations: 47.88 kB / 0.7037 GB, free: 30.63 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 4.228e-06/1.195, allocations: 0 / 0.7037 GB, free: 30.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=157): time 0.01033/1.206, allocations: 5.358 MB / 0.709 GB, free: 25.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.757e-05/1.206, allocations: 68.72 kB / 0.709 GB, free: 25.11 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002135/1.208, allocations: 1.553 MB / 0.7106 GB, free: 23.52 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/1.208, allocations: 29.7 kB / 0.7106 GB, free: 23.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007924/1.209, allocations: 1.729 MB / 0.7123 GB, free: 21.73 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003088/1.209, allocations: 0.5158 MB / 0.7128 GB, free: 21.21 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.279e-05/1.209, allocations: 7.938 kB / 0.7128 GB, free: 21.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/1.209, allocations: 386.5 kB / 0.7132 GB, free: 20.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008785/1.21, allocations: 0.7189 MB / 0.7139 GB, free: 20.09 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/1.211, allocations: 1.427 MB / 0.7153 GB, free: 18.33 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00165/1.213, allocations: 1.149 MB / 0.7164 GB, free: 17.18 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.929e-06/1.213, allocations: 8 kB / 0.7164 GB, free: 17.17 MB / 442.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.004134/1.217, allocations: 2.752 MB / 0.7191 GB, free: 14.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.019e-05/1.217, allocations: 16 kB / 0.7191 GB, free: 14.37 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.437e-05/1.217, allocations: 20 kB / 0.7191 GB, free: 14.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000704/1.218, allocations: 306.6 kB / 0.7194 GB, free: 14.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001606/1.22, allocations: 499.2 kB / 0.7199 GB, free: 13.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003367/1.223, allocations: 4.271 MB / 0.724 GB, free: 9.055 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001886/1.225, allocations: 63.92 kB / 0.7241 GB, free: 8.992 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001772/1.225, allocations: 99.98 kB / 0.7242 GB, free: 8.895 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.0003058/1.225, allocations: 164.3 kB / 0.7244 GB, free: 8.727 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002961/1.226, allocations: 213.4 kB / 0.7246 GB, free: 8.516 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003743/1.23, allocations: 2.305 MB / 0.7268 GB, free: 6.152 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/1.23, allocations: 16 kB / 0.7268 GB, free: 6.137 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.769e-06/1.23, allocations: 8.125 kB / 0.7268 GB, free: 6.129 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/1.23, allocations: 7.969 kB / 0.7268 GB, free: 6.121 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007852/1.237, allocations: 5.044 MB / 0.7318 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.515e-06/1.238, allocations: 4 kB / 0.7318 GB, free: 0.9883 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/1.239, allocations: 271.8 kB / 0.732 GB, free: 0.7227 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007049/1.239, allocations: 314.3 kB / 0.7323 GB, free: 416 kB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.259e-05/1.239, allocations: 11.98 kB / 0.7323 GB, free: 404 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006078/1.246, allocations: 6.122 MB / 0.7383 GB, free: 9.93 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/1.246, allocations: 4.031 kB / 0.7383 GB, free: 9.926 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005917/1.252, allocations: 3.405 MB / 0.7416 GB, free: 6.383 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001585/1.253, allocations: 462.4 kB / 0.7421 GB, free: 5.91 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003125/1.253, allocations: 12 kB / 0.7421 GB, free: 5.898 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/1.254, allocations: 43.95 kB / 0.7421 GB, free: 5.855 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003012/1.255, allocations: 121.1 kB / 0.7423 GB, free: 5.738 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.723e-05/1.255, allocations: 43.94 kB / 0.7423 GB, free: 5.695 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002304/1.257, allocations: 1.142 MB / 0.7434 GB, free: 4.531 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.257, allocations: 0 / 0.7434 GB, free: 4.531 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002872/1.26, allocations: 0.5939 MB / 0.744 GB, free: 3.938 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.0006284/1.261, allocations: 344.7 kB / 0.7443 GB, free: 3.621 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003692/1.264, allocations: 2.184 MB / 0.7465 GB, free: 1.402 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/1.264, allocations: 0 / 0.7465 GB, free: 1.402 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002061/1.267, allocations: 1.287 MB / 0.7477 GB, free: 88 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2919/1.558, allocations: 404.1 kB / 0.7481 GB, free: 84.11 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/1.569, allocations: 5.066 MB / 0.753 GB, free: 83.01 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002345/1.572, allocations: 2.584 MB / 0.7556 GB, free: 82.26 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002266/1.574, allocations: 498.8 kB / 0.756 GB, free: 82.24 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004666/1.574, allocations: 140.7 kB / 0.7562 GB, free: 82.24 MB / 458.7 MB Notification: Performance of SimCode: time 1.814e-06/1.574, allocations: 1.312 kB / 0.7562 GB, free: 82.24 MB / 458.7 MB Notification: Performance of Templates: time 0.06199/1.636, allocations: 25.13 MB / 0.7807 GB, free: 81.19 MB / 458.7 MB 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)