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/ModelicaServices 4.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 107 kB / 16.41 MB, free: 6.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 240.1 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 184.5 kB / 290.4 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03401/0.03401, allocations: 8.794 MB / 349.3 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 79.86 kB / 464.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09893/0.1005, allocations: 51.57 MB / 0.5041 GB, free: 9.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve2): time 0.244/0.3445, allocations: 25.43 MB / 0.529 GB, free: 5.004 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0153/0.3598, allocations: 7.94 MB / 0.5367 GB, free: 4.906 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005955/0.3659, allocations: 171.7 kB / 0.5369 GB, free: 4.906 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01701/0.3829, allocations: 7.649 MB / 0.5443 GB, free: 3.988 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01094/0.3939, allocations: 3.055 MB / 0.5473 GB, free: 3.129 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006053/0.4, allocations: 2.013 MB / 0.5493 GB, free: 2.934 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01437/0.4144, allocations: 9.216 MB / 0.5583 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0262/0.4406, allocations: 17.27 MB / 0.5751 GB, free: 5.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008834/0.4495, allocations: 4.771 MB / 0.5798 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01008/0.4596, allocations: 5.238 MB / 0.5849 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003937/0.4636, allocations: 1.352 MB / 0.5862 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007319/0.471, allocations: 1.719 MB / 0.5879 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004992/0.476, allocations: 2.669 MB / 0.5905 GB, free: 6.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01207/0.4881, allocations: 5.088 MB / 0.5955 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02198/0.5101, allocations: 18.16 MB / 0.6132 GB, free: 15.58 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.5102, allocations: 0 / 0.6132 GB, free: 15.58 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5102, allocations: 0 / 0.6132 GB, free: 15.58 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004765/0.5106, allocations: 0 / 0.6132 GB, free: 15.58 MB / 430.1 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.03434/0.545, allocations: 10.76 MB / 0.6237 GB, free: 4.812 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.5451, allocations: 8.031 kB / 0.6237 GB, free: 4.805 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03209/0.5772, allocations: 5.672 MB / 0.6293 GB, free: 15.19 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01385/0.5911, allocations: 5.794 MB / 0.6349 GB, free: 9.375 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006415/0.5918, allocations: 0.5815 MB / 0.6355 GB, free: 8.805 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003277/0.595, allocations: 0.763 MB / 0.6363 GB, free: 8.051 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03199/0.6271, allocations: 12.76 MB / 0.6487 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002926/0.6274, allocations: 11.91 kB / 0.6487 GB, free: 11.26 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002521/0.6299, allocations: 326.4 kB / 0.649 GB, free: 10.95 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005236/0.6305, allocations: 0.4928 MB / 0.6495 GB, free: 10.45 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02773/0.6582, allocations: 12.26 MB / 0.6615 GB, free: 14.18 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07446/0.7327, allocations: 43.24 MB / 0.7037 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02335/0.7561, allocations: 25.2 MB / 0.7283 GB, free: 5.738 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005218/0.7614, allocations: 2.98 MB / 0.7312 GB, free: 2.75 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000427/0.7619, allocations: 242.9 kB / 0.7315 GB, free: 2.488 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4464/1.208, allocations: 2.579 MB / 0.734 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 9.819e-06/1.208, allocations: 0 / 0.734 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.03946/1.248, allocations: 18.1 MB / 0.7517 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/1.248, allocations: 354.5 kB / 0.752 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006644/1.255, allocations: 3.521 MB / 0.7554 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008133/1.255, allocations: 91.81 kB / 0.7555 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002367/1.258, allocations: 3.375 MB / 0.7588 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001674/1.26, allocations: 1.346 MB / 0.7601 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001874/1.261, allocations: 1.084 MB / 0.7612 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.139e-05/1.261, allocations: 308 kB / 0.7615 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003897/1.265, allocations: 2.548 MB / 0.764 GB, free: 153.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004425/1.27, allocations: 4.512 MB / 0.7684 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008678/1.279, allocations: 7.453 MB / 0.7757 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.8e-05/1.279, allocations: 19.75 kB / 0.7757 GB, free: 145.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01351/1.292, allocations: 8.275 MB / 0.7838 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.095e-05/1.292, allocations: 56.86 kB / 0.7838 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001062/1.292, allocations: 62.31 kB / 0.7839 GB, free: 142 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002472/1.295, allocations: 0.9988 MB / 0.7848 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004376/1.299, allocations: 1.256 MB / 0.7861 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01044/1.31, allocations: 8.809 MB / 0.7947 GB, free: 136.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004662/1.314, allocations: 367.1 kB / 0.795 GB, free: 136.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009159/1.315, allocations: 260.1 kB / 0.7953 GB, free: 136.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006314/1.322, allocations: 2.901 MB / 0.7981 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001083/1.323, allocations: 394.3 kB / 0.7985 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008628/1.331, allocations: 6.173 MB / 0.8045 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.058e-05/1.332, allocations: 40 kB / 0.8046 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.484e-05/1.332, allocations: 12 kB / 0.8046 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-05/1.332, allocations: 21.69 kB / 0.8046 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02221/1.354, allocations: 14.63 MB / 0.8189 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-05/1.354, allocations: 8 kB / 0.8189 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002395/1.356, allocations: 0.6865 MB / 0.8196 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002128/1.358, allocations: 0.8736 MB / 0.8204 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003224/1.359, allocations: 87.97 kB / 0.8205 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008443/1.367, allocations: 7.75 MB / 0.8281 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/1.367, allocations: 12.03 kB / 0.8281 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01117/1.378, allocations: 8.779 MB / 0.8366 GB, free: 94.56 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002634/1.381, allocations: 0.9061 MB / 0.8375 GB, free: 93.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008771/1.382, allocations: 76.56 kB / 0.8376 GB, free: 93.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002018/1.384, allocations: 199.8 kB / 0.8378 GB, free: 93.36 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005042/1.385, allocations: 267.1 kB / 0.838 GB, free: 93.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001915/1.385, allocations: 122.7 kB / 0.8382 GB, free: 92.98 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003098/1.388, allocations: 2.363 MB / 0.8405 GB, free: 90.62 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/1.388, allocations: 0 / 0.8405 GB, free: 90.62 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005781/1.394, allocations: 1.451 MB / 0.8419 GB, free: 89.18 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006661/1.394, allocations: 249.1 kB / 0.8421 GB, free: 88.93 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008828/1.403, allocations: 6.48 MB / 0.8485 GB, free: 82.43 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/1.403, allocations: 0 / 0.8485 GB, free: 82.43 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004324/1.408, allocations: 3.089 MB / 0.8515 GB, free: 79.32 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004264/1.412, allocations: 0.8144 MB / 0.8523 GB, free: 78.54 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02193/1.434, allocations: 13.54 MB / 0.8655 GB, free: 64.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003851/1.438, allocations: 4.859 MB / 0.8702 GB, free: 60 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001592/1.439, allocations: 375.3 kB / 0.8706 GB, free: 59.64 MB / 0.5294 GB Notification: Performance of SimCode: time 1.162e-06/1.439, allocations: 0 / 0.8706 GB, free: 59.64 MB / 0.5294 GB Notification: Performance of Templates: time 0.3996/1.839, allocations: 132.3 MB / 0.9998 GB, free: 135 MB / 0.545 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)