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.001469/0.001469, allocations: 174.7 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.05857/0.05857, allocations: 8.699 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.295/1.295, allocations: 221.4 MB / 246 MB, free: 3.555 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.001038/0.001038, allocations: 94.98 kB / 299.1 MB, free: 2.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.936e-05/2.94e-05, allocations: 4 kB / 359.5 MB, free: 6.516 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2464, allocations: 52.53 MB / 412.1 MB, free: 22.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4499/0.6964, allocations: 135.9 MB / 0.5351 GB, free: 39.45 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003176/0.6968, allocations: 78.64 kB / 0.5352 GB, free: 39.44 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.233/1.93, allocations: 322.5 MB / 0.8502 GB, free: 51.73 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.894e-06/1.93, allocations: 0 / 0.8502 GB, free: 51.73 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0006094/1.931, allocations: 205.8 kB / 0.8504 GB, free: 51.71 MB / 474.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.03765/1.968, allocations: 8.428 MB / 0.8586 GB, free: 49.07 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.192e-05/1.968, allocations: 7.375 kB / 0.8586 GB, free: 49.07 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02334/1.992, allocations: 3.92 MB / 0.8624 GB, free: 48.57 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02036/2.012, allocations: 7.372 MB / 0.8696 GB, free: 47.67 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008318/2.013, allocations: 0.6737 MB / 0.8703 GB, free: 47.65 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004638/2.018, allocations: 0.8933 MB / 0.8712 GB, free: 47.64 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04821/2.066, allocations: 14.72 MB / 0.8855 GB, free: 46.51 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004485/2.066, allocations: 18.52 kB / 0.8855 GB, free: 46.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003616/2.07, allocations: 393.8 kB / 0.8859 GB, free: 46.5 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008209/2.071, allocations: 0.6848 MB / 0.8866 GB, free: 46.48 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03133/2.102, allocations: 12.52 MB / 0.8988 GB, free: 46.38 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0869/2.189, allocations: 48.2 MB / 0.9459 GB, free: 26.08 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02318/2.212, allocations: 28.75 MB / 0.974 GB, free: 14.71 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005579/2.218, allocations: 2.833 MB / 0.9767 GB, free: 13.62 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006083/2.219, allocations: 234.6 kB / 0.9769 GB, free: 13.43 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.34e-05/2.219, allocations: 74.56 kB / 0.977 GB, free: 13.36 MB / 490.7 MB Notification: Performance of pre-optimization done (n=374): time 6.593e-06/2.219, allocations: 0 / 0.977 GB, free: 13.36 MB / 490.7 MB Notification: Performance of matching and sorting (n=382): time 0.02883/2.248, allocations: 11.1 MB / 0.9879 GB, free: 8.246 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.9e-05/2.248, allocations: 94.72 kB / 0.988 GB, free: 8.18 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009249/2.257, allocations: 3.269 MB / 0.9911 GB, free: 6.242 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008836/2.258, allocations: 85.7 kB / 0.9912 GB, free: 6.152 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003799/2.262, allocations: 4.077 MB / 0.9952 GB, free: 2.539 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002109/2.264, allocations: 1.306 MB / 0.9965 GB, free: 1.363 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001034/2.265, allocations: 120 kB / 0.9966 GB, free: 1.246 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0008111/2.266, allocations: 0.5516 MB / 0.9971 GB, free: 0.7578 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0124/2.278, allocations: 3.066 MB / 1 GB, free: 0 / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008048/2.286, allocations: 4.956 MB / 1.005 GB, free: 10.27 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007276/2.294, allocations: 3.715 MB / 1.009 GB, free: 7.18 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001045/2.294, allocations: 24 kB / 1.009 GB, free: 7.156 MB / 0.4948 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01971/2.314, allocations: 8.436 MB / 1.017 GB, free: 296 kB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001241/2.314, allocations: 40 kB / 1.017 GB, free: 256 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001919/2.314, allocations: 94.86 kB / 1.017 GB, free: 164 kB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4178/2.732, allocations: 0.8785 MB / 1.018 GB, free: 76.79 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005715/2.738, allocations: 1.366 MB / 1.019 GB, free: 76.79 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/2.749, allocations: 8.313 MB / 1.027 GB, free: 74.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006062/2.755, allocations: 342.3 kB / 1.028 GB, free: 74.17 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001274/2.756, allocations: 305 kB / 1.028 GB, free: 74.17 MB / 0.4948 GB 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 (720): * Single equations (assignments): 717 * 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%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001037/2.757, allocations: 497.5 kB / 1.028 GB, free: 74.06 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009497/2.758, allocations: 416.9 kB / 1.029 GB, free: 74.06 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009457/2.768, allocations: 5.732 MB / 1.034 GB, free: 73.86 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.674e-05/2.768, allocations: 42.16 kB / 1.034 GB, free: 73.86 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/2.768, allocations: 7.406 kB / 1.034 GB, free: 73.86 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.628e-05/2.768, allocations: 21.28 kB / 1.034 GB, free: 73.86 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0243/2.792, allocations: 14.81 MB / 1.049 GB, free: 72.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.698e-05/2.792, allocations: 3.719 kB / 1.049 GB, free: 72.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002533/2.795, allocations: 0.6633 MB / 1.05 GB, free: 72.45 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002014/2.797, allocations: 0.7129 MB / 1.05 GB, free: 72.43 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002934/2.797, allocations: 79.53 kB / 1.05 GB, free: 72.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008149/2.805, allocations: 7.366 MB / 1.058 GB, free: 69.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/2.805, allocations: 5.562 kB / 1.058 GB, free: 69.82 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01139/2.817, allocations: 8.536 MB / 1.066 GB, free: 68.99 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002429/2.819, allocations: 0.8815 MB / 1.067 GB, free: 68.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000735/2.82, allocations: 74.16 kB / 1.067 GB, free: 68.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002023/2.822, allocations: 188.6 kB / 1.067 GB, free: 68.68 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004714/2.822, allocations: 250.2 kB / 1.067 GB, free: 68.67 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002033/2.822, allocations: 109.1 kB / 1.067 GB, free: 68.67 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003899/2.826, allocations: 2.429 MB / 1.07 GB, free: 68.51 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.8e-07/2.826, allocations: 3.719 kB / 1.07 GB, free: 68.51 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007008/2.833, allocations: 1.601 MB / 1.071 GB, free: 68.51 MB / 0.4948 GB 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 (363): * Single equations (assignments): 360 * 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%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001178/2.835, allocations: 0.6195 MB / 1.072 GB, free: 68.37 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01015/2.845, allocations: 6.391 MB / 1.078 GB, free: 68.01 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/2.845, allocations: 3.938 kB / 1.078 GB, free: 68.01 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004401/2.849, allocations: 2.882 MB / 1.081 GB, free: 67.71 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005508/2.855, allocations: 0.863 MB / 1.082 GB, free: 67.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03227/2.887, allocations: 13.42 MB / 1.095 GB, free: 65.19 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008325/2.896, allocations: 6.117 MB / 1.101 GB, free: 63.7 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005654/2.901, allocations: 1.872 MB / 1.103 GB, free: 63.55 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001125/2.902, allocations: 346 kB / 1.103 GB, free: 63.53 MB / 0.4948 GB Notification: Performance of SimCode: time 9.72e-07/2.902, allocations: 0 / 1.103 GB, free: 63.53 MB / 0.4948 GB Notification: Performance of Templates: time 0.112/3.014, allocations: 62.89 MB / 1.164 GB, free: 38.18 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)