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.001486/0.001486, allocations: 105.4 kB / 17.8 MB, free: 5.688 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.001569/0.001569, allocations: 197.9 kB / 18.73 MB, free: 4.77 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.806/1.806, allocations: 205.1 MB / 224.6 MB, free: 12.46 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.001387/0.001387, allocations: 55.94 kB / 280.7 MB, free: 3.555 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1261, allocations: 46.63 MB / 327.3 MB, free: 4.863 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03376/0.16, allocations: 28.68 MB / 356 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02277/0.1828, allocations: 8.464 MB / 364.4 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009191/0.192, allocations: 171.4 kB / 364.6 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02155/0.2137, allocations: 7.752 MB / 372.3 MB, free: 7.605 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0133/0.227, allocations: 2.773 MB / 375.1 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006822/0.2339, allocations: 1.785 MB / 376.9 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2845/0.5184, allocations: 10.58 MB / 387.5 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0334/0.5519, allocations: 17.91 MB / 405.4 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01123/0.5632, allocations: 4.868 MB / 410.3 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01219/0.5754, allocations: 6.11 MB / 416.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004837/0.5803, allocations: 1.082 MB / 417.5 MB, free: 0 / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01429/0.5946, allocations: 1.953 MB / 419.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006496/0.6011, allocations: 2.65 MB / 422.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01628/0.6174, allocations: 5.573 MB / 427.6 MB, free: 7.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02723/0.6447, allocations: 18.35 MB / 446 MB, free: 5.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.067e-05/0.6448, allocations: 4 kB / 446 MB, free: 5.824 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.6448, allocations: 0 / 446 MB, free: 5.824 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0008789/0.6457, allocations: 0 / 446 MB, free: 5.824 MB / 350.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.05127/0.697, allocations: 12.48 MB / 458.5 MB, free: 9.348 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.583e-05/0.6971, allocations: 15.97 kB / 458.5 MB, free: 9.332 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04972/0.7468, allocations: 8.573 MB / 467 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02177/0.7686, allocations: 5.889 MB / 472.9 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001281/0.77, allocations: 0.7441 MB / 473.7 MB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006774/0.7768, allocations: 0.9786 MB / 474.7 MB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0649/0.8417, allocations: 16.57 MB / 491.2 MB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007767/0.8426, allocations: 19.8 kB / 491.2 MB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005933/0.8485, allocations: 417 kB / 491.7 MB, free: 8.469 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001049/0.8496, allocations: 0.5989 MB / 492.3 MB, free: 7.867 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05003/0.8997, allocations: 15.96 MB / 0.4963 GB, free: 7.898 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6679/1.568, allocations: 52.11 MB / 0.5472 GB, free: 122.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03438/1.602, allocations: 52.26 MB / 0.5982 GB, free: 73.03 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006946/1.609, allocations: 3.46 MB / 0.6016 GB, free: 72.98 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02171/1.631, allocations: 9.415 MB / 0.6108 GB, free: 70.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.85e-05/1.631, allocations: 64.12 kB / 0.6109 GB, free: 70.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 7.284e-06/1.631, allocations: 0 / 0.6109 GB, free: 70.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.0298/1.661, allocations: 12.87 MB / 0.6234 GB, free: 64.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/1.661, allocations: 79.56 kB / 0.6235 GB, free: 63.98 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009325/1.67, allocations: 4.072 MB / 0.6275 GB, free: 61.78 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002089/1.67, allocations: 75.05 kB / 0.6275 GB, free: 61.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002922/1.673, allocations: 4.628 MB / 0.6321 GB, free: 57.67 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008214/1.674, allocations: 0.9901 MB / 0.633 GB, free: 56.83 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002861/1.677, allocations: 1.234 MB / 0.6342 GB, free: 56.11 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.06e-05/1.677, allocations: 301.1 kB / 0.6345 GB, free: 55.81 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003831/1.681, allocations: 2.448 MB / 0.6369 GB, free: 54.51 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005764/1.687, allocations: 5.6 MB / 0.6424 GB, free: 48.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009603/1.696, allocations: 8.69 MB / 0.6509 GB, free: 41.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001507/1.697, allocations: 28 kB / 0.6509 GB, free: 41.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01504/1.712, allocations: 8.739 MB / 0.6594 GB, free: 32.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.95e-05/1.712, allocations: 60.16 kB / 0.6595 GB, free: 32.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001999/1.712, allocations: 108 kB / 0.6596 GB, free: 32.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002235/1.714, allocations: 0.8485 MB / 0.6604 GB, free: 31.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004099/1.718, allocations: 1.4 MB / 0.6618 GB, free: 29.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009068/1.727, allocations: 7.001 MB / 0.6686 GB, free: 22.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004923/1.732, allocations: 347.3 kB / 0.669 GB, free: 22.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006917/1.733, allocations: 348 kB / 0.6693 GB, free: 22.16 MB / 446.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 (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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007112/1.74, allocations: 3.684 MB / 0.6729 GB, free: 18.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001334/1.741, allocations: 403 kB / 0.6733 GB, free: 18.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00871/1.75, allocations: 5.066 MB / 0.6782 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.996e-05/1.75, allocations: 28 kB / 0.6782 GB, free: 12.92 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.848e-05/1.75, allocations: 12 kB / 0.6783 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.007e-05/1.75, allocations: 15.94 kB / 0.6783 GB, free: 12.89 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02754/1.778, allocations: 12.21 MB / 0.6902 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.709e-05/1.778, allocations: 4 kB / 0.6902 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002147/1.78, allocations: 0.5187 MB / 0.6907 GB, free: 80 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002332/1.782, allocations: 0.6878 MB / 0.6914 GB, free: 15.39 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000364/1.783, allocations: 67.97 kB / 0.6914 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01045/1.793, allocations: 6.142 MB / 0.6974 GB, free: 9.039 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/1.793, allocations: 7.938 kB / 0.6974 GB, free: 9.031 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01487/1.808, allocations: 7.321 MB / 0.7046 GB, free: 1.57 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002868/1.811, allocations: 0.8004 MB / 0.7054 GB, free: 0.7461 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001424/1.813, allocations: 59.98 kB / 0.7054 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002704/1.815, allocations: 163.8 kB / 0.7056 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006123/1.816, allocations: 206 kB / 0.7058 GB, free: 332 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003176/1.816, allocations: 83.98 kB / 0.7059 GB, free: 248 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.3588/2.175, allocations: 2.671 MB / 0.7085 GB, free: 148.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.613e-06/2.175, allocations: 0 / 0.7085 GB, free: 148.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01113/2.186, allocations: 1.546 MB / 0.71 GB, free: 148.6 MB / 462.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 (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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009463/2.187, allocations: 222.3 kB / 0.7102 GB, free: 148.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01386/2.201, allocations: 6.106 MB / 0.7162 GB, free: 147.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/2.201, allocations: 0 / 0.7162 GB, free: 147.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00529/2.207, allocations: 2.472 MB / 0.7186 GB, free: 146.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006093/2.213, allocations: 0.8951 MB / 0.7194 GB, free: 146 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04614/2.259, allocations: 20.15 MB / 0.7391 GB, free: 134.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00919/2.268, allocations: 6.023 MB / 0.745 GB, free: 132.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001989/2.27, allocations: 374.1 kB / 0.7454 GB, free: 132.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.202e-06/2.27, allocations: 0 / 0.7454 GB, free: 132.6 MB / 462.1 MB Notification: Performance of Templates: time 0.5635/2.834, allocations: 155 MB / 0.8967 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++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/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