Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.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_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03799/0.03799, allocations: 8.702 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 221.4 MB / 246 MB, free: 3.527 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.0009581/0.0009581, allocations: 89.03 kB / 299.1 MB, free: 2.953 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.836e-05/3.839e-05, allocations: 7.984 kB / 359.5 MB, free: 6.473 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.279, allocations: 52.53 MB / 412.1 MB, free: 22.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4485/0.7275, allocations: 140 MB / 0.5391 GB, free: 37.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/0.7279, allocations: 76.97 kB / 0.5392 GB, free: 37.56 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8596/1.588, allocations: 272 MB / 0.8048 GB, free: 34.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.466e-06/1.588, allocations: 0 / 0.8048 GB, free: 34.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008436/1.588, allocations: 175.8 kB / 0.8049 GB, free: 34.43 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.03121/1.62, allocations: 7.42 MB / 0.8122 GB, free: 26.97 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001035/1.62, allocations: 8.031 kB / 0.8122 GB, free: 26.96 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02347/1.643, allocations: 3.893 MB / 0.816 GB, free: 23.09 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0193/1.663, allocations: 6.762 MB / 0.8226 GB, free: 16.36 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006716/1.663, allocations: 0.5607 MB / 0.8231 GB, free: 15.81 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00391/1.667, allocations: 0.7487 MB / 0.8239 GB, free: 15.07 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03528/1.703, allocations: 12.47 MB / 0.8361 GB, free: 2.371 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004678/1.703, allocations: 7.906 kB / 0.8361 GB, free: 2.363 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003265/1.706, allocations: 327.1 kB / 0.8364 GB, free: 2.055 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007193/1.707, allocations: 0.5982 MB / 0.837 GB, free: 1.453 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.632/2.339, allocations: 11.33 MB / 0.848 GB, free: 48.93 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0753/2.414, allocations: 43.59 MB / 0.8906 GB, free: 40.17 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01905/2.434, allocations: 25.09 MB / 0.9151 GB, free: 18.76 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004603/2.438, allocations: 2.887 MB / 0.9179 GB, free: 17.64 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003762/2.439, allocations: 251.5 kB / 0.9182 GB, free: 17.45 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003384/2.442, allocations: 2.49 MB / 0.9206 GB, free: 16.37 MB / 458.8 MB Notification: Performance of pre-optimization done (n=391): time 5.691e-06/2.442, allocations: 0 / 0.9206 GB, free: 16.37 MB / 458.8 MB Notification: Performance of matching and sorting (n=397): time 0.0235/2.466, allocations: 13.75 MB / 0.934 GB, free: 9.352 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006032/2.466, allocations: 352.5 kB / 0.9344 GB, free: 24.97 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006019/2.472, allocations: 3.095 MB / 0.9374 GB, free: 23.75 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001051/2.473, allocations: 87.7 kB / 0.9375 GB, free: 23.67 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002196/2.476, allocations: 3.366 MB / 0.9407 GB, free: 21.13 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00178/2.477, allocations: 1.351 MB / 0.9421 GB, free: 20.09 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003436/2.478, allocations: 115.3 kB / 0.9422 GB, free: 20 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0003631/2.478, allocations: 0.5182 MB / 0.9427 GB, free: 19.6 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003632/2.482, allocations: 2.456 MB / 0.9451 GB, free: 18.63 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004634/2.486, allocations: 4.389 MB / 0.9494 GB, free: 15.24 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005477/2.492, allocations: 3.483 MB / 0.9528 GB, free: 13.9 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.036e-05/2.492, allocations: 15.47 kB / 0.9528 GB, free: 13.9 MB / 474.8 MB Notification: Performance of matching and sorting (n=720) (initialization): time 0.01544/2.507, allocations: 8.075 MB / 0.9607 GB, free: 11.13 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.134e-05/2.508, allocations: 60.7 kB / 0.9607 GB, free: 11.1 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001275/2.508, allocations: 59.91 kB / 0.9608 GB, free: 11.1 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002816/2.511, allocations: 1.005 MB / 0.9618 GB, free: 10.89 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004987/2.516, allocations: 1.268 MB / 0.963 GB, free: 10.85 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01256/2.528, allocations: 8.222 MB / 0.971 GB, free: 6.336 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006012/2.534, allocations: 396.4 kB / 0.9714 GB, free: 6.223 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001197/2.535, allocations: 263.2 kB / 0.9717 GB, free: 6.18 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 274 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (663): * Single equations (assignments): 661 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,52.0%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001131/2.537, allocations: 485 kB / 0.9721 GB, free: 5.844 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001025/2.538, allocations: 386 kB / 0.9725 GB, free: 5.648 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01112/2.549, allocations: 6.046 MB / 0.9784 GB, free: 0.8164 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.871e-05/2.549, allocations: 40 kB / 0.9784 GB, free: 0.7773 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-05/2.549, allocations: 12.94 kB / 0.9784 GB, free: 0.7656 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.915e-05/2.549, allocations: 21.52 kB / 0.9785 GB, free: 0.7656 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0309/2.58, allocations: 14.94 MB / 0.9931 GB, free: 4.488 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-05/2.58, allocations: 4.594 kB / 0.9931 GB, free: 4.484 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002796/2.583, allocations: 0.6797 MB / 0.9937 GB, free: 3.941 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002565/2.585, allocations: 0.8752 MB / 0.9946 GB, free: 3.273 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004647/2.586, allocations: 86.3 kB / 0.9947 GB, free: 3.199 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01068/2.596, allocations: 7.148 MB / 1.002 GB, free: 12.83 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.497e-06/2.596, allocations: 11.78 kB / 1.002 GB, free: 12.82 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01448/2.611, allocations: 9.053 MB / 1.01 GB, free: 4.523 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003081/2.614, allocations: 0.9382 MB / 1.011 GB, free: 3.672 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009752/2.615, allocations: 76 kB / 1.011 GB, free: 3.598 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002517/2.618, allocations: 209.1 kB / 1.012 GB, free: 3.449 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005827/2.618, allocations: 277.4 kB / 1.012 GB, free: 3.273 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002336/2.618, allocations: 110.4 kB / 1.012 GB, free: 3.172 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.00438/2.623, allocations: 2.295 MB / 1.014 GB, free: 1.129 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.8e-07/2.623, allocations: 0 / 1.014 GB, free: 1.129 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01039/2.633, allocations: 1.691 MB / 1.016 GB, free: 0 / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.excitation.electroMagneticConverter.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,52.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001711/2.635, allocations: 0.6265 MB / 1.017 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01181/2.647, allocations: 6.286 MB / 1.023 GB, free: 9.695 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/2.647, allocations: 4 kB / 1.023 GB, free: 9.691 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006266/2.653, allocations: 3.02 MB / 1.026 GB, free: 6.914 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004972/2.658, allocations: 0.7252 MB / 1.026 GB, free: 6.34 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3566/3.015, allocations: 12.57 MB / 1.039 GB, free: 102 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008442/3.023, allocations: 5.135 MB / 1.044 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.006918/3.03, allocations: 1.665 MB / 1.045 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00126/3.031, allocations: 328.8 kB / 1.046 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.443e-06/3.032, allocations: 1.75 kB / 1.046 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of Templates: time 0.09989/3.131, allocations: 60.07 MB / 1.104 GB, free: 98.32 MB / 0.5105 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve2.pipe 2>&1)