Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/HanserModelica 1.1.1/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 1.1.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/HanserModelica 1.1.1/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008732/0.0008734, allocations: 180.9 kB / 15.43 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/HanserModelica 1.1.1/package.mo): time 0.03888/0.03888, allocations: 8.923 MB / 25.1 MB, free: 3.684 MB / 18.57 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 225.7 MB / 253.7 MB, free: 5.238 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007062/0.0007063, allocations: 108 kB / 307 MB, free: 2.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002953/0.0002954, allocations: 8 kB / 370.3 MB, free: 3.625 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2482, allocations: 52.55 MB / 422.8 MB, free: 47.98 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.0224/0.2707, allocations: 24.27 MB / 447.1 MB, free: 30.41 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01657/0.2873, allocations: 9.801 MB / 456.9 MB, free: 21.44 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007206/0.2945, allocations: 191.4 kB / 457.1 MB, free: 21.25 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005471/0.3, allocations: 1.647 MB / 458.7 MB, free: 19.6 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008992/0.3091, allocations: 3.406 MB / 462.1 MB, free: 15.95 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004931/0.314, allocations: 2.239 MB / 464.4 MB, free: 13.52 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01016/0.3242, allocations: 9.608 MB / 474 MB, free: 3.879 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04022/0.3644, allocations: 26.98 MB / 0.4892 GB, free: 7.301 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007854/0.3723, allocations: 3.775 MB / 0.4929 GB, free: 3.508 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006898/0.3793, allocations: 4.505 MB / 0.4973 GB, free: 14.98 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002055/0.3813, allocations: 0.5859 MB / 0.4979 GB, free: 14.39 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003866/0.3852, allocations: 0.9409 MB / 0.4988 GB, free: 13.46 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002827/0.3881, allocations: 1.798 MB / 0.5006 GB, free: 11.65 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008068/0.3962, allocations: 4.492 MB / 0.5049 GB, free: 7.133 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02042/0.4166, allocations: 19.03 MB / 0.5235 GB, free: 4.035 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.4167, allocations: 3.938 kB / 0.5235 GB, free: 4.031 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.4167, allocations: 0 / 0.5235 GB, free: 4.031 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000497/0.4172, allocations: 4 kB / 0.5235 GB, free: 4.027 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.02634/0.4435, allocations: 9.585 MB / 0.5329 GB, free: 10.35 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.4436, allocations: 19.97 kB / 0.5329 GB, free: 10.33 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02886/0.4725, allocations: 5.581 MB / 0.5384 GB, free: 4.738 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01384/0.4863, allocations: 6.022 MB / 0.5442 GB, free: 14.65 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007862/0.4872, allocations: 0.6904 MB / 0.5449 GB, free: 13.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003787/0.491, allocations: 0.9177 MB / 0.5458 GB, free: 13.05 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3624/0.8534, allocations: 14.78 MB / 0.5603 GB, free: 108.8 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003729/0.8538, allocations: 12.16 kB / 0.5603 GB, free: 108.8 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00226/0.8561, allocations: 385.7 kB / 0.5606 GB, free: 108.8 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006711/0.8567, allocations: 0.5068 MB / 0.5611 GB, free: 108.7 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03929/0.896, allocations: 13.49 MB / 0.5743 GB, free: 103.7 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08865/0.9847, allocations: 46.76 MB / 0.62 GB, free: 66.6 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02009/1.005, allocations: 28.25 MB / 0.6476 GB, free: 34.65 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006122/1.011, allocations: 3.011 MB / 0.6505 GB, free: 31.63 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003839/1.011, allocations: 248.5 kB / 0.6507 GB, free: 31.36 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.364e-05/1.012, allocations: 73.52 kB / 0.6508 GB, free: 31.28 MB / 426.8 MB Notification: Performance of pre-optimization done (n=375): time 9.017e-06/1.012, allocations: 4 kB / 0.6508 GB, free: 31.28 MB / 426.8 MB Notification: Performance of matching and sorting (n=382): time 0.03767/1.049, allocations: 14.52 MB / 0.665 GB, free: 16.67 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.722e-05/1.049, allocations: 94.41 kB / 0.6651 GB, free: 16.56 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006568/1.056, allocations: 3.447 MB / 0.6685 GB, free: 13.11 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005883/1.057, allocations: 89.7 kB / 0.6685 GB, free: 13.02 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002376/1.059, allocations: 3.947 MB / 0.6724 GB, free: 9.047 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001467/1.06, allocations: 1.313 MB / 0.6737 GB, free: 7.746 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004002/1.061, allocations: 120 kB / 0.6738 GB, free: 7.629 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0003406/1.061, allocations: 0.5381 MB / 0.6743 GB, free: 7.082 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00535/1.067, allocations: 2.537 MB / 0.6768 GB, free: 4.539 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006789/1.073, allocations: 4.98 MB / 0.6817 GB, free: 14.4 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0157/1.089, allocations: 8.175 MB / 0.6896 GB, free: 5.051 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.682e-05/1.089, allocations: 24 kB / 0.6897 GB, free: 5.027 MB / 442.8 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.02251/1.112, allocations: 8.431 MB / 0.6979 GB, free: 12.56 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.476e-05/1.112, allocations: 40 kB / 0.6979 GB, free: 12.52 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001677/1.112, allocations: 84.84 kB / 0.698 GB, free: 12.44 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00325/1.115, allocations: 0.8339 MB / 0.6988 GB, free: 11.61 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007759/1.123, allocations: 1.341 MB / 0.7001 GB, free: 10.26 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01622/1.139, allocations: 7.081 MB / 0.7071 GB, free: 3.051 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006139/1.146, allocations: 327.3 kB / 0.7074 GB, free: 2.73 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001039/1.147, allocations: 300 kB / 0.7077 GB, free: 2.438 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (708): * Single equations (assignments): 707 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009057/1.156, allocations: 3.483 MB / 0.7111 GB, free: 14.94 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001192/1.157, allocations: 391.2 kB / 0.7114 GB, free: 14.55 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01525/1.172, allocations: 5.808 MB / 0.7171 GB, free: 8.707 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.124e-05/1.172, allocations: 47.94 kB / 0.7171 GB, free: 8.66 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.166e-05/1.172, allocations: 11.94 kB / 0.7172 GB, free: 8.648 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.122e-05/1.172, allocations: 19.92 kB / 0.7172 GB, free: 8.629 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.037/1.209, allocations: 14.76 MB / 0.7316 GB, free: 9.68 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-05/1.209, allocations: 7.938 kB / 0.7316 GB, free: 9.672 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004229/1.214, allocations: 0.6748 MB / 0.7323 GB, free: 8.996 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002956/1.217, allocations: 0.6858 MB / 0.7329 GB, free: 8.309 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004856/1.217, allocations: 91.97 kB / 0.733 GB, free: 8.219 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01315/1.23, allocations: 6.134 MB / 0.739 GB, free: 1.945 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.138e-05/1.23, allocations: 11.92 kB / 0.739 GB, free: 1.934 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2581/1.489, allocations: 8.489 MB / 0.7473 GB, free: 156.4 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002017/1.491, allocations: 0.8666 MB / 0.7481 GB, free: 156.1 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007793/1.491, allocations: 69.16 kB / 0.7482 GB, free: 156.1 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001904/1.493, allocations: 190.1 kB / 0.7484 GB, free: 156 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005264/1.494, allocations: 258.7 kB / 0.7486 GB, free: 156 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002251/1.494, allocations: 105.6 kB / 0.7487 GB, free: 155.9 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.003288/1.497, allocations: 2.308 MB / 0.751 GB, free: 155.1 MB / 490.8 MB Notification: Performance of sort global known variables: time 3.1e-07/1.497, allocations: 0 / 0.751 GB, free: 155.1 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.004943/1.502, allocations: 1.51 MB / 0.7525 GB, free: 154.9 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 1 (smr.phiMechanical) * 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 (365): * Single equations (assignments): 364 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,38,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005851/1.503, allocations: 250.5 kB / 0.7527 GB, free: 154.7 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01094/1.514, allocations: 6.351 MB / 0.7589 GB, free: 152.3 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/1.514, allocations: 0.8438 kB / 0.7589 GB, free: 152.3 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00488/1.519, allocations: 2.858 MB / 0.7617 GB, free: 151.2 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005926/1.525, allocations: 0.8483 MB / 0.7625 GB, free: 150.9 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02392/1.549, allocations: 19.4 MB / 0.7815 GB, free: 140.2 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00511/1.554, allocations: 5.901 MB / 0.7872 GB, free: 136.5 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.004728/1.559, allocations: 1.861 MB / 0.7891 GB, free: 135.3 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009399/1.56, allocations: 331.4 kB / 0.7894 GB, free: 134.9 MB / 490.8 MB Notification: Performance of SimCode: time 8.01e-07/1.56, allocations: 0 / 0.7894 GB, free: 134.9 MB / 490.8 MB Notification: Performance of Templates: time 0.08741/1.647, allocations: 57.24 MB / 0.8453 GB, free: 80.69 MB / 490.8 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1)