Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 169.5 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04023/0.04023, allocations: 8.718 MB / 16.79 MB, free: 3.387 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.453/1.453, allocations: 221.5 MB / 240.9 MB, free: 13.18 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.0009949/0.0009948, allocations: 93.83 kB / 293.8 MB, free: 7.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.947e-05/1.946e-05, allocations: 7.938 kB / 352.6 MB, free: 1.223 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1134, allocations: 52.55 MB / 405.2 MB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4404/0.5538, allocations: 135.3 MB / 0.5278 GB, free: 0.6367 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.5541, allocations: 75.97 kB / 0.5278 GB, free: 0.5625 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.222/1.776, allocations: 319 MB / 0.8394 GB, free: 34.77 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.114e-06/1.776, allocations: 0 / 0.8394 GB, free: 34.77 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008948/1.777, allocations: 207.6 kB / 0.8396 GB, free: 34.75 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: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.03365/1.81, allocations: 8.426 MB / 0.8478 GB, free: 31.05 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/1.811, allocations: 11.45 kB / 0.8478 GB, free: 31.04 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02266/1.833, allocations: 3.919 MB / 0.8517 GB, free: 30.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02054/1.854, allocations: 7.366 MB / 0.8588 GB, free: 26.45 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006204/1.854, allocations: 293.8 kB / 0.8591 GB, free: 26.45 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004438/1.859, allocations: 0.5287 MB / 0.8596 GB, free: 26.43 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02517/1.884, allocations: 11.37 MB / 0.8707 GB, free: 19.23 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04171/1.926, allocations: 13.29 MB / 0.8837 GB, free: 6.051 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006712/1.927, allocations: 15.81 kB / 0.8837 GB, free: 6.035 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003998/1.931, allocations: 11.95 kB / 0.8838 GB, free: 6.023 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00113/1.932, allocations: 0.6834 MB / 0.8844 GB, free: 5.336 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5162/2.448, allocations: 47.48 MB / 0.9308 GB, free: 53.84 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0228/2.471, allocations: 28.68 MB / 0.9588 GB, free: 28.66 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005508/2.476, allocations: 3.14 MB / 0.9619 GB, free: 28.62 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004848/2.477, allocations: 243.3 kB / 0.9621 GB, free: 28.43 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.867e-05/2.477, allocations: 70.47 kB / 0.9622 GB, free: 28.39 MB / 474.7 MB Notification: Performance of pre-optimization done (n=374): time 6.732e-06/2.477, allocations: 0 / 0.9622 GB, free: 28.39 MB / 474.7 MB Notification: Performance of matching and sorting (n=382): time 0.03005/2.507, allocations: 12.95 MB / 0.9748 GB, free: 26.94 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.644e-05/2.507, allocations: 91.34 kB / 0.9749 GB, free: 26.87 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00571/2.513, allocations: 2.892 MB / 0.9777 GB, free: 26.6 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000798/2.514, allocations: 32.72 kB / 0.9778 GB, free: 26.57 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0026/2.516, allocations: 4.077 MB / 0.9817 GB, free: 24.45 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001641/2.518, allocations: 1.261 MB / 0.983 GB, free: 23.62 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002871/2.518, allocations: 2.656 kB / 0.983 GB, free: 23.62 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003448/2.519, allocations: 0.5439 MB / 0.9835 GB, free: 23.31 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003919/2.523, allocations: 2.527 MB / 0.986 GB, free: 23.29 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005193/2.528, allocations: 4.951 MB / 0.9908 GB, free: 20.28 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009286/2.537, allocations: 4.358 MB / 0.9951 GB, free: 20.23 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002322/2.537, allocations: 22.94 kB / 0.9951 GB, free: 20.23 MB / 474.7 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01994/2.557, allocations: 8.774 MB / 1.004 GB, free: 19.81 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000218/2.558, allocations: 42.53 kB / 1.004 GB, free: 19.81 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002386/2.558, allocations: 82.03 kB / 1.004 GB, free: 19.81 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002922/2.561, allocations: 1.012 MB / 1.005 GB, free: 19.78 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005577/2.566, allocations: 1.36 MB / 1.006 GB, free: 19.78 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01364/2.58, allocations: 9.438 MB / 1.015 GB, free: 17.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00627/2.586, allocations: 254.9 kB / 1.016 GB, free: 17.06 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001651/2.588, allocations: 306.3 kB / 1.016 GB, free: 17.06 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (704): * Single equations (assignments): 701 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,65.6%) 56} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00248/2.591, allocations: 322.1 kB / 1.016 GB, free: 16.89 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00167/2.592, allocations: 395.4 kB / 1.017 GB, free: 16.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01375/2.606, allocations: 6.408 MB / 1.023 GB, free: 16.39 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.11e-05/2.606, allocations: 50.59 kB / 1.023 GB, free: 16.39 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.994e-05/2.606, allocations: 7.656 kB / 1.023 GB, free: 16.39 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-05/2.606, allocations: 24.28 kB / 1.023 GB, free: 16.39 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03584/2.642, allocations: 14.52 MB / 1.037 GB, free: 11.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.562e-05/2.642, allocations: 6.031 kB / 1.037 GB, free: 11.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00313/2.645, allocations: 0.6838 MB / 1.038 GB, free: 11.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002526/2.648, allocations: 0.7769 MB / 1.038 GB, free: 11.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009902/2.649, allocations: 27.3 kB / 1.038 GB, free: 11.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01061/2.659, allocations: 7.906 MB / 1.046 GB, free: 22.62 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.417e-06/2.66, allocations: 5.594 kB / 1.046 GB, free: 22.62 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01538/2.675, allocations: 9.403 MB / 1.055 GB, free: 18.55 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003035/2.678, allocations: 0.8983 MB / 1.056 GB, free: 18.02 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001446/2.679, allocations: 7.344 kB / 1.056 GB, free: 18.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003231/2.683, allocations: 161.6 kB / 1.056 GB, free: 18.02 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006507/2.683, allocations: 256.1 kB / 1.057 GB, free: 17.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003462/2.684, allocations: 109.9 kB / 1.057 GB, free: 17.95 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005454/2.689, allocations: 2.102 MB / 1.059 GB, free: 17.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.72e-07/2.689, allocations: 0 / 1.059 GB, free: 17.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.013/2.702, allocations: 1.419 MB / 1.06 GB, free: 17.08 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (inertiaLoad.w,quadraticTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (355): * Single equations (assignments): 352 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,62.5%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002271/2.705, allocations: 454.7 kB / 1.061 GB, free: 16.92 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01387/2.719, allocations: 6.475 MB / 1.067 GB, free: 13 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.24e-05/2.719, allocations: 0 / 1.067 GB, free: 13 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007331/2.726, allocations: 2.996 MB / 1.07 GB, free: 10.28 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006651/2.733, allocations: 0.7129 MB / 1.071 GB, free: 9.734 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04757/2.78, allocations: 13.44 MB / 1.084 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01778/2.798, allocations: 6.125 MB / 1.09 GB, free: 9.113 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008622/2.807, allocations: 1.843 MB / 1.092 GB, free: 7.91 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002161/2.809, allocations: 331.5 kB / 1.092 GB, free: 7.605 MB / 0.4948 GB Notification: Performance of SimCode: time 1.152e-06/2.809, allocations: 0 / 1.092 GB, free: 7.605 MB / 0.4948 GB Notification: Performance of Templates: time 0.5636/3.373, allocations: 56.66 MB / 1.147 GB, free: 83.46 MB / 0.4948 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)