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.SMR_CurrentSource.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.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 101.5 kB / 17.8 MB, free: 5.676 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.002313/0.002313, allocations: 194 kB / 18.72 MB, free: 4.762 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.891/1.891, allocations: 205.1 MB / 224.6 MB, free: 12.38 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.00167/0.00167, allocations: 47.92 kB / 280.6 MB, free: 3.57 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1521/0.1537, allocations: 46.64 MB / 327.3 MB, free: 4.867 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.05138/0.2052, allocations: 39.29 MB / 366.6 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03527/0.2405, allocations: 10.43 MB / 377 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01503/0.2556, allocations: 247.1 kB / 377.2 MB, free: 2.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3656/0.6214, allocations: 7.997 MB / 385.2 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0184/0.6398, allocations: 3.316 MB / 388.6 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009619/0.6495, allocations: 2.224 MB / 390.8 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03071/0.6802, allocations: 13.65 MB / 404.4 MB, free: 10.08 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04684/0.7271, allocations: 20.62 MB / 425 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01909/0.7462, allocations: 6.057 MB / 431.1 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01953/0.7658, allocations: 7.681 MB / 438.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00818/0.7741, allocations: 1.312 MB / 440.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0126/0.7867, allocations: 1.704 MB / 441.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0102/0.797, allocations: 3.447 MB / 445.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02536/0.8224, allocations: 7.104 MB / 452.4 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03741/0.8599, allocations: 22.75 MB / 475.1 MB, free: 10.51 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.158e-05/0.86, allocations: 4 kB / 475.1 MB, free: 10.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.86, allocations: 0 / 475.1 MB, free: 10.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.001321/0.8613, allocations: 0 / 475.1 MB, free: 10.5 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.0651/0.9264, allocations: 15.64 MB / 490.7 MB, free: 10.87 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.095e-05/0.9265, allocations: 8.031 kB / 490.8 MB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05198/0.9785, allocations: 9.089 MB / 499.8 MB, free: 1.848 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02249/1.001, allocations: 7.457 MB / 0.4954 GB, free: 10.37 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001402/1.003, allocations: 0.9466 MB / 0.4963 GB, free: 9.438 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008164/1.011, allocations: 1.253 MB / 0.4976 GB, free: 8.199 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07707/1.088, allocations: 20.15 MB / 0.5172 GB, free: 4.02 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00066/1.089, allocations: 23.8 kB / 0.5173 GB, free: 3.996 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006272/1.095, allocations: 0.5188 MB / 0.5178 GB, free: 3.492 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008562/1.096, allocations: 0.7294 MB / 0.5185 GB, free: 2.762 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5919/1.688, allocations: 18.97 MB / 0.537 GB, free: 135.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1352/1.823, allocations: 63.41 MB / 0.5989 GB, free: 95.46 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03783/1.861, allocations: 56.99 MB / 0.6546 GB, free: 37.72 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006285/1.867, allocations: 4.114 MB / 0.6586 GB, free: 33.88 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01771/1.885, allocations: 11.39 MB / 0.6697 GB, free: 22.48 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.571e-05/1.885, allocations: 69.31 kB / 0.6698 GB, free: 22.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 4.979e-06/1.885, allocations: 0 / 0.6698 GB, free: 22.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03524/1.92, allocations: 18.13 MB / 0.6875 GB, free: 4.148 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/1.92, allocations: 98.47 kB / 0.6876 GB, free: 4.039 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00822/1.928, allocations: 5.462 MB / 0.6929 GB, free: 14.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007069/1.929, allocations: 89.7 kB / 0.693 GB, free: 14.51 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005284/1.934, allocations: 5.88 MB / 0.6987 GB, free: 8.598 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002073/1.937, allocations: 1.377 MB / 0.7001 GB, free: 7.234 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00251/1.939, allocations: 1.512 MB / 0.7016 GB, free: 5.715 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/1.939, allocations: 301.1 kB / 0.7018 GB, free: 5.418 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005245/1.944, allocations: 3.076 MB / 0.7048 GB, free: 2.34 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3247/2.269, allocations: 6.755 MB / 0.7114 GB, free: 142.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0186/2.288, allocations: 10.59 MB / 0.7218 GB, free: 135.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003571/2.288, allocations: 35.78 kB / 0.7218 GB, free: 135.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02996/2.318, allocations: 10.79 MB / 0.7324 GB, free: 131.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002576/2.318, allocations: 60.03 kB / 0.7324 GB, free: 131.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004599/2.319, allocations: 125.5 kB / 0.7325 GB, free: 131.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002721/2.322, allocations: 0.9756 MB / 0.7335 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007236/2.329, allocations: 1.818 MB / 0.7353 GB, free: 131.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01239/2.341, allocations: 9.539 MB / 0.7446 GB, free: 124.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008289/2.35, allocations: 443.3 kB / 0.745 GB, free: 124.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00155/2.351, allocations: 421.9 kB / 0.7454 GB, free: 124.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01427/2.365, allocations: 4.456 MB / 0.7498 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001686/2.367, allocations: 0.5445 MB / 0.7503 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01087/2.378, allocations: 6.52 MB / 0.7567 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.842e-05/2.378, allocations: 41.66 kB / 0.7567 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.661e-05/2.378, allocations: 7.625 kB / 0.7567 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.349e-05/2.378, allocations: 18.52 kB / 0.7567 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02959/2.408, allocations: 15.98 MB / 0.7723 GB, free: 107.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/2.408, allocations: 4 kB / 0.7723 GB, free: 107.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002969/2.411, allocations: 0.7536 MB / 0.7731 GB, free: 106.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002062/2.413, allocations: 0.7888 MB / 0.7738 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002831/2.413, allocations: 83.69 kB / 0.7739 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007939/2.421, allocations: 8.652 MB / 0.7824 GB, free: 98.07 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/2.421, allocations: 7.938 kB / 0.7824 GB, free: 98.06 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01266/2.434, allocations: 9.525 MB / 0.7917 GB, free: 88.73 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002758/2.437, allocations: 1.082 MB / 0.7927 GB, free: 87.65 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001074/2.438, allocations: 71.98 kB / 0.7928 GB, free: 87.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002487/2.44, allocations: 227.8 kB / 0.793 GB, free: 87.36 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005808/2.441, allocations: 262.7 kB / 0.7933 GB, free: 87.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002364/2.441, allocations: 108 kB / 0.7934 GB, free: 86.99 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005427/2.447, allocations: 3.607 MB / 0.7969 GB, free: 83.41 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.2e-07/2.447, allocations: 0 / 0.7969 GB, free: 83.41 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009188/2.456, allocations: 1.987 MB / 0.7988 GB, free: 81.43 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (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.0009211/2.457, allocations: 252.8 kB / 0.7991 GB, free: 81.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01212/2.469, allocations: 8.045 MB / 0.8069 GB, free: 73.07 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.296e-06/2.469, allocations: 0 / 0.8069 GB, free: 73.07 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005237/2.474, allocations: 3.534 MB / 0.8104 GB, free: 69.46 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00975/2.484, allocations: 1.245 MB / 0.8116 GB, free: 68.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05373/2.538, allocations: 25.95 MB / 0.8369 GB, free: 42.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00959/2.547, allocations: 7.371 MB / 0.8441 GB, free: 34.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00235/2.55, allocations: 499.3 kB / 0.8446 GB, free: 34.35 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/2.55, allocations: 0 / 0.8446 GB, free: 34.35 MB / 462.1 MB Notification: Performance of Templates: time 1.579/4.129, allocations: 477 MB / 1.31 GB, free: 109.8 MB / 494.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.SMR_CurrentSourceCalcHelperMain.o OMCppModelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o] Error 1