Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|quadraticSpeedDependentTorqueQS.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009457/0.0009457, allocations: 88.81 kB / 17.58 MB, free: 5.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 184.3 kB / 18.48 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.692/1.692, allocations: 205.4 MB / 224.6 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004282/0.0004282, allocations: 16 kB / 281.4 MB, free: 3.691 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1059, allocations: 47.57 MB / 329 MB, free: 4.055 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.0264/0.1323, allocations: 25.43 MB / 354.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.018/0.1504, allocations: 7.87 MB / 362.3 MB, free: 2.641 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006503/0.1569, allocations: 179.4 kB / 362.5 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005766/0.1627, allocations: 1.379 MB / 363.9 MB, free: 1.078 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009847/0.1726, allocations: 2.504 MB / 366.4 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005101/0.1777, allocations: 1.244 MB / 367.6 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01772/0.1954, allocations: 11.49 MB / 379.1 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2732/0.4687, allocations: 17.45 MB / 396.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01019/0.4789, allocations: 4.024 MB / 400.6 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009462/0.4884, allocations: 4.698 MB / 405.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002944/0.4914, allocations: 0.6109 MB / 405.9 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004912/0.4963, allocations: 0.9527 MB / 406.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002217/0.4985, allocations: 1.974 MB / 408.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004094/0.5027, allocations: 2.045 MB / 410.9 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01748/0.5201, allocations: 17.83 MB / 428.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.5202, allocations: 0 / 428.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.5202, allocations: 0 / 428.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005927/0.5208, allocations: 0 / 428.7 MB, free: 15.44 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.0293/0.5501, allocations: 10.35 MB / 439 MB, free: 6.238 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.5502, allocations: 8.031 kB / 439 MB, free: 6.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04362/0.5938, allocations: 8.61 MB / 447.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01464/0.6085, allocations: 5.827 MB / 453.5 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008217/0.6094, allocations: 0.7448 MB / 454.2 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005004/0.6144, allocations: 0.9836 MB / 455.2 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04871/0.6631, allocations: 16.49 MB / 471.7 MB, free: 6.879 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006765/0.6638, allocations: 15 kB / 471.7 MB, free: 6.867 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005293/0.6691, allocations: 413.2 kB / 472.1 MB, free: 6.477 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008092/0.67, allocations: 0.6106 MB / 472.7 MB, free: 5.863 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04094/0.7109, allocations: 15.87 MB / 488.6 MB, free: 5.984 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09984/0.8108, allocations: 52.24 MB / 0.5282 GB, free: 1.188 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4594/1.27, allocations: 52.18 MB / 0.5791 GB, free: 74.07 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006421/1.277, allocations: 3.447 MB / 0.5825 GB, free: 73.67 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01474/1.291, allocations: 9.412 MB / 0.5917 GB, free: 69.46 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.198e-05/1.292, allocations: 64.44 kB / 0.5917 GB, free: 69.4 MB / 430.1 MB Notification: Performance of pre-optimization done (n=270): time 4.348e-06/1.292, allocations: 0 / 0.5917 GB, free: 69.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=278): time 0.02822/1.32, allocations: 13.75 MB / 0.6052 GB, free: 63.87 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/1.32, allocations: 81.41 kB / 0.6052 GB, free: 63.8 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006305/1.326, allocations: 4.033 MB / 0.6092 GB, free: 62.26 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005658/1.327, allocations: 70.5 kB / 0.6092 GB, free: 62.19 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002886/1.33, allocations: 4.637 MB / 0.6138 GB, free: 58.7 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001124/1.331, allocations: 0.9908 MB / 0.6147 GB, free: 57.96 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002678/1.331, allocations: 118.6 kB / 0.6149 GB, free: 57.86 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002871/1.331, allocations: 0.5535 MB / 0.6154 GB, free: 57.45 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003283/1.335, allocations: 2.422 MB / 0.6178 GB, free: 56.55 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004432/1.339, allocations: 5.577 MB / 0.6232 GB, free: 51.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004843/1.344, allocations: 3.714 MB / 0.6268 GB, free: 48.05 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.165e-05/1.344, allocations: 32 kB / 0.6269 GB, free: 48.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01248/1.357, allocations: 8.686 MB / 0.6353 GB, free: 39.28 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.745e-05/1.357, allocations: 52 kB / 0.6354 GB, free: 39.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001703/1.357, allocations: 109.2 kB / 0.6355 GB, free: 39.12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002074/1.359, allocations: 0.8642 MB / 0.6363 GB, free: 38.26 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005063/1.364, allocations: 1.404 MB / 0.6377 GB, free: 36.86 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008752/1.373, allocations: 6.989 MB / 0.6445 GB, free: 29.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005416/1.378, allocations: 347.3 kB / 0.6449 GB, free: 29.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009293/1.379, allocations: 352 kB / 0.6452 GB, free: 29.04 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007016/1.386, allocations: 3.68 MB / 0.6488 GB, free: 25.35 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000942/1.387, allocations: 404.3 kB / 0.6492 GB, free: 24.95 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007531/1.395, allocations: 5.05 MB / 0.6541 GB, free: 19.84 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.985e-05/1.395, allocations: 35.98 kB / 0.6542 GB, free: 19.8 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/1.395, allocations: 4 kB / 0.6542 GB, free: 19.8 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-05/1.395, allocations: 23.94 kB / 0.6542 GB, free: 19.78 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01986/1.415, allocations: 12.18 MB / 0.6661 GB, free: 7.523 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/1.415, allocations: 6.25 kB / 0.6661 GB, free: 7.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00191/1.417, allocations: 0.5148 MB / 0.6666 GB, free: 7.004 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001718/1.418, allocations: 0.6915 MB / 0.6673 GB, free: 6.309 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002013/1.419, allocations: 67.98 kB / 0.6673 GB, free: 6.242 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007091/1.426, allocations: 6.14 MB / 0.6733 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/1.426, allocations: 7.953 kB / 0.6733 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01223/1.438, allocations: 7.288 MB / 0.6804 GB, free: 8.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002528/1.441, allocations: 0.8238 MB / 0.6812 GB, free: 7.672 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006556/1.441, allocations: 52 kB / 0.6813 GB, free: 7.621 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001569/1.443, allocations: 167.9 kB / 0.6815 GB, free: 7.457 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004506/1.443, allocations: 198 kB / 0.6816 GB, free: 7.262 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001935/1.443, allocations: 83.98 kB / 0.6817 GB, free: 7.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005228/1.449, allocations: 2.645 MB / 0.6843 GB, free: 4.523 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/1.449, allocations: 0 / 0.6843 GB, free: 4.523 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008101/1.457, allocations: 1.547 MB / 0.6858 GB, free: 2.98 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.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 (263): * Single equations (assignments): 262 * 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%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007164/1.458, allocations: 227.9 kB / 0.686 GB, free: 2.758 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01111/1.469, allocations: 6.07 MB / 0.692 GB, free: 12.67 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/1.469, allocations: 0 / 0.692 GB, free: 12.67 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004432/1.473, allocations: 2.472 MB / 0.6944 GB, free: 10.18 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00559/1.479, allocations: 0.8918 MB / 0.6952 GB, free: 9.293 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2903/1.769, allocations: 19.29 MB / 0.7141 GB, free: 151.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009633/1.779, allocations: 6.019 MB / 0.72 GB, free: 150.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001824/1.781, allocations: 383.5 kB / 0.7203 GB, free: 150.6 MB / 462.1 MB Notification: Performance of SimCode: time 2.154e-06/1.781, allocations: 0 / 0.7203 GB, free: 150.6 MB / 462.1 MB Notification: Performance of Templates: time 0.4444/2.225, allocations: 154 MB / 0.8707 GB, free: 141.7 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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 OMCppModelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.o OMCppModelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPACalcHelperMain.o] Error 1