Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002086/0.002086, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.004/2.004, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001068/0.001068, allocations: 78.78 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.376e-05/3.382e-05, allocations: 0 / 321.5 MB, free: 17.81 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1005, allocations: 47.57 MB / 369.1 MB, free: 2.18 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5336/0.6341, allocations: 158.4 MB / 0.5152 GB, free: 15.88 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003621/0.6345, allocations: 107.2 kB / 0.5153 GB, free: 15.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.13/2.765, allocations: 388.3 MB / 0.8944 GB, free: 31.74 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.294e-06/2.765, allocations: 0 / 0.8944 GB, free: 31.74 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001028/2.766, allocations: 291.5 kB / 0.8947 GB, free: 31.71 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.0538/2.82, allocations: 11.23 MB / 0.9057 GB, free: 28.16 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/2.82, allocations: 12.31 kB / 0.9057 GB, free: 28.16 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04425/2.864, allocations: 5.197 MB / 0.9108 GB, free: 27.47 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03378/2.898, allocations: 9.626 MB / 0.9202 GB, free: 26.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001524/2.9, allocations: 0.8996 MB / 0.9211 GB, free: 26.24 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006412/2.906, allocations: 1.177 MB / 0.9222 GB, free: 26.23 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06487/2.971, allocations: 19.33 MB / 0.9411 GB, free: 24.74 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007276/2.972, allocations: 22.06 kB / 0.9411 GB, free: 24.73 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00524/2.977, allocations: 0.508 MB / 0.9416 GB, free: 24.73 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001354/2.978, allocations: 0.7686 MB / 0.9423 GB, free: 24.7 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0559/3.034, allocations: 17.07 MB / 0.959 GB, free: 19.27 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1897/3.224, allocations: 63.22 MB / 1.021 GB, free: 2.078 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.451/3.675, allocations: 22.99 MB / 1.043 GB, free: 48.64 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0207/3.696, allocations: 7.305 MB / 1.05 GB, free: 48.55 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07065/3.766, allocations: 22.81 MB / 1.073 GB, free: 47.48 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001235/3.767, allocations: 104.3 kB / 1.073 GB, free: 47.44 MB / 474.7 MB Notification: Performance of pre-optimization done (n=747): time 1.188e-05/3.767, allocations: 0 / 1.073 GB, free: 47.44 MB / 474.7 MB Notification: Performance of matching and sorting (n=757): time 0.0768/3.843, allocations: 25.91 MB / 1.098 GB, free: 43.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.85e-05/3.844, allocations: 144.6 kB / 1.098 GB, free: 43.59 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0102/3.854, allocations: 3.865 MB / 1.102 GB, free: 42.11 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001782/3.856, allocations: 134.7 kB / 1.102 GB, free: 42 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003679/3.859, allocations: 4.521 MB / 1.106 GB, free: 38.48 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004208/3.864, allocations: 2.51 MB / 1.109 GB, free: 36.53 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00162/3.865, allocations: 145.1 kB / 1.109 GB, free: 36.41 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009146/3.866, allocations: 0.6384 MB / 1.11 GB, free: 35.96 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01274/3.879, allocations: 4.718 MB / 1.114 GB, free: 33.98 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01504/3.894, allocations: 6.579 MB / 1.121 GB, free: 29.82 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01555/3.91, allocations: 5.883 MB / 1.126 GB, free: 27.42 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.096e-05/3.91, allocations: 16.25 kB / 1.126 GB, free: 27.42 MB / 474.7 MB Notification: Performance of matching and sorting (n=1043) (initialization): time 0.04203/3.952, allocations: 13.95 MB / 1.14 GB, free: 21.87 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.354e-05/3.952, allocations: 32.72 kB / 1.14 GB, free: 21.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001359/3.952, allocations: 54.31 kB / 1.14 GB, free: 21.87 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01141/3.964, allocations: 3.353 MB / 1.143 GB, free: 20.85 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01192/3.976, allocations: 1.483 MB / 1.145 GB, free: 20.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0182/3.994, allocations: 13.83 MB / 1.158 GB, free: 10.77 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00962/4.004, allocations: 397.7 kB / 1.159 GB, free: 10.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00233/4.006, allocations: 333.4 kB / 1.159 GB, free: 10.58 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (786): * Single equations (assignments): 721 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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: 3 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.002566/4.008, allocations: 0.5273 MB / 1.16 GB, free: 10.23 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002146/4.011, allocations: 0.5855 MB / 1.16 GB, free: 9.914 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03904/4.05, allocations: 13.46 MB / 1.173 GB, free: 1.121 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04536/4.095, allocations: 11.14 MB / 1.184 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-05/4.095, allocations: 11.39 kB / 1.184 GB, free: 10.15 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001702/4.095, allocations: 35.48 kB / 1.184 GB, free: 10.15 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08577/4.181, allocations: 27.92 MB / 1.212 GB, free: 2.773 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001188/4.181, allocations: 7.656 kB / 1.212 GB, free: 2.77 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00908/4.19, allocations: 0.9403 MB / 1.212 GB, free: 2.043 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3976/4.588, allocations: 3.45 MB / 1.216 GB, free: 86.85 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001909/4.59, allocations: 169.1 kB / 1.216 GB, free: 86.85 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02667/4.617, allocations: 18.21 MB / 1.234 GB, free: 77.33 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.316e-06/4.617, allocations: 4.656 kB / 1.234 GB, free: 77.33 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05592/4.673, allocations: 20.65 MB / 1.254 GB, free: 75.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006741/4.68, allocations: 1.731 MB / 1.256 GB, free: 75.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003297/4.683, allocations: 118.5 kB / 1.256 GB, free: 75.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007985/4.691, allocations: 320.1 kB / 1.256 GB, free: 75.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002777/4.694, allocations: 0.5485 MB / 1.257 GB, free: 75.49 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001811/4.696, allocations: 206.7 kB / 1.257 GB, free: 75.49 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00802/4.704, allocations: 2.904 MB / 1.26 GB, free: 75.29 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.052e-06/4.704, allocations: 0 / 1.26 GB, free: 75.29 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0132/4.717, allocations: 2.15 MB / 1.262 GB, free: 75.29 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (505): * Single equations (assignments): 439 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 6 {6 9,4 4,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.003259/4.72, allocations: 0.9299 MB / 1.263 GB, free: 75.11 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0314/4.752, allocations: 11.98 MB / 1.274 GB, free: 74.38 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/4.752, allocations: 6.188 kB / 1.274 GB, free: 74.38 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01798/4.77, allocations: 6.556 MB / 1.281 GB, free: 73.67 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01193/4.782, allocations: 1.311 MB / 1.282 GB, free: 73.64 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06328/4.845, allocations: 21.05 MB / 1.303 GB, free: 67.98 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01747/4.863, allocations: 7.532 MB / 1.31 GB, free: 65.41 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003858/4.867, allocations: 482 kB / 1.31 GB, free: 65.37 MB / 0.4948 GB Notification: Performance of SimCode: time 2.023e-06/4.867, allocations: 0 / 1.31 GB, free: 65.37 MB / 0.4948 GB Notification: Performance of Templates: time 3.348/8.215, allocations: 0.862 GB / 2.172 GB, free: 110.1 MB / 0.5261 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -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_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsFunctions.cpp:637:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp342 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsFunctions.cpp:637:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp342 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o] Error 1\n'