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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009943/0.0009943, allocations: 73.09 kB / 20.66 MB, free: 3.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9522/0.9522, allocations: 177.2 MB / 201 MB, free: 5.699 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 156.6 kB / 257.7 MB, free: 12.98 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.02828/0.02828, allocations: 6.663 MB / 320.9 MB, free: 11.44 MB / 298.7 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 0 / 392.9 MB, free: 3.336 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.219e-05/2.406e-05, allocations: 2.312 kB / 392.9 MB, free: 3.332 MB / 362.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02243/0.02245, allocations: 26.96 MB / 419.9 MB, free: 8.246 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.01581/0.03826, allocations: 8.411 MB / 428.3 MB, free: 15.81 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005201/0.04347, allocations: 250.8 kB / 428.5 MB, free: 15.56 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01125/0.05471, allocations: 8.431 MB / 437 MB, free: 7.094 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008632/0.06335, allocations: 2.916 MB / 439.9 MB, free: 4.16 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004396/0.06774, allocations: 1.882 MB / 441.8 MB, free: 2.273 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.1406/0.2084, allocations: 10.45 MB / 452.2 MB, free: 116.7 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05006/0.2584, allocations: 13.92 MB / 466.1 MB, free: 112.7 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0146/0.273, allocations: 8.268 MB / 474.4 MB, free: 108.8 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009245/0.2823, allocations: 5.918 MB / 480.3 MB, free: 106.9 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003524/0.2858, allocations: 1.538 MB / 481.9 MB, free: 106.5 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004587/0.2904, allocations: 1.901 MB / 483.8 MB, free: 104.7 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002776/0.2932, allocations: 3.088 MB / 486.8 MB, free: 102.2 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006935/0.3001, allocations: 3.961 MB / 490.8 MB, free: 98.7 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01137/0.3115, allocations: 9.904 MB / 0.489 GB, free: 90.16 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.3115, allocations: 0 / 0.489 GB, free: 90.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3115, allocations: 3.375 kB / 0.489 GB, free: 90.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004343/0.3119, allocations: 0 / 0.489 GB, free: 90.16 MB / 410.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.02033/0.3322, allocations: 12.27 MB / 0.501 GB, free: 78.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.3323, allocations: 12.03 kB / 0.501 GB, free: 78.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.016/0.3483, allocations: 5.415 MB / 0.5063 GB, free: 73.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008573/0.3568, allocations: 5.665 MB / 0.5118 GB, free: 67.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004455/0.3573, allocations: 0.7017 MB / 0.5125 GB, free: 66.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001648/0.3589, allocations: 0.9291 MB / 0.5134 GB, free: 65.96 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01366/0.3726, allocations: 7.497 MB / 0.5207 GB, free: 58.78 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002048/0.3728, allocations: 19.03 kB / 0.5207 GB, free: 58.76 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007767/0.3736, allocations: 391.2 kB / 0.5211 GB, free: 58.39 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003709/0.3739, allocations: 0.5155 MB / 0.5216 GB, free: 57.87 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007577/0.3815, allocations: 3.451 MB / 0.525 GB, free: 54.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04403/0.4256, allocations: 38.19 MB / 0.5623 GB, free: 17.19 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005613/0.4312, allocations: 6.237 MB / 0.5684 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00114/0.4323, allocations: 1.074 MB / 0.5694 GB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001984/0.4325, allocations: 112.7 kB / 0.5695 GB, free: 11.12 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.169e-05/0.4325, allocations: 75.36 kB / 0.5696 GB, free: 11.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=372): time 6.502e-06/0.4326, allocations: 4 kB / 0.5696 GB, free: 11.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=380): time 0.01243/0.445, allocations: 7.248 MB / 0.5767 GB, free: 3.812 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.445, allocations: 94.38 kB / 0.5768 GB, free: 3.707 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003065/0.4481, allocations: 3.411 MB / 0.5801 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001729/0.4483, allocations: 85.7 kB / 0.5802 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2363/0.6846, allocations: 4.486 MB / 0.5846 GB, free: 85.57 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001191/0.6858, allocations: 1.409 MB / 0.5859 GB, free: 84.86 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001143/0.6869, allocations: 1.328 MB / 0.5872 GB, free: 84.73 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 3.797e-05/0.687, allocations: 480.7 kB / 0.5877 GB, free: 84.27 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008424/0.6878, allocations: 0.6408 MB / 0.5883 GB, free: 84.25 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001826/0.6896, allocations: 4.407 MB / 0.5926 GB, free: 79.71 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00302/0.6926, allocations: 5.721 MB / 0.5982 GB, free: 75.21 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.512e-05/0.6927, allocations: 26.53 kB / 0.5982 GB, free: 75.21 MB / 410.8 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.00522/0.6979, allocations: 4.819 MB / 0.6029 GB, free: 74.76 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.148e-05/0.6979, allocations: 44.42 kB / 0.603 GB, free: 74.76 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.099e-05/0.698, allocations: 81.09 kB / 0.6031 GB, free: 74.76 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001628/0.6996, allocations: 0.7948 MB / 0.6038 GB, free: 74.7 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00256/0.7022, allocations: 1.278 MB / 0.6051 GB, free: 74.7 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00497/0.7072, allocations: 6.554 MB / 0.6115 GB, free: 70.87 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002216/0.7094, allocations: 240.4 kB / 0.6117 GB, free: 70.84 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000345/0.7097, allocations: 258.8 kB / 0.612 GB, free: 70.84 MB / 410.8 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002001/0.7117, allocations: 0.5633 MB / 0.6125 GB, free: 70.68 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000656/0.7124, allocations: 0.5214 MB / 0.613 GB, free: 70.46 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003575/0.716, allocations: 2.974 MB / 0.6159 GB, free: 70.2 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.535e-05/0.716, allocations: 38 kB / 0.616 GB, free: 70.2 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.716, allocations: 14.69 kB / 0.616 GB, free: 70.19 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.106e-05/0.716, allocations: 18.7 kB / 0.616 GB, free: 70.19 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009744/0.7257, allocations: 8.1 MB / 0.6239 GB, free: 69.39 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.7258, allocations: 7.484 kB / 0.6239 GB, free: 69.39 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001268/0.727, allocations: 0.5913 MB / 0.6245 GB, free: 69.39 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001297/0.7283, allocations: 0.6547 MB / 0.6251 GB, free: 69.33 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/0.7285, allocations: 81.31 kB / 0.6252 GB, free: 69.33 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004015/0.7325, allocations: 6.039 MB / 0.6311 GB, free: 65.55 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.7325, allocations: 3.156 kB / 0.6311 GB, free: 65.55 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004084/0.7366, allocations: 3.688 MB / 0.6347 GB, free: 64.73 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008762/0.7374, allocations: 0.6883 MB / 0.6354 GB, free: 64.51 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003369/0.7378, allocations: 67.91 kB / 0.6354 GB, free: 64.51 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007941/0.7386, allocations: 98.14 kB / 0.6355 GB, free: 64.5 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002709/0.7388, allocations: 271.8 kB / 0.6358 GB, free: 64.5 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001335/0.739, allocations: 83.19 kB / 0.6359 GB, free: 64.5 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.001238/0.7402, allocations: 1.463 MB / 0.6373 GB, free: 64.31 MB / 410.8 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7402, allocations: 0 / 0.6373 GB, free: 64.31 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.003564/0.7438, allocations: 1.546 MB / 0.6388 GB, free: 64.31 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (362): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003417/0.7441, allocations: 267.3 kB / 0.6391 GB, free: 64.21 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.003467/0.7476, allocations: 3.65 MB / 0.6426 GB, free: 62.68 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.7476, allocations: 4 kB / 0.6426 GB, free: 62.68 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001602/0.7492, allocations: 1.818 MB / 0.6444 GB, free: 61.33 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002109/0.7513, allocations: 0.9164 MB / 0.6453 GB, free: 60.89 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01348/0.7648, allocations: 13.22 MB / 0.6582 GB, free: 49.06 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001491/0.7663, allocations: 2.477 MB / 0.6606 GB, free: 47.21 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.001646/0.7679, allocations: 0.6666 MB / 0.6613 GB, free: 46.7 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001385/0.7693, allocations: 1.006 MB / 0.6623 GB, free: 45.82 MB / 410.8 MB Notification: Performance of SimCode: time 1.132e-06/0.7693, allocations: 4 kB / 0.6623 GB, free: 45.82 MB / 410.8 MB Notification: Performance of Templates: time 0.0736/0.8429, allocations: 61.33 MB / 0.7222 GB, free: 2.348 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (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=240 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.23031656909734]