Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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.SMEE_VCurve4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 183 kB / 15.98 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03704/0.03704, allocations: 8.792 MB / 25.52 MB, free: 3.75 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.289/1.289, allocations: 222.9 MB / 251.3 MB, free: 7.34 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.001042/0.001042, allocations: 110.6 kB / 303.6 MB, free: 14.51 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 71.89 kB / 366 MB, free: 176 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1968/0.1981, allocations: 51.55 MB / 417.5 MB, free: 20.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.01832/0.2165, allocations: 25.03 MB / 442.6 MB, free: 11.77 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01338/0.2299, allocations: 7.873 MB / 450.4 MB, free: 3.875 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004077/0.234, allocations: 167.5 kB / 450.6 MB, free: 3.711 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01631/0.2504, allocations: 7.222 MB / 457.8 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01157/0.262, allocations: 2.803 MB / 460.6 MB, free: 9.66 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005787/0.2678, allocations: 1.887 MB / 462.5 MB, free: 7.781 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01278/0.2806, allocations: 9.506 MB / 472 MB, free: 14.25 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0251/0.3057, allocations: 14.37 MB / 486.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006931/0.3127, allocations: 4.097 MB / 490.5 MB, free: 11.63 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007591/0.3203, allocations: 4.99 MB / 495.5 MB, free: 6.621 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00294/0.3233, allocations: 0.8516 MB / 496.3 MB, free: 5.77 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004199/0.3275, allocations: 1.214 MB / 497.5 MB, free: 4.555 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003139/0.3307, allocations: 2.169 MB / 499.7 MB, free: 2.379 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1862/0.5169, allocations: 4.561 MB / 0.4925 GB, free: 22.98 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02433/0.5413, allocations: 17.71 MB / 0.5098 GB, free: 20.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.5413, allocations: 0 / 0.5098 GB, free: 20.03 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5413, allocations: 0.75 kB / 0.5098 GB, free: 20.03 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003934/0.5417, allocations: 0 / 0.5098 GB, free: 20.03 MB / 362.7 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.05208/0.5938, allocations: 10.8 MB / 0.5203 GB, free: 15.15 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.083e-05/0.5939, allocations: 9.531 kB / 0.5203 GB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02878/0.6227, allocations: 5.639 MB / 0.5258 GB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01215/0.6349, allocations: 5.658 MB / 0.5313 GB, free: 8.891 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004745/0.6354, allocations: 0.582 MB / 0.5319 GB, free: 8.629 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003628/0.639, allocations: 0.7647 MB / 0.5327 GB, free: 8.379 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03099/0.67, allocations: 12.76 MB / 0.5451 GB, free: 13.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002088/0.6703, allocations: 11.38 kB / 0.5451 GB, free: 13.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001331/0.6716, allocations: 331.5 kB / 0.5455 GB, free: 12.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004557/0.6721, allocations: 0.4915 MB / 0.5459 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02459/0.6967, allocations: 12.25 MB / 0.5579 GB, free: 40 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08233/0.779, allocations: 43.7 MB / 0.6006 GB, free: 3.723 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02482/0.8039, allocations: 25.18 MB / 0.6252 GB, free: 7.672 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005449/0.8094, allocations: 2.968 MB / 0.6281 GB, free: 4.699 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005725/0.81, allocations: 246.1 kB / 0.6283 GB, free: 4.434 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004728/0.8147, allocations: 2.578 MB / 0.6308 GB, free: 1.789 MB / 458.7 MB Notification: Performance of pre-optimization done (n=391): time 6.863e-06/0.8148, allocations: 0 / 0.6308 GB, free: 1.789 MB / 458.7 MB Notification: Performance of matching and sorting (n=397): time 0.04097/0.8557, allocations: 18.11 MB / 0.6485 GB, free: 15.58 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001595/0.8559, allocations: 355.5 kB / 0.6488 GB, free: 15.16 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005698/0.8616, allocations: 3.526 MB / 0.6523 GB, free: 11.62 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006534/0.8623, allocations: 89.7 kB / 0.6524 GB, free: 11.53 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002248/0.8646, allocations: 3.379 MB / 0.6557 GB, free: 8.133 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001532/0.8661, allocations: 1.345 MB / 0.657 GB, free: 6.801 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001804/0.8679, allocations: 1.084 MB / 0.658 GB, free: 5.711 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.347e-05/0.868, allocations: 305.1 kB / 0.6583 GB, free: 5.41 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00375/0.8718, allocations: 2.549 MB / 0.6608 GB, free: 2.855 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1847/1.056, allocations: 4.507 MB / 0.6652 GB, free: 168.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009863/1.066, allocations: 7.452 MB / 0.6725 GB, free: 166.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001557/1.067, allocations: 17.59 kB / 0.6725 GB, free: 166.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01364/1.08, allocations: 8.281 MB / 0.6806 GB, free: 163.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.09e-05/1.08, allocations: 56.89 kB / 0.6807 GB, free: 163.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001008/1.08, allocations: 58.75 kB / 0.6807 GB, free: 163.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002523/1.083, allocations: 0.9985 MB / 0.6817 GB, free: 162.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004264/1.087, allocations: 1.258 MB / 0.6829 GB, free: 162.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009892/1.097, allocations: 8.226 MB / 0.691 GB, free: 158.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004504/1.102, allocations: 365.2 kB / 0.6913 GB, free: 158.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008877/1.103, allocations: 263.9 kB / 0.6916 GB, free: 158.1 MB / 490.7 MB 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.004821/1.107, allocations: 2.909 MB / 0.6944 GB, free: 156.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009455/1.108, allocations: 386.3 kB / 0.6948 GB, free: 156.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009798/1.118, allocations: 6.184 MB / 0.7008 GB, free: 152.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.163e-05/1.118, allocations: 40 kB / 0.7008 GB, free: 152.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/1.118, allocations: 14.62 kB / 0.7009 GB, free: 152.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.489e-05/1.118, allocations: 23.16 kB / 0.7009 GB, free: 152.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02167/1.14, allocations: 14.91 MB / 0.7154 GB, free: 140.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/1.14, allocations: 8 kB / 0.7154 GB, free: 140.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002412/1.142, allocations: 0.6801 MB / 0.7161 GB, free: 139.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002189/1.145, allocations: 0.8788 MB / 0.717 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003039/1.145, allocations: 87.97 kB / 0.717 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008303/1.153, allocations: 7.184 MB / 0.7241 GB, free: 131.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/1.153, allocations: 4 kB / 0.7241 GB, free: 131.6 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04273/1.196, allocations: 30.06 MB / 0.7534 GB, free: 101.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001996/1.198, allocations: 0.9062 MB / 0.7543 GB, free: 100.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005307/1.199, allocations: 87.92 kB / 0.7544 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001931/1.201, allocations: 195.6 kB / 0.7546 GB, free: 100 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005179/1.201, allocations: 275.2 kB / 0.7548 GB, free: 99.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002114/1.201, allocations: 108 kB / 0.7549 GB, free: 99.62 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002806/1.204, allocations: 2.368 MB / 0.7573 GB, free: 97.27 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.204, allocations: 0 / 0.7573 GB, free: 97.27 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005741/1.21, allocations: 1.768 MB / 0.759 GB, free: 95.5 MB / 490.7 MB 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.0005956/1.21, allocations: 246.3 kB / 0.7592 GB, free: 95.26 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008687/1.219, allocations: 6.464 MB / 0.7655 GB, free: 88.78 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.012e-06/1.219, allocations: 3.25 kB / 0.7655 GB, free: 88.78 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004195/1.223, allocations: 3.074 MB / 0.7685 GB, free: 85.68 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003564/1.227, allocations: 0.7802 MB / 0.7693 GB, free: 84.91 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0227/1.25, allocations: 20.08 MB / 0.7889 GB, free: 64.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004519/1.254, allocations: 5.126 MB / 0.7939 GB, free: 59.53 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004939/1.259, allocations: 1.586 MB / 0.7955 GB, free: 57.94 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001169/1.26, allocations: 339.4 kB / 0.7958 GB, free: 57.61 MB / 490.7 MB Notification: Performance of SimCode: time 1.343e-06/1.26, allocations: 0 / 0.7958 GB, free: 57.61 MB / 490.7 MB Notification: Performance of Templates: time 0.2542/1.515, allocations: 66.74 MB / 0.861 GB, free: 146 MB / 490.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1)