Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 174.3 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04135/0.04135, allocations: 8.723 MB / 16.79 MB, free: 3.383 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.403/1.403, allocations: 221.5 MB / 240.9 MB, free: 13.22 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.0009319/0.0009321, allocations: 89.36 kB / 293.9 MB, free: 7.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.739e-05/1.749e-05, allocations: 4 kB / 352.7 MB, free: 1.184 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1294, allocations: 52.56 MB / 405.3 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4253/0.5547, allocations: 130.8 MB / 0.5235 GB, free: 5.082 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002/0.555, allocations: 79.97 kB / 0.5236 GB, free: 5.004 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.153/1.708, allocations: 311.8 MB / 0.8281 GB, free: 36.93 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.994e-06/1.708, allocations: 4 kB / 0.8281 GB, free: 36.93 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005653/1.709, allocations: 201.5 kB / 0.8283 GB, free: 36.91 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: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.02921/1.738, allocations: 8.255 MB / 0.8364 GB, free: 34.27 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/1.738, allocations: 14.98 kB / 0.8364 GB, free: 34.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0221/1.76, allocations: 3.862 MB / 0.8402 GB, free: 33.78 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01939/1.78, allocations: 7.241 MB / 0.8472 GB, free: 30.72 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006574/1.78, allocations: 291.3 kB / 0.8475 GB, free: 30.72 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005006/1.785, allocations: 0.5158 MB / 0.848 GB, free: 30.71 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02675/1.812, allocations: 11.22 MB / 0.859 GB, free: 25.76 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04236/1.854, allocations: 13.11 MB / 0.8718 GB, free: 16.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004466/1.855, allocations: 7.906 kB / 0.8718 GB, free: 16.4 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003536/1.859, allocations: 8 kB / 0.8718 GB, free: 16.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007834/1.859, allocations: 0.6822 MB / 0.8725 GB, free: 15.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0994/1.959, allocations: 46.25 MB / 0.9176 GB, free: 2.688 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3632/2.322, allocations: 27.9 MB / 0.9449 GB, free: 38.48 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005137/2.327, allocations: 2.983 MB / 0.9478 GB, free: 38.45 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005216/2.328, allocations: 243.6 kB / 0.948 GB, free: 38.25 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.935e-05/2.328, allocations: 69.33 kB / 0.9481 GB, free: 38.21 MB / 474.7 MB Notification: Performance of pre-optimization done (n=377): time 6.212e-06/2.328, allocations: 0 / 0.9481 GB, free: 38.21 MB / 474.7 MB Notification: Performance of matching and sorting (n=384): time 0.02725/2.355, allocations: 12.91 MB / 0.9607 GB, free: 36.96 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.588e-05/2.355, allocations: 89.77 kB / 0.9608 GB, free: 36.89 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005602/2.361, allocations: 2.729 MB / 0.9635 GB, free: 36.62 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006501/2.362, allocations: 30.34 kB / 0.9635 GB, free: 36.59 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002505/2.364, allocations: 3.944 MB / 0.9673 GB, free: 34.54 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00136/2.365, allocations: 1.263 MB / 0.9686 GB, free: 33.72 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002606/2.366, allocations: 0.8438 kB / 0.9686 GB, free: 33.72 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000268/2.366, allocations: 0.5436 MB / 0.9691 GB, free: 33.4 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003695/2.37, allocations: 2.501 MB / 0.9715 GB, free: 33.39 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004804/2.374, allocations: 4.887 MB / 0.9763 GB, free: 30.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007149/2.382, allocations: 4.301 MB / 0.9805 GB, free: 30.35 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001163/2.382, allocations: 23.03 kB / 0.9805 GB, free: 30.35 MB / 474.7 MB Notification: Performance of matching and sorting (n=756) (initialization): time 0.02/2.402, allocations: 8.584 MB / 0.9889 GB, free: 29.99 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002487/2.402, allocations: 44.44 kB / 0.989 GB, free: 29.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003223/2.402, allocations: 82.16 kB / 0.989 GB, free: 29.98 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003044/2.405, allocations: 0.9272 MB / 0.9899 GB, free: 29.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005616/2.411, allocations: 1.353 MB / 0.9913 GB, free: 29.96 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01254/2.424, allocations: 7.687 MB / 0.9988 GB, free: 28.48 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005985/2.43, allocations: 249.9 kB / 0.999 GB, free: 28.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002016/2.432, allocations: 304.4 kB / 0.9993 GB, free: 28.45 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (696): * Single equations (assignments): 694 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(8,65.6%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002634/2.434, allocations: 316.9 kB / 0.9996 GB, free: 28.29 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0132/2.448, allocations: 5.674 MB / 1.005 GB, free: 27.93 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00129/2.449, allocations: 375.5 kB / 1.006 GB, free: 27.74 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01398/2.463, allocations: 6.383 MB / 1.012 GB, free: 27.41 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.886e-05/2.463, allocations: 49.2 kB / 1.012 GB, free: 27.41 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.932e-05/2.463, allocations: 13.38 kB / 1.012 GB, free: 27.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.491e-05/2.463, allocations: 18.52 kB / 1.012 GB, free: 27.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02709/2.49, allocations: 14.41 MB / 1.026 GB, free: 21.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.554e-05/2.49, allocations: 3.625 kB / 1.026 GB, free: 21.48 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002894/2.493, allocations: 0.7105 MB / 1.027 GB, free: 21.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001938/2.495, allocations: 0.6702 MB / 1.027 GB, free: 21.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004973/2.496, allocations: 28.39 kB / 1.027 GB, free: 21.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007385/2.503, allocations: 5.938 MB / 1.033 GB, free: 17.94 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.468e-06/2.503, allocations: 6.719 kB / 1.033 GB, free: 17.94 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01399/2.517, allocations: 9.546 MB / 1.042 GB, free: 13.64 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00249/2.52, allocations: 0.8786 MB / 1.043 GB, free: 13.12 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008862/2.521, allocations: 3.719 kB / 1.043 GB, free: 13.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002539/2.523, allocations: 167.6 kB / 1.043 GB, free: 13.12 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005215/2.524, allocations: 255.8 kB / 1.044 GB, free: 13.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002419/2.524, allocations: 113.3 kB / 1.044 GB, free: 13.05 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003562/2.527, allocations: 1.986 MB / 1.046 GB, free: 12.25 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.3e-07/2.527, allocations: 0.75 kB / 1.046 GB, free: 12.25 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008072/2.536, allocations: 1.365 MB / 1.047 GB, free: 12.23 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 1 (smr.phiMechanical) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (366): * Single equations (assignments): 364 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01461/2.55, allocations: 11.43 MB / 1.058 GB, free: 6.379 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009849/2.56, allocations: 6.286 MB / 1.064 GB, free: 1.492 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/2.56, allocations: 0 / 1.064 GB, free: 1.492 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006369/2.567, allocations: 2.975 MB / 1.067 GB, free: 15.22 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004748/2.571, allocations: 0.6632 MB / 1.068 GB, free: 14.71 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0405/2.612, allocations: 15.72 MB / 1.083 GB, free: 1.078 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01104/2.623, allocations: 6.275 MB / 1.089 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006013/2.629, allocations: 1.841 MB / 1.091 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005527/2.635, allocations: 3.074 MB / 1.094 GB, free: 9.09 MB / 0.4948 GB Notification: Performance of SimCode: time 1.002e-06/2.635, allocations: 0 / 1.094 GB, free: 9.09 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5536/3.188, allocations: 110.3 MB / 1.202 GB, free: 78.43 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000241/3.188, allocations: 136.4 kB / 1.202 GB, free: 78.24 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.761/7.95, allocations: 0 / 1.202 GB, free: 78.24 MB / 0.4948 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1)