Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 102.7 kB / 15.71 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.571/1.571, allocations: 223.3 MB / 239.7 MB, free: 5.648 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.001874/0.001874, allocations: 195.6 kB / 290.9 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03432/0.03432, allocations: 8.779 MB / 350.8 MB, free: 4.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000376/0.0003763, allocations: 11.08 kB / 413.8 MB, free: 42.99 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.105, allocations: 52.56 MB / 466.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02377/0.1288, allocations: 24.07 MB / 490.4 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01559/0.1444, allocations: 7.37 MB / 497.8 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005388/0.1498, allocations: 191.4 kB / 498 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00422/0.1541, allocations: 1.266 MB / 499.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007443/0.1615, allocations: 2.216 MB / 0.4897 GB, free: 10.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004389/0.1659, allocations: 1.195 MB / 0.4909 GB, free: 9.176 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01868/0.1846, allocations: 10.61 MB / 0.5013 GB, free: 14.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03495/0.2196, allocations: 17.21 MB / 0.5181 GB, free: 13.22 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007432/0.2271, allocations: 3.746 MB / 0.5217 GB, free: 9.465 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008621/0.2358, allocations: 4.296 MB / 0.5259 GB, free: 5.152 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002454/0.2383, allocations: 0.5898 MB / 0.5265 GB, free: 4.562 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004271/0.2426, allocations: 0.9254 MB / 0.5274 GB, free: 3.637 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002301/0.2449, allocations: 1.767 MB / 0.5291 GB, free: 1.863 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2567/0.5016, allocations: 1.911 MB / 0.531 GB, free: 22.94 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02022/0.5218, allocations: 17.12 MB / 0.5477 GB, free: 18.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.077e-05/0.5219, allocations: 0 / 0.5477 GB, free: 18.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.5219, allocations: 0.7812 kB / 0.5477 GB, free: 18.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0008911/0.5228, allocations: 1.5 kB / 0.5477 GB, free: 18.04 MB / 366.1 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.03393/0.5568, allocations: 9.682 MB / 0.5572 GB, free: 13.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/0.5568, allocations: 9.344 kB / 0.5572 GB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0363/0.5931, allocations: 5.591 MB / 0.5626 GB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02333/0.6165, allocations: 5.95 MB / 0.5684 GB, free: 9.508 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001337/0.618, allocations: 0.6912 MB / 0.5691 GB, free: 9.488 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007079/0.6251, allocations: 0.9086 MB / 0.57 GB, free: 9.484 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05659/0.6817, allocations: 14.78 MB / 0.5844 GB, free: 6.273 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006982/0.6825, allocations: 21.98 kB / 0.5845 GB, free: 6.266 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005592/0.6881, allocations: 386 kB / 0.5848 GB, free: 6.266 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005892/0.6887, allocations: 0.5074 MB / 0.5853 GB, free: 5.895 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03443/0.7231, allocations: 13.49 MB / 0.5985 GB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1001/0.8233, allocations: 46.73 MB / 0.6441 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02503/0.8483, allocations: 28.25 MB / 0.6717 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006161/0.8546, allocations: 3.015 MB / 0.6747 GB, free: 11.64 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000521/0.8552, allocations: 238.7 kB / 0.6749 GB, free: 11.38 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.63e-05/0.8552, allocations: 80.86 kB / 0.675 GB, free: 11.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=375): time 5.981e-06/0.8553, allocations: 0 / 0.675 GB, free: 11.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=382): time 0.04005/0.8953, allocations: 15.47 MB / 0.6901 GB, free: 11.78 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.409e-05/0.8954, allocations: 90.41 kB / 0.6902 GB, free: 11.68 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008577/0.904, allocations: 3.455 MB / 0.6935 GB, free: 8.219 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001601/0.9057, allocations: 85.7 kB / 0.6936 GB, free: 8.129 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004244/0.91, allocations: 3.943 MB / 0.6975 GB, free: 4.16 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002351/0.9124, allocations: 1.311 MB / 0.6988 GB, free: 2.859 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006022/0.913, allocations: 120 kB / 0.6989 GB, free: 2.742 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0004424/0.9134, allocations: 0.5381 MB / 0.6994 GB, free: 2.195 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.334/1.247, allocations: 2.527 MB / 0.7019 GB, free: 158 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008799/1.256, allocations: 4.986 MB / 0.7067 GB, free: 155 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008375/1.265, allocations: 3.704 MB / 0.7103 GB, free: 153.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001898/1.265, allocations: 23.81 kB / 0.7104 GB, free: 153.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01968/1.285, allocations: 8.434 MB / 0.7186 GB, free: 150.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.669e-05/1.285, allocations: 52.77 kB / 0.7187 GB, free: 150.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001737/1.285, allocations: 80.44 kB / 0.7187 GB, free: 150.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002141/1.287, allocations: 0.8419 MB / 0.7196 GB, free: 150.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004987/1.292, allocations: 1.335 MB / 0.7209 GB, free: 150.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009135/1.301, allocations: 7.087 MB / 0.7278 GB, free: 146.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004965/1.306, allocations: 321.4 kB / 0.7281 GB, free: 146.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001286/1.308, allocations: 294.9 kB / 0.7284 GB, free: 146.1 MB / 478.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008042/1.316, allocations: 3.485 MB / 0.7318 GB, free: 144.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009994/1.317, allocations: 388.7 kB / 0.7321 GB, free: 144.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009185/1.326, allocations: 5.836 MB / 0.7378 GB, free: 141 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.616e-05/1.326, allocations: 40.61 kB / 0.7379 GB, free: 140.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/1.326, allocations: 8 kB / 0.7379 GB, free: 140.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.521e-05/1.326, allocations: 22.94 kB / 0.7379 GB, free: 140.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02461/1.351, allocations: 14.76 MB / 0.7523 GB, free: 128.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.749e-05/1.351, allocations: 4 kB / 0.7523 GB, free: 128.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002329/1.353, allocations: 0.6709 MB / 0.753 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001714/1.355, allocations: 0.6975 MB / 0.7537 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002581/1.355, allocations: 91.81 kB / 0.7538 GB, free: 127.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006782/1.362, allocations: 6.121 MB / 0.7597 GB, free: 120.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/1.362, allocations: 15.88 kB / 0.7597 GB, free: 120.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01116/1.373, allocations: 8.498 MB / 0.768 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002979/1.376, allocations: 0.867 MB / 0.7689 GB, free: 111.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008286/1.377, allocations: 72 kB / 0.769 GB, free: 111.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001889/1.379, allocations: 179.8 kB / 0.7691 GB, free: 111.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004122/1.379, allocations: 262.7 kB / 0.7694 GB, free: 110.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001935/1.379, allocations: 104 kB / 0.7695 GB, free: 110.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003732/1.383, allocations: 2.311 MB / 0.7717 GB, free: 108.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.21e-07/1.383, allocations: 1.312 kB / 0.7717 GB, free: 108.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006914/1.39, allocations: 1.504 MB / 0.7732 GB, free: 106.9 MB / 478.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006388/1.391, allocations: 250.2 kB / 0.7734 GB, free: 106.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009203/1.4, allocations: 6.351 MB / 0.7796 GB, free: 100.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/1.4, allocations: 1.859 kB / 0.7796 GB, free: 100.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003606/1.404, allocations: 2.858 MB / 0.7824 GB, free: 97.47 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004161/1.408, allocations: 0.8664 MB / 0.7833 GB, free: 96.63 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02583/1.434, allocations: 18.31 MB / 0.8012 GB, free: 78.23 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005137/1.439, allocations: 5.719 MB / 0.8068 GB, free: 72.46 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00232/1.441, allocations: 371.4 kB / 0.8071 GB, free: 72.1 MB / 478.1 MB Notification: Performance of SimCode: time 1.142e-06/1.441, allocations: 4 kB / 0.8071 GB, free: 72.1 MB / 478.1 MB Notification: Performance of Templates: time 0.4465/1.888, allocations: 146.2 MB / 0.9499 GB, free: 100.2 MB / 478.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.makefile make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppHanserModelica_HanserModelica.SynchronousMachines.SMR_MTPACalcHelperMain.o OMCppHanserModelica_HanserModelica.SynchronousMachines.SMR_MTPACalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppHanserModelica_HanserModelica.SynchronousMachines.SMR_MTPACalcHelperMain.o] Error 1