Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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 4.0.0+maint.om/package.mo", uses=false) 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 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008521/0.0008521, allocations: 91.38 kB / 16.95 MB, free: 5.555 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.001021/0.001021, allocations: 191.6 kB / 17.85 MB, free: 5.227 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 223.2 MB / 241.8 MB, free: 128 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003252/0.0003252, allocations: 7.984 kB / 301.5 MB, free: 6.406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1472, allocations: 50.42 MB / 351.9 MB, free: 3.977 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01833/0.1656, allocations: 13.97 MB / 365.9 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01357/0.1792, allocations: 4.981 MB / 370.8 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004492/0.1837, allocations: 99.56 kB / 370.9 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005201/0.189, allocations: 0.8466 MB / 371.8 MB, free: 4 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.3107/0.4997, allocations: 1.104 MB / 372.9 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00358/0.5033, allocations: 0.6481 MB / 373.5 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01029/0.5136, allocations: 3.821 MB / 377.4 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005722/0.5194, allocations: 2.584 MB / 379.9 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00428/0.5237, allocations: 1.3 MB / 381.2 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005754/0.5295, allocations: 1.723 MB / 383 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001636/0.5312, allocations: 203.7 kB / 383.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003159/0.5343, allocations: 413.5 kB / 383.6 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001544/0.5359, allocations: 0.8876 MB / 384.5 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002725/0.5386, allocations: 0.7606 MB / 385.2 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009066/0.5477, allocations: 5.59 MB / 390.8 MB, free: 6.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.5478, allocations: 0 / 390.8 MB, free: 6.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.5478, allocations: 0 / 390.8 MB, free: 6.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002645/0.548, allocations: 0 / 390.8 MB, free: 6.18 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01361/0.5617, allocations: 3.966 MB / 394.8 MB, free: 3.926 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.5617, allocations: 9.031 kB / 394.8 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004841/0.5666, allocations: 0.6785 MB / 395.5 MB, free: 3.629 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006547/0.5732, allocations: 2.368 MB / 397.8 MB, free: 2.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00027/0.5735, allocations: 271.9 kB / 398.1 MB, free: 2.676 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000852/0.5743, allocations: 345 kB / 398.4 MB, free: 2.672 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009733/0.5841, allocations: 4.44 MB / 402.9 MB, free: 164 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.938e-05/0.5842, allocations: 15.83 kB / 402.9 MB, free: 148 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003103/0.5845, allocations: 140 kB / 403 MB, free: 8 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002195/0.5847, allocations: 158.8 kB / 403.2 MB, free: 15.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009011/0.5937, allocations: 3.728 MB / 406.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03606/0.6298, allocations: 14.54 MB / 421.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005782/0.6357, allocations: 5.369 MB / 426.8 MB, free: 7.199 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002388/0.6381, allocations: 1.278 MB / 428.1 MB, free: 5.926 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00988/0.648, allocations: 3.837 MB / 431.9 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.234e-05/0.6481, allocations: 43.88 kB / 432 MB, free: 1.992 MB / 334.1 MB Notification: Performance of pre-optimization done (n=128): time 3.176e-06/0.6481, allocations: 0 / 432 MB, free: 1.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=132): time 0.01328/0.6614, allocations: 5.523 MB / 437.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.097e-05/0.6615, allocations: 68.72 kB / 437.6 MB, free: 12.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005435/0.667, allocations: 2.086 MB / 439.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002192/0.6672, allocations: 53.64 kB / 439.7 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0017/0.6689, allocations: 1.657 MB / 441.4 MB, free: 8.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006492/0.6696, allocations: 464.5 kB / 441.8 MB, free: 7.922 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.6697, allocations: 36 kB / 441.8 MB, free: 7.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002694/0.67, allocations: 377.9 kB / 442.2 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001547/0.6716, allocations: 0.7145 MB / 442.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002099/0.6737, allocations: 1.347 MB / 444.3 MB, free: 5.164 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001916/0.6756, allocations: 0.9517 MB / 445.2 MB, free: 4.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.322e-05/0.6757, allocations: 4 kB / 445.2 MB, free: 4.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005457/0.6811, allocations: 2.509 MB / 447.7 MB, free: 1.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.17e-05/0.6812, allocations: 12.5 kB / 447.8 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.308e-05/0.6813, allocations: 23.95 kB / 447.8 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004677/0.6817, allocations: 150.4 kB / 447.9 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/0.6835, allocations: 456.9 kB / 448.4 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003523/0.687, allocations: 3.076 MB / 451.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002272/0.6893, allocations: 115.9 kB / 451.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002365/0.6896, allocations: 83.98 kB / 451.6 MB, free: 13.49 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003058/0.6926, allocations: 1.051 MB / 452.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008721/0.6935, allocations: 221.2 kB / 452.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004877/0.6984, allocations: 2.185 MB / 455.1 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-05/0.6984, allocations: 15.98 kB / 455.1 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.216e-05/0.6985, allocations: 4 kB / 455.1 MB, free: 9.945 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.886e-05/0.6985, allocations: 3.984 kB / 455.1 MB, free: 9.941 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01356/0.7121, allocations: 5.176 MB / 460.3 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/0.7121, allocations: 8.375 kB / 460.3 MB, free: 4.648 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.7133, allocations: 231.6 kB / 460.5 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008112/0.7141, allocations: 271.2 kB / 460.8 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001406/0.7143, allocations: 35.98 kB / 460.8 MB, free: 4.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008435/0.7227, allocations: 7.125 MB / 468 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.288e-05/0.7228, allocations: 12.08 kB / 468 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00647/0.7292, allocations: 3.177 MB / 471.1 MB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001696/0.731, allocations: 462.2 kB / 471.6 MB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009402/0.7319, allocations: 28 kB / 471.6 MB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001727/0.7337, allocations: 77.88 kB / 471.7 MB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002452/0.7339, allocations: 93.08 kB / 471.8 MB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.309e-05/0.7341, allocations: 40 kB / 471.8 MB, free: 8.473 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003971/0.738, allocations: 1.415 MB / 473.2 MB, free: 7.039 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.7381, allocations: 0 / 473.2 MB, free: 7.039 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004721/0.7428, allocations: 0.5625 MB / 473.8 MB, free: 6.477 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.x) * 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 (112): * Single equations (assignments): 108 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007136/0.7435, allocations: 173.8 kB / 474 MB, free: 6.301 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004287/0.7478, allocations: 2.09 MB / 476.1 MB, free: 4.168 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.7478, allocations: 0 / 476.1 MB, free: 4.168 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002331/0.7502, allocations: 1.384 MB / 477.5 MB, free: 2.734 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004066/0.7543, allocations: 0.5298 MB / 478 MB, free: 2.211 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01786/0.7721, allocations: 7.363 MB / 485.3 MB, free: 10.78 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004856/0.777, allocations: 2.369 MB / 487.7 MB, free: 8.387 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001042/0.7781, allocations: 167.4 kB / 487.9 MB, free: 8.223 MB / 398.1 MB Notification: Performance of SimCode: time 1.743e-06/0.7781, allocations: 0 / 487.9 MB, free: 8.223 MB / 398.1 MB Notification: Performance of Templates: time 0.385/1.163, allocations: 99.3 MB / 0.5734 GB, free: 128.7 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSourceCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSourceCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSourceCalcHelperMain.o] Error 1